2017-02-02 17:28:16 +01:00
|
|
|
[tox]
|
2020-01-04 19:50:06 +01:00
|
|
|
envlist = py27,py34,py35,py36,py37,py38,style,isort-check,packaging
|
2017-02-02 17:28:16 +01:00
|
|
|
|
|
|
|
[testenv]
|
2017-04-18 10:48:04 +02:00
|
|
|
deps =
|
2018-04-06 20:25:06 +02:00
|
|
|
-U
|
|
|
|
tox
|
|
|
|
pytest
|
|
|
|
pytest-cov
|
|
|
|
coverage
|
2020-04-03 21:58:56 +02:00
|
|
|
taxii2-client
|
2019-12-23 23:00:52 +01:00
|
|
|
fuzzywuzzy
|
2019-09-24 05:13:50 +02:00
|
|
|
haversine
|
2020-01-04 19:50:06 +01:00
|
|
|
python-Levenshtein
|
2020-04-03 21:58:56 +02:00
|
|
|
medallion
|
2017-04-18 10:48:04 +02:00
|
|
|
commands =
|
2019-08-08 21:22:21 +02:00
|
|
|
python -m pytest --cov=stix2 stix2/test/ --cov-report term-missing -W ignore::stix2.exceptions.STIXDeprecationWarning
|
2017-04-18 10:48:04 +02:00
|
|
|
|
|
|
|
passenv = CI TRAVIS TRAVIS_*
|
2017-02-02 17:28:16 +01:00
|
|
|
|
2018-04-11 21:40:52 +02:00
|
|
|
[testenv:style]
|
2017-03-22 14:13:14 +01:00
|
|
|
deps =
|
|
|
|
flake8
|
|
|
|
commands =
|
2017-09-11 16:28:46 +02:00
|
|
|
flake8
|
2017-02-02 17:28:16 +01:00
|
|
|
|
2017-04-07 22:36:42 +02:00
|
|
|
[flake8]
|
2018-04-06 20:25:06 +02:00
|
|
|
max-line-length = 160
|
2017-04-07 22:36:42 +02:00
|
|
|
|
2017-05-09 21:10:53 +02:00
|
|
|
[testenv:isort-check]
|
|
|
|
deps = isort
|
2017-07-14 22:02:29 +02:00
|
|
|
commands =
|
2018-04-06 20:25:06 +02:00
|
|
|
isort -rc stix2 examples -df
|
|
|
|
isort -rc stix2 examples -c
|
|
|
|
|
2018-05-02 19:37:44 +02:00
|
|
|
[testenv:packaging]
|
|
|
|
deps =
|
2019-08-12 18:28:27 +02:00
|
|
|
twine
|
2018-05-02 19:37:44 +02:00
|
|
|
commands =
|
2019-08-12 18:28:27 +02:00
|
|
|
python setup.py bdist_wheel --universal
|
|
|
|
twine check dist/*
|
2018-05-02 19:37:44 +02:00
|
|
|
|
2017-02-02 17:28:16 +01:00
|
|
|
[travis]
|
|
|
|
python =
|
2018-04-11 21:40:52 +02:00
|
|
|
2.7: py27, style
|
2020-01-04 19:50:06 +01:00
|
|
|
3.4: py34
|
|
|
|
3.5: py35
|
|
|
|
3.6: py36
|
|
|
|
3.7: py37
|
2020-01-04 19:55:04 +01:00
|
|
|
3.8: py38, style, packaging
|