|
3 | 3 |
|
4 | 4 | import re |
5 | 5 |
|
6 | | -try: |
7 | | - from setuptools import setup |
8 | | -except ImportError: |
9 | | - from distutils.core import setup |
| 6 | +from setuptools import setup |
10 | 7 |
|
11 | | -required = ['requests==0.14.0', 'python-dateutil==1.5'] |
| 8 | +required = [line for line in open('requirements.txt').read().split("\n") if not line.startswith("http")] |
| 9 | +dependency_links = [line for line in open('requirements.txt').read().split("\n") if line.startswith("http")] |
| 10 | +required_dev = [line for line in open('requirements_dev.txt').read().split("\n") if not line.startswith("-r")] |
12 | 11 | fbinit = open('fitbit/__init__.py').read() |
13 | 12 | author = re.search("__author__ = '([^']+)'", fbinit).group(1) |
14 | 13 | version = re.search("__version__ = '([^']+)'", fbinit).group(1) |
|
24 | 23 | packages=['fitbit'], |
25 | 24 | package_data={'': ['LICENSE']}, |
26 | 25 | include_package_data=True, |
27 | | - install_requires=required, |
| 26 | + install_requires=["distribute"] + required, |
| 27 | + dependency_links=dependency_links, |
28 | 28 | license='Apache 2.0', |
29 | 29 | test_suite='tests.all_tests', |
30 | | - tests_require=['mock==0.8.0'], |
| 30 | + tests_require=required_dev, |
31 | 31 | classifiers=( |
32 | 32 | 'Intended Audience :: Developers', |
33 | 33 | 'Natural Language :: English', |
|
0 commit comments