File tree Expand file tree Collapse file tree 3 files changed +29
-13
lines changed Expand file tree Collapse file tree 3 files changed +29
-13
lines changed Original file line number Diff line number Diff line change 1
- sudo : required
2
-
1
+ dist : xenial
3
2
language : python
4
-
3
+ sudo : false
5
4
python :
6
- - " 2.7"
7
- - " 3.5"
8
- - " 3.6"
9
-
5
+ - 3.5
6
+ - 3.6
7
+ - 3.7
10
8
install :
11
- - pip install tox-travis
12
-
9
+ - pip install -U pip setuptools
10
+ - pip install pytest-runner
13
11
script :
14
- - tox
12
+ - python setup.py test
15
13
16
14
notifications :
17
15
email :
Original file line number Diff line number Diff line change @@ -4,8 +4,12 @@ description-file = README.md
4
4
5
5
[tool:pytest]
6
6
DJANGO_SETTINGS_MODULE =tests.django_settings
7
- addopts = --doctest-modules --flake8 --pep8 -- nomigrations
7
+ addopts = --doctest-modules --flake8 --nomigrations
8
8
testpaths = django_admin_json_editor tests
9
9
10
- pep8maxlinelength = 99
10
+ flake8-max-complexity = 10
11
11
flake8-max-line-length = 99
12
+
13
+ [isort]
14
+ force_single_line = false
15
+ import_heading_localfolder = true
Original file line number Diff line number Diff line change 14
14
# allow setup.py to be run from any path
15
15
os .chdir (project_path )
16
16
17
+ requirements = [
18
+ 'Django' ,
19
+ ]
20
+
21
+ test_requirements = [
22
+ 'pytest' ,
23
+ 'pytest-runner' ,
24
+ 'pytest-flake8' ,
25
+ 'flake8-isort' ,
26
+ ]
27
+
17
28
setup (
18
29
name = 'django-admin-json-editor' ,
19
30
version = VERSION ,
35
46
'Programming Language :: Python :: 3' ,
36
47
'Programming Language :: Python :: 3.5' ,
37
48
'Programming Language :: Python :: 3.6' ,
49
+ 'Programming Language :: Python :: 3.7' ,
38
50
'Topic :: Internet :: WWW/HTTP' ,
39
51
'Topic :: Internet :: WWW/HTTP :: Dynamic Content' ,
40
52
],
41
- install_requires = ['Django' ],
53
+ install_requires = requirements ,
54
+ test_suite = 'tests' ,
55
+ tests_require = test_requirements ,
42
56
)
You can’t perform that action at this time.
0 commit comments