c5ca3297f3
This change removes PyKMIP support for Python2.6. The last release of Python2.6 occurred in October 2013, over 3 years ago. It also does not support security features needed to use PyKMIP according to best practices. This change drops tox and TravisCI settings for Python2.6 and updates setup to no longer categorize the library as Python2.6 compliant. The README has been updated accordingly. Closes #116
37 lines
905 B
INI
37 lines
905 B
INI
[tox]
|
|
envlist = pep8,py27,py33,py34,py35,py36,bandit
|
|
|
|
[testenv]
|
|
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
|
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
commands =
|
|
coverage run --source=kmip/ --omit=kmip/demos/*,kmip/tests/* -m pytest --strict kmip/tests/unit
|
|
coverage report -m
|
|
coverage html
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 kmip/
|
|
|
|
[testenv:integration]
|
|
# Note: This requires local or remote access to a KMIP appliance or service
|
|
deps = {[testenv]deps}
|
|
basepython=python2.7
|
|
commands =
|
|
py.test --strict kmip/tests/integration -m "not ignore" {posargs}
|
|
|
|
[testenv:bandit]
|
|
deps = {[testenv]deps}
|
|
commands = bandit -r kmip -n5 -x kmip/tests
|
|
|
|
[testenv:docs]
|
|
deps = sphinx
|
|
commands =
|
|
sphinx-apidoc -o {toxinidir}/docs {toxinidir}/kmip/
|
|
sphinx-build -b html {toxinidir}/docs {toxinidir}/docs/_build
|
|
|
|
[flake8]
|
|
exclude = .git,.tox,dist,rpmbuild,*.egg-info
|