File tree 3 files changed +5
-20
lines changed
3 files changed +5
-20
lines changed Original file line number Diff line number Diff line change @@ -14,4 +14,3 @@ pytest-factoryboy==2.0.3
14
14
recommonmark==0.6.0
15
15
Sphinx==2.2.0
16
16
sphinx_rtd_theme==0.4.3
17
- twine==2.0.0
Original file line number Diff line number Diff line change 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
)
Original file line number Diff line number Diff line change @@ -10,20 +10,23 @@ deps =
10
10
django22: Django>=2.2,<2.3
11
11
drf310: djangorestframework>=3.10.2,<3.11
12
12
drfmaster: https://github.com/encode/django-rest-framework/archive/master.zip
13
+ -rrequirements-development.txt
13
14
14
15
setenv =
15
16
PYTHONPATH = {toxinidir}
16
17
DJANGO_SETTINGS_MODULE =example.settings.test
17
18
18
19
commands =
19
- python setup.py test --addopts ' -- cov --no-cov-on-fail --cov-report xml' {posargs}
20
+ pytest -- cov --no-cov-on-fail --cov-report xml {posargs}
20
21
21
22
[testenv:flake8]
23
+ basepython = python3.6
22
24
deps =
23
25
-rrequirements-development.txt
24
26
commands = flake8
25
27
26
28
[testenv:sphinx]
29
+ basepython = python3.6
27
30
deps =
28
31
-rrequirements-development.txt
29
32
commands =
You can’t perform that action at this time.
0 commit comments