-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove old Django and Python versions from tox and Circle CI test grids * Update setup.py classifiers accordingly. * Update `py.test` command to `pytest` since it was renamed. * Update `master` to `main` for Django's default branch since it was renamed. * Drop universal wheel declaration in `setup.cfg` since Python 2 is no longer supported. * Fix `.gitignore` to ignore generated coverage files. * Move `pytest-cov` requirement to test requirements to get a version compatible with the pinned pytest version (otherwise pip logs a red warning).
- Loading branch information
1 parent
debef33
commit d8f3049
Showing
5 changed files
with
14 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
*.db | ||
*.sw[po] | ||
.cache | ||
.coverage | ||
.tox | ||
dist | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[wheel] | ||
universal = 1 | ||
|
||
[tool:pytest] | ||
addopts = -vs --tb=short --pep8 --flakes | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,25 @@ | ||
[tox] | ||
envlist = | ||
{3.6,3.7,3.8,3.9,pypy3}-master, | ||
{3.6,3.7,3.8,3.9,pypy3}-3.2.x, | ||
{3.6,3.7,3.8,3.9,pypy3}-3.1.x, | ||
{3.6,3.7,3.8,3.9,pypy3}-3.0.x, | ||
{3.5,3.6,3,7,pypy3}-2.2.x, | ||
{2.7,3.4,3.5,3.6,pypy,pypy3}-2.1.x, | ||
{3.4,3.5,3.6,pypy3}-2.0.x, | ||
{2.7,3.4,3.5,3.6,pypy,pypy3}-1.11.x, | ||
{2.7,3.4,3.5,3.6,pypy}-1.10.x, | ||
{2.7,3.4,3.5,3.6,pypy}-1.9.x, | ||
{2.7,3.4,3.5,3.6,pypy}-1.8.x | ||
{3.6,3.7,3.8,3.9,pypy3}-main | ||
{3.6,3.7,3.8,3.9,pypy3}-3.0.x | ||
{3.6,3,7,3.8,3.9,pypy3}-2.2.x | ||
|
||
[testenv] | ||
setenv = | ||
PYTHONPATH={toxinidir} | ||
PYTHONDONTWRITEBYTECODE=1 | ||
commands = | ||
pip install --upgrade pip setuptools wheel | ||
pip install pytest-cov | ||
pip install -e . | ||
pip install -e .[tests] | ||
py.test --cov={toxinidir}/csp {toxinidir}/csp | ||
pytest --cov={toxinidir}/csp {toxinidir}/csp | ||
basepython = | ||
2.7: python2.7 | ||
3.4: python3.4 | ||
3.5: python3.5 | ||
3.6: python3.6 | ||
3.7: python3.7 | ||
3.8: python3.8 | ||
3.9: python3.9 | ||
pypy: pypy | ||
pypy3: pypy3 | ||
deps= | ||
pytest | ||
1.8: Django>=1.8,<1.9 | ||
1.9: Django>=1.9,<1.10 | ||
1.10: Django>=1.10,<1.11 | ||
1.11: Django>=1.11,<1.12 | ||
2.0: Django>=2.0,<2.1 | ||
2.1: Django>=2.1,<2.2 | ||
2.2: Django>=2.2,<2.3 | ||
3.0: Django>=3.0,<3.1 | ||
3.1: Django>=3.1,<3.2 | ||
3.2: Django>=3.2,<4.0 | ||
master: https://github.com/django/django/archive/master.tar.gz | ||
2.2.x: Django>=2.2,<2.3 | ||
3.2.x: Django>=3.2,<3.3 | ||
main: https://github.com/django/django/archive/main.tar.gz |