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

[testenv]
deps =
6
  psycopg2-binary
Denis Laxalde's avatar
Denis Laxalde committed
7
8
9
10
11
12
13
14
15
16
  pytest
commands =
  {envpython} -m pytest {posargs}

[testenv:flake8]
skip_install = true
deps =
  flake8
commands = flake8

17
18
19
20
21
22
23
[testenv:check-manifest]
skip_install = true
deps =
  check-manifest
commands =
  {envpython} -m check_manifest {toxinidir}

Denis Laxalde's avatar
Denis Laxalde committed
24
25
26
27
28
29
[flake8]
exclude = migration/*,setup.py,.tox/*
max-line-length = 100

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

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