tox.ini 957 Bytes
Newer Older
Sylvain Thénault's avatar
Sylvain Thénault committed
1
[tox]
2
envlist = py27,py3,flake8,check-manifest,yamllint
3

Sylvain Thénault's avatar
Sylvain Thénault committed
4
[testenv]
5
6
deps =
  -rtest-requirements.txt
Denis Laxalde's avatar
Denis Laxalde committed
7
  pytest
8
  git+https://github.com/psycojoker/pytest-capture-deprecatedwarnings
Denis Laxalde's avatar
Denis Laxalde committed
9
commands =
10
  {envpython} -m pytest {posargs:{toxinidir}/test}
Sylvain Thénault's avatar
Sylvain Thénault committed
11

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

Sylvain Thénault's avatar
Sylvain Thénault committed
19
20
21
22
[testenv:flake8]
skip_install = true
deps =
  flake8
23
commands = flake8 {posargs:{toxinidir}}
Sylvain Thénault's avatar
Sylvain Thénault committed
24
25
26

[flake8]
max-line-length = 100
27
exclude = cubicweb_skos/migration,.tox
28
29
ignore = E731,W503

Denis Laxalde's avatar
Denis Laxalde committed
30
31
[pytest]
python_files = *test_*.py
Laurent Peuch's avatar
Laurent Peuch committed
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

[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/*
Laurent Peuch's avatar
Laurent Peuch committed
47

48
49
50
51
52
[testenv:yamllint]
skip_install = true
deps = yamllint
commands =
  yamllint .