tox.ini 604 Bytes
Newer Older
Denis Laxalde's avatar
Denis Laxalde committed
1
[tox]
Nicola Spanti's avatar
Nicola Spanti committed
2
envlist = py3,flake8
Denis Laxalde's avatar
Denis Laxalde committed
3
4
5
6
7
8
9
10

[testenv]
deps =
  pytest
  requests>=1.2
commands =
  {envpython} -m pytest test {posargs}

Denis Laxalde's avatar
Denis Laxalde committed
11
12
13
14
15
16
17
[testenv:flake8]
skip_install = true
deps =
    flake8
commands =
    {envpython} -m flake8 {toxinidir}

Denis Laxalde's avatar
Denis Laxalde committed
18
19
[pytest]
python_files = *test_*.py
Denis Laxalde's avatar
Denis Laxalde committed
20
21
22
23
24

[flake8]
exclude = .tox, \
    dist \
    setup.py
Laurent Peuch's avatar
Laurent Peuch committed
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

[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/*