1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
# Tox (https://tox.wiki/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py{37,38,39,310,311,py3}-{linux,windows}
skip_missing_interpreters = True
[flake8]
max-line-length = 88
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
pypy-3.9: pypy3
[gh-actions:env]
PLATFORM =
ubuntu-latest: linux
windows-latest: windows
[testenv]
deps =
flake8
flake8-docstrings
wheel>=0.35
setuptools>=50
virtualenv>=20
packaging>=20
pip>=20
build
tomli; python_version < "3.11"
types-setuptools
!pypy3: mypy
commands =
pip --version
virtualenv --version
# this creates versioneer.py in the current directory, which is used by
# tests
python3 setup.py make_versioneer
python3 -m unittest discover test
python3 test/git/test_git.py -v
python3 test/git/test_invocations.py -v
# this creates git_version.py, which is used by tests
python3 setup.py make_long_version_py_git
pyflakes3 setup.py versioneer.py git_version.py
# pyflakes all of src except src/git/long_header.py and src/header.py
python3 test/run_pyflakes_src.py
pyflakes3 test
flake8 git_version.py versioneer.py
pycodestyle --max-line-length=88 git_version.py versioneer.py
!pypy3: mypy git_version.py versioneer.py src/installer.py setup.py
|