|
7 | 7 | import sys
|
8 | 8 | import warnings
|
9 | 9 |
|
10 |
| -from pip.req import parse_requirements |
11 | 10 | from setuptools import setup, find_packages, Command
|
12 | 11 | from setuptools.command.test import test as TestCommand
|
13 | 12 |
|
@@ -124,23 +123,25 @@ def run(self):
|
124 | 123 | raise RuntimeError(
|
125 | 124 | "Current version of the package is equal or lower than the already published ones (PyPi). Increse version to be able to pass prerelease stage.")
|
126 | 125 |
|
| 126 | +install_requires = [ 'six' ] |
127 | 127 |
|
128 |
| -def get_requirements(*path): |
129 |
| - req_path = os.path.join(*path) |
130 |
| - reqs = parse_requirements(req_path, session=False) |
131 |
| - return [str(ir.req) for ir in reqs] |
132 |
| - |
| 128 | +# The order of packages is significant, because pip processes them in the order |
| 129 | +# of appearance. Changing the order has an impact on the overall integration |
| 130 | +# process, which may cause wedges in the gate later. |
| 131 | +tests_require = [ 'py >= 1.4', 'hacking', 'pytest', 'pytest-cov' ] |
133 | 132 |
|
134 | 133 | setup(
|
135 | 134 | name=NAME,
|
136 | 135 | version=__version__,
|
137 | 136 | cmdclass={'test': PyTest, 'release': Release, 'prerelease': PreRelease},
|
138 | 137 | packages=find_packages(exclude=['tests']),
|
139 | 138 | include_package_data=True,
|
140 |
| - tests_require=get_requirements(base_path, 'requirements-dev.txt'), |
| 139 | + tests_require=tests_require, |
141 | 140 | setup_requires=['setuptools'],
|
142 |
| - install_requires=get_requirements(base_path, 'requirements.txt'), |
143 |
| - |
| 141 | + install_requires=install_requires, |
| 142 | + extras_require={ |
| 143 | + 'testing': tests_require |
| 144 | + }, |
144 | 145 | license='BSD',
|
145 | 146 | description="WSDL parsing services package for Web Services for Python. see" + url,
|
146 | 147 | long_description=open("README.rst").read(),
|
|
0 commit comments