This repository was archived by the owner on Oct 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtox.ini
More file actions
53 lines (43 loc) · 1.33 KB
/
tox.ini
File metadata and controls
53 lines (43 loc) · 1.33 KB
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
[tox]
minversion = 2.1
envlist = lint,py27,py38
skipsdist = True
[testenv]
commands = {envbindir}/py.test {posargs} {toxinidir}/tests
deps = -r{toxinidir}/requirements/dev.txt
passenv = PYPI_USERNAME PYPI_PASSWORD
recreate = False
[testenv:coverage]
commands = {envbindir}/py.test --cov objectrocket --cov-report term-missing {toxinidir}/tests
[testenv:build_pypi]
deps = -r requirements/dev.txt
commands =
{envbindir}/python setup.py clean bdist_wheel
{toxinidir}/scripts/upload_to_pypi.sh pypi
[testenv:build_testpypi]
deps = twine
commands =
{envbindir}/python setup.py clean bdist_wheel {posargs}
{toxinidir}/scripts/upload_to_pypi.sh testpypi
[testenv:docs]
commands = python {toxinidir}/scripts/check_docs.py --no-fail \
--pytree {toxinidir}/objectrocket \
--doctree {toxinidir}/docs/source \
--doc-ignores API.rst,changelog.rst,Installation.rst,Tutorial.rst
python {toxinidir}/setup.py build_sphinx {posargs}
[testenv:lint]
deps = flake8
commands = {envbindir}/flake8 {posargs} {toxinidir}
[flake8]
select = E123,
ignore = E501,E731,E265,E402
max-line-length = 149
exclude = *.egg-info,.git,.tox,build,dist,docs
[distutils]
index-servers =
pypi
pypitest
[pypi]
repository = https://upload.pypi.org/legacy/
[pypitest]
repository = https://testpypi.python.org/pypi