tox.ini 667 Bytes
Newer Older
Denis Laxalde's avatar
Denis Laxalde committed
1
[tox]
2
envlist = py3,check-manifest
Denis Laxalde's avatar
Denis Laxalde committed
3
4
5
6

[testenv]
deps =
  pytest
7
  git+https://github.com/psycojoker/pytest-capture-deprecatedwarnings
Denis Laxalde's avatar
Denis Laxalde committed
8
9
10
commands =
  {envpython} -m pytest {posargs}

11
12
13
14
15
16
17
18
[testenv:check-manifest]
basepython = python3
skip_install = true
deps =
  check-manifest
commands =
  {envpython} -m check_manifest {toxinidir}

Denis Laxalde's avatar
Denis Laxalde committed
19
20
21
[pytest]
testpaths = test
python_files = *test_*.py
Laurent Peuch's avatar
Laurent Peuch committed
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

[testenv:pypi-publish]
basepython = python3
skip_install = true
whitelist_externals = rm
deps =
  twine
passenv =
  TWINE_USERNAME
  TWINE_PASSWORD
commands =
  rm -rf build dist .egg .egg-info
  python3 setup.py sdist bdist_wheel
  twine check dist/*
  twine upload --skip-existing dist/*