|
7 | 7 |
|
8 | 8 | from setuptools import setup
|
9 | 9 |
|
10 | | -needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv) |
11 | | -pytest_runner = ['pytest-runner'] if needs_pytest else [] |
12 | | -needs_sphinx = {'build_sphinx', 'upload_docs'}.intersection(sys.argv) |
13 | | -sphinx = ['sphinx'] if needs_sphinx else [] |
14 | | -needs_wheel = {'bdist_wheel'}.intersection(sys.argv) |
15 | | -wheel = ['wheel'] if needs_wheel else [] |
16 | | - |
17 | 10 |
|
18 | 11 | def read(*paths):
|
19 | 12 | """
|
@@ -97,16 +90,6 @@ def get_package_data(package):
|
97 | 90 | 'djangorestframework>=3.10',
|
98 | 91 | 'django>=1.11',
|
99 | 92 | ],
|
100 | | - setup_requires=pytest_runner + sphinx + wheel, |
101 | | - tests_require=[ |
102 | | - 'pytest-factoryboy', |
103 | | - 'factory-boy', |
104 | | - 'pytest-django', |
105 | | - 'pytest', |
106 | | - 'pytest-cov', |
107 | | - 'django-polymorphic>=2.0', |
108 | | - 'django-filter>=2.0', |
109 | | - 'django-debug-toolbar==1.11' |
110 | | - ], |
| 93 | + python_requires=">=3.5", |
111 | 94 | zip_safe=False,
|
112 | 95 | )
|
0 commit comments