generated from par-tec/python-cookiecutter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
70 lines (57 loc) · 1.25 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[tox]
envlist = py3, safety
skipsdist=True
[testenv]
deps =
-rrequirements.txt
-rrequirements-dev.txt
# Uncomment here to set an extra PIP_INDEX_URL
# setenv =
# PIP_EXTRA_INDEX_URL = https://mypypiserver.org
setenv =
PYTHONPATH=:.:
# To show pytest logs in console, use
# tox -- --log-cli-level=DEBUG
commands =
pytest {posargs}
[testenv:safety]
deps =
-rrequirements.txt
-rrequirements-dev.txt
safety
setenv =
PYTHONPATH=:.:
commands =
safety check --short-report -r requirements.txt
[flake8]
# Ignore long lines in flake8 because
# they are managed by black and we
# want to support links.
max-line-length = 150
[testenv:release]
# Release with tox via:
#
# tox -e release -- $PARAMETERS
#
# passing the repo references you would set via
# twine, eg:
# --repository-url https://test.pypi.org/legacy/
#
# To pass
deps =
wheel
twine
# Limit TWINE_* to this section.
passenv =
TWINE_USERNAME
TWINE_PASSWORD
TWINE_REPOSITORY_URL
commands =
# rm dist -rf
python setup.py bdist_wheel # sdist, or whatever
twine upload {posargs} dist/*
# Uncomment the following section if you want to
# test the installation on the test pypi
# [testenv:test-release]
#commands =
# pip install --index-url=https://test.pypi.org/simple