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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
[tox]
envlist=py{27,34,35,36,37,38,39}-test,flake8,check_readme,check-dist,py{27,37}-selfcheck,docs
[pytest]
testpaths=testing
filterwarnings=error
markers=
issue(id): reference to github issue
[flake8]
max-complexity = 10
max-line-length = 88
ignore=E203,W503
exclude=
.git,
.tox,
.env,
.venv,
.pytest_cache,
__pycache__,
./src/setuptools_scm/win_py31_compat.py
[testenv]
usedevelop=True
skip_install=
selfcheck: True
test: False
deps=
pytest
setuptools >= 42
commands=
test: pytest []
selfcheck: python setup.py --version
extras =
toml
[testenv:flake8]
skip_install=True
deps=
flake8
mccabe
commands =
flake8 src/setuptools_scm/ testing/ setup.py --exclude=src/setuptools_scm/win_py31_compat.py
[testenv:check_readme]
skip_install=True
setenv = SETUPTOOLS_SCM_PRETEND_VERSION=2.0
deps=
check-manifest
docutils
commands=
rst2html.py README.rst {envlogdir}/README.html --strict []
check-manifest
[testenv:check_dist]
deps=
wheel
twine
commands=
python setup.py clean --all rotate -k 0 -m .whl,.tar.gz,.zip
python setup.py -q egg_info
python setup.py -q sdist --formats zip bdist_wheel
twine check dist/*
[testenv:dist]
deps= wheel
whitelist_externals = rm
commands=
python setup.py -q clean --all
python setup.py -q rotate -k 0 -m .egg,.zip,.whl,.tar.gz
python setup.py -q egg_info
python setup.py -q sdist --formats zip,bztar bdist_wheel upload
[testenv:devpi]
deps=
devpi-client
commands =
python setup.py -q egg_info
devpi upload --from-dir dist
#XXX: envs for hg versions
|