|
2 | 2 | # -*- coding: utf-8 -*- |
3 | 3 | import sys |
4 | 4 |
|
5 | | -try: # for pip >= 10 |
6 | | - from pip._internal.req import parse_requirements |
7 | | -except ImportError: # for pip <= 9.0.3 |
8 | | - from pip.req import parse_requirements |
9 | | - |
10 | | -try: # for pip >= 10 |
11 | | - from pip._internal import download |
12 | | -except ImportError: # for pip <= 9.0.3 |
13 | | - from pip import download |
14 | | - |
15 | 5 | from setuptools import find_packages |
16 | 6 | from setuptools import setup |
17 | 7 |
|
18 | 8 | with open('README.rst') as readme_file: |
19 | 9 | readme = readme_file.read() |
20 | 10 |
|
21 | | -requirements = parse_requirements( |
22 | | - 'requirements.txt', session=download.PipSession(), |
23 | | -) |
24 | | - |
25 | | -pip_requirements = [str(r.req) for r in requirements] |
| 11 | +requirements = [ |
| 12 | + 'boto3', |
| 13 | + 'click', |
| 14 | + 'PyYAML', |
| 15 | +] |
26 | 16 |
|
27 | 17 | # Only install futures package if using a Python version <= 2.7 |
28 | 18 | if sys.version_info < (3, 0): |
29 | | - pip_requirements.append('futures') |
| 19 | + requirements.append('futures') |
30 | 20 |
|
31 | 21 | test_requirements = [ |
32 | 22 | # TODO: put package test requirements here |
|
47 | 37 | }, |
48 | 38 | include_package_data=True, |
49 | 39 | scripts=['scripts/lambda'], |
50 | | - install_requires=pip_requirements, |
| 40 | + install_requires=requirements, |
51 | 41 | license='ISCL', |
52 | 42 | zip_safe=False, |
53 | 43 | keywords='python-lambda', |
|
0 commit comments