-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
50 lines (46 loc) · 1.32 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[tox]
envlist = lint,test,test-token,build,py38
minversion = 3.20.1
[testenv:lint]
skip_install = true
deps =
black==20.8b1
isort==5.6.4
pylama==7.7.1
pylint==2.6.0
commands =
python -m isort -c --ca --skip-gitignore ./nornir_ipfabric/plugins/inventory/ipfabric.py
black ./nornir_ipfabric/plugins/inventory/ipfabric.py
python -m black --check --diff ./nornir_ipfabric/plugins/inventory/ipfabric.py
- python -m pylama ./nornir_ipfabric/plugins/inventory/ipfabric.py # FIX pylama is not passing
[testenv:test]
deps = -rrequirements-dev.txt
passenv = # pass env vars to tox to authenticate
IPF_URL
IPF_USER
IPF_PASSWORD
commands =
python --version
python -m pytest tests/
[testenv:test-token]
deps = -rrequirements-dev.txt
passenv = # pass env vars to tox to authenticate
IPF_URL
IPF_TOKEN
commands =
python --version
python -m pytest tests/
[testenv:build]
skip_install = true
deps =
setuptools
wheel
commands =
# clean up build/ and dist/ folders
python setup.py clean --all install
# build
# wheel is for pypi
# egg is for easy_install http://peak.telecommunity.com/DevCenter/PythonEggs
# sdist is for source distribution
#python setup.py bdist_wheel bdist_egg
python setup.py bdist_wheel