tox.ini 897 Bytes
Newer Older
1
[tox]
2
envlist = py27-{release,dev},flake8, check-manifest
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

[testenv]
sitepackages = true
deps =
  pytest
commands = {envpython} -m pytest {posargs:{toxinidir}/test}

[testenv:flake8]
skip_install = true
whitelist_externals =
  flake8
deps =
  flake8
commands = flake8 {posargs:{toxinidir}}

[flake8]
Katia Saurfelt's avatar
Katia Saurfelt committed
19
20
format = pylint
ignore = W503, E203, E731, E231
21
max-line-length = 100
Katia Saurfelt's avatar
Katia Saurfelt committed
22
exclude = cubicweb_registration/migration/*,docs/*,.tox/*,./test/data/*
23
24
25
26

[pytest]
python_files = *test_*.py

27
28
29
30
31
32
33

[testenv:check-manifest]
skip_install = true
deps =
  check-manifest
commands =
  {envpython} -m check_manifest {toxinidir}
Katia Saurfelt's avatar
Katia Saurfelt committed
34
35

[testenv:pypi-publish]
36
basepython = python2.7
Katia Saurfelt's avatar
Katia Saurfelt committed
37
38
39
40
41
42
43
44
45
46
47
48
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/*