forked from powerfulseal/powerfulseal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
38 lines (35 loc) · 1.07 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
[tox]
envlist =
py36
py37
py38
pkg_desc
isolated_build = true
skip_missing_interpreters = true
[testenv]
; Install pbr (a dependency of os-service-types) in advance to skip os-service-types
; running easy_install as easy_install does not preserve parameters (such as proxies)
; passed into pip.
deps = pbr
extras = testing
commands = python -m pytest --ignore=./powerfulseal/web/ui
description = run test suite under {basepython}
[testenv:pkg_desc]
changedir = {toxinidir}
description = check that the long description is valid
basepython = python3.7
deps = twine >= 1.12.1
readme-renderer[md] >= 24.0
pep517
skip_install = true
commands = python -m pep517.build -s -b . -o {envtmpdir}
twine check {envtmpdir}/*
[testenv:pypi_publish]
changedir = {toxinidir}
description = Upload a new package to PyPI
basepython = {[testenv:pkg_desc]basepython}
deps = {[testenv:pkg_desc]deps}
skip_install = {[testenv:pkg_desc]skip_install}
passenv = TWINE_PASSWORD
commands = {[testenv:pkg_desc]commands}
twine upload --verbose -u __token__ {envtmpdir}/*