forked from python-versioneer/python-versioneer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
56 lines (48 loc) · 1.36 KB
/
tox.ini
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
# 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,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
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
!pypy3: mypy
commands =
pip --version
virtualenv --version
# this creates versioneer.py in the current directory, which is used by
# tests
python setup.py make_versioneer
python -m unittest discover test
python test/git/test_git.py -v
python test/git/test_invocations.py -v
# this creates git_version.py, which is used by tests
python setup.py make_long_version_py_git
pyflakes setup.py versioneer.py git_version.py
# pyflakes all of src except src/git/long_header.py and src/header.py
python test/run_pyflakes_src.py
pyflakes test
flake8 git_version.py versioneer.py
pycodestyle --max-line-length=88 git_version.py versioneer.py
!pypy3: mypy git_version.py