-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a bunch of new python versions (and pypy) to the CI
Also to the local tox, and try to rewrite tox.ini to make it more reliable (wip): - don't sdist into the repository, just develop into it matching the CI (and in a way the old expectations, given the old `setup.py develop` stanza) - don't install the package at all into the checker environments, it's entirely unnecessay - add doctesting of the readme to tox, in order to match the CI action, opt 2.7 out for the same reasons: changes in pprint's formatting between 2.7 and 3.5 make them incompatible, ignore 2.7 - requirements.txt was removed previously, use the dev requirements Related to: #102 Closes: #111
- Loading branch information
Showing
3 changed files
with
22 additions
and
21 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
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,35 +1,34 @@ | ||
[tox] | ||
envlist = py27, py36, py37, py38, docs, py27-flake8, py36-flake8, py36-black | ||
envlist = py27, py36, py37, py38, py39, py310, docs, flake8, black | ||
skipsdist = True | ||
|
||
[testenv] | ||
deps = | ||
-rrequirements.txt | ||
usedevelop = True | ||
deps = -rrequirements_dev.txt | ||
commands = | ||
python setup.py develop | ||
python ua_parser/user_agent_parser_test.py | ||
python -mdoctest README.rst | ||
|
||
[testenv:py27] | ||
# no doctesting in 2.7 because of formatting divergences | ||
commands = python ua_parser/user_agent_parser_test.py | ||
|
||
[testenv:docs] | ||
basepython = python2.7 | ||
skip_install = True | ||
deps = docutils | ||
Pygments | ||
commands = | ||
python setup.py check -s --restructuredtext --metadata | ||
|
||
[testenv:py27-flake8] | ||
basepython = python2.7 | ||
deps = flake8 | ||
commands = flake8 {posargs} | ||
commands = python setup.py check -s --restructuredtext --metadata | ||
|
||
[testenv:py36-flake8] | ||
basepython = python3.6 | ||
[testenv:flake8] | ||
skip_install = True | ||
deps = flake8 | ||
commands = flake8 {posargs} | ||
|
||
[testenv:py36-black] | ||
basepython = python3.6 | ||
[testenv:black] | ||
skip_install = True | ||
deps = black | ||
commands = black --check . | ||
commands = black --check --diff . | ||
|
||
[flake8] | ||
max_line_length = 88 | ||
exclude = .git,.tox,dist,docs,_regexes.py,*_test.py,.eggs | ||
filename = ua_parser/ |