Merge "[ussuri][goal] Drop python 2.7 support and testing"
This commit is contained in:
commit
7bf9bb1d2a
@ -3,7 +3,6 @@
|
|||||||
parent: legacy-dsvm-base
|
parent: legacy-dsvm-base
|
||||||
vars:
|
vars:
|
||||||
database: sql
|
database: sql
|
||||||
python_version: py36
|
|
||||||
services: tempest,rabbit,mysql,key
|
services: tempest,rabbit,mysql,key
|
||||||
required-projects:
|
required-projects:
|
||||||
- openstack/devstack-gate
|
- openstack/devstack-gate
|
||||||
@ -19,7 +18,6 @@
|
|||||||
parent: legacy-base
|
parent: legacy-base
|
||||||
vars:
|
vars:
|
||||||
database: sql
|
database: sql
|
||||||
python_version: py27
|
|
||||||
services: tempest,keystone
|
services: tempest,keystone
|
||||||
required-projects:
|
required-projects:
|
||||||
- openstack/devstack
|
- openstack/devstack
|
||||||
@ -35,7 +33,6 @@
|
|||||||
name: barbican-devstack-tempest-base
|
name: barbican-devstack-tempest-base
|
||||||
parent: legacy-dsvm-base
|
parent: legacy-dsvm-base
|
||||||
vars:
|
vars:
|
||||||
python_version: py27
|
|
||||||
database: sql
|
database: sql
|
||||||
castellan_from_git: 0
|
castellan_from_git: 0
|
||||||
cursive: 0
|
cursive: 0
|
||||||
@ -58,7 +55,6 @@
|
|||||||
# non-voting until https://pagure.io/dogtagpki/issue/3108 is fixed
|
# non-voting until https://pagure.io/dogtagpki/issue/3108 is fixed
|
||||||
voting: false
|
voting: false
|
||||||
vars:
|
vars:
|
||||||
python_version: py35
|
|
||||||
services: barbican-dogtag,tempest,rabbit,mysql,key
|
services: barbican-dogtag,tempest,rabbit,mysql,key
|
||||||
plugin: dogtag
|
plugin: dogtag
|
||||||
post-run: playbooks/legacy/barbican-devstack-functional-base/dogtag-post.yaml
|
post-run: playbooks/legacy/barbican-devstack-functional-base/dogtag-post.yaml
|
||||||
@ -155,7 +151,6 @@
|
|||||||
- check-requirements
|
- check-requirements
|
||||||
- openstack-cover-jobs
|
- openstack-cover-jobs
|
||||||
- openstack-lower-constraints-jobs
|
- openstack-lower-constraints-jobs
|
||||||
- openstack-python-jobs
|
|
||||||
- openstack-python3-ussuri-jobs
|
- openstack-python3-ussuri-jobs
|
||||||
- publish-openstack-docs-pti
|
- publish-openstack-docs-pti
|
||||||
- release-notes-jobs-python3
|
- release-notes-jobs-python3
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
sphinx!=1.6.6,!=1.6.7,>=1.6.2,<2.0.0;python_version=='2.7' # BSD
|
sphinx>=1.8.0,!=2.1.0 # BSD
|
||||||
sphinx>=1.8.0,!=2.1.0;python_version>='3.4' # BSD
|
|
||||||
sphinxcontrib-httpdomain>=1.3.0 # BSD
|
sphinxcontrib-httpdomain>=1.3.0 # BSD
|
||||||
sphinxcontrib-blockdiag>=1.5.4 # BSD
|
sphinxcontrib-blockdiag>=1.5.4 # BSD
|
||||||
sphinxcontrib-svg2pdfconverter>=0.1.0 # BSD
|
sphinxcontrib-svg2pdfconverter>=0.1.0 # BSD
|
||||||
|
@ -33,15 +33,7 @@
|
|||||||
export PROJECTS="openstack/python-barbicanclient $PROJECTS"
|
export PROJECTS="openstack/python-barbicanclient $PROJECTS"
|
||||||
export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS"
|
export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS"
|
||||||
export DEVSTACK_LOCAL_CONFIG="enable_plugin barbican https://opendev.org/openstack/barbican"
|
export DEVSTACK_LOCAL_CONFIG="enable_plugin barbican https://opendev.org/openstack/barbican"
|
||||||
if [[ "{{ python_version }}" == py3* ]] ; then
|
|
||||||
export DEVSTACK_GATE_USE_PYTHON3=True
|
export DEVSTACK_GATE_USE_PYTHON3=True
|
||||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account"
|
|
||||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container"
|
|
||||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object"
|
|
||||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy"
|
|
||||||
else
|
|
||||||
export DEVSTACK_GATE_USE_PYTHON3=False
|
|
||||||
fi
|
|
||||||
|
|
||||||
function gate_hook {
|
function gate_hook {
|
||||||
$BASE/new/barbican/devstack/gate_hook.sh
|
$BASE/new/barbican/devstack/gate_hook.sh
|
||||||
|
@ -46,11 +46,7 @@
|
|||||||
export PROJECTS="openstack/python-barbicanclient $PROJECTS"
|
export PROJECTS="openstack/python-barbicanclient $PROJECTS"
|
||||||
export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS"
|
export PROJECTS="openstack/barbican-tempest-plugin $PROJECTS"
|
||||||
|
|
||||||
if [[ "{{ python_version }}" == py3* ]] ; then
|
|
||||||
export DEVSTACK_GATE_USE_PYTHON3=True
|
export DEVSTACK_GATE_USE_PYTHON3=True
|
||||||
else
|
|
||||||
export DEVSTACK_GATE_USE_PYTHON3=False
|
|
||||||
fi
|
|
||||||
|
|
||||||
function gate_hook {
|
function gate_hook {
|
||||||
$BASE/new/barbican/devstack/gate_hook.sh
|
$BASE/new/barbican/devstack/gate_hook.sh
|
||||||
|
@ -53,19 +53,13 @@
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
export -f pre_test_hook
|
export -f pre_test_hook
|
||||||
|
export DEVSTACK_GATE_USE_PYTHON3=True
|
||||||
if [ "{{ database }}" == "postgres" ] ; then
|
if [ "{{ database }}" == "postgres" ] ; then
|
||||||
export DEVSTACK_GATE_POSTGRES=1
|
export DEVSTACK_GATE_POSTGRES=1
|
||||||
elif [ "{{ castellan_from_git }}" == "1" ] ; then
|
elif [ "{{ castellan_from_git }}" == "1" ] ; then
|
||||||
export DEVSTACK_PROJECT_FROM_GIT="castellan"
|
export DEVSTACK_PROJECT_FROM_GIT="castellan"
|
||||||
elif [ "{{ cursive }}" == "1" ] ; then
|
elif [ "{{ cursive }}" == "1" ] ; then
|
||||||
export DEVSTACK_PROJECT_FROM_GIT="cursive"
|
export DEVSTACK_PROJECT_FROM_GIT="cursive"
|
||||||
elif [ "{{ python_version }}" == "py35" ] ; then
|
|
||||||
export DEVSTACK_GATE_USE_PYTHON3=True
|
|
||||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account"
|
|
||||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container"
|
|
||||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object"
|
|
||||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
function post_test_hook {
|
function post_test_hook {
|
||||||
|
@ -49,6 +49,7 @@
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
export -f pre_test_hook
|
export -f pre_test_hook
|
||||||
|
export DEVSTACK_GATE_USE_PYTHON3=True
|
||||||
|
|
||||||
if [ "{{ database }}" == "postgres" ] ; then
|
if [ "{{ database }}" == "postgres" ] ; then
|
||||||
export DEVSTACK_GATE_POSTGRES=1
|
export DEVSTACK_GATE_POSTGRES=1
|
||||||
@ -56,12 +57,6 @@
|
|||||||
export DEVSTACK_PROJECT_FROM_GIT="castellan"
|
export DEVSTACK_PROJECT_FROM_GIT="castellan"
|
||||||
elif [ "{{ cursive }}" == "1" ] ; then
|
elif [ "{{ cursive }}" == "1" ] ; then
|
||||||
export DEVSTACK_PROJECT_FROM_GIT="cursive"
|
export DEVSTACK_PROJECT_FROM_GIT="cursive"
|
||||||
elif [[ "{{ python_version }}" == py3* ]] ; then
|
|
||||||
export DEVSTACK_GATE_USE_PYTHON3=True
|
|
||||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-account"
|
|
||||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-container"
|
|
||||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-object"
|
|
||||||
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service s-proxy"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||||
|
6
releasenotes/notes/drop-py-2-7-f745ea90b33c7910.yaml
Normal file
6
releasenotes/notes/drop-py-2-7-f745ea90b33c7910.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
Python 2.7 support has been dropped. Last release of Barbican
|
||||||
|
to support python 2.7 is OpenStack Train. The minimum version of Python now
|
||||||
|
supported by Barbican is Python 3.6.
|
@ -14,8 +14,6 @@ classifier =
|
|||||||
License :: OSI Approved :: Apache Software License
|
License :: OSI Approved :: Apache Software License
|
||||||
Operating System :: POSIX :: Linux
|
Operating System :: POSIX :: Linux
|
||||||
Programming Language :: Python
|
Programming Language :: Python
|
||||||
Programming Language :: Python :: 2
|
|
||||||
Programming Language :: Python :: 2.7
|
|
||||||
Programming Language :: Python :: 3
|
Programming Language :: Python :: 3
|
||||||
Programming Language :: Python :: 3.6
|
Programming Language :: Python :: 3.6
|
||||||
Programming Language :: Python :: 3.7
|
Programming Language :: Python :: 3.7
|
||||||
|
19
tox.ini
19
tox.ini
@ -1,9 +1,10 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 2.0
|
minversion = 2.0
|
||||||
envlist = py27,py36,py37,pep8,docs
|
envlist = py36,py37,pep8,docs
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
basepython = python3
|
||||||
setenv =
|
setenv =
|
||||||
PYTHON=coverage run --source barbican --parallel-mode
|
PYTHON=coverage run --source barbican --parallel-mode
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
@ -24,7 +25,6 @@ commands =
|
|||||||
whitelist_externals = rm
|
whitelist_externals = rm
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
basepython = python3
|
|
||||||
deps =
|
deps =
|
||||||
{[testenv]deps}
|
{[testenv]deps}
|
||||||
diff_cover
|
diff_cover
|
||||||
@ -37,14 +37,12 @@ commands =
|
|||||||
diff-cover --fail-under 100 --compare-branch master cover/coverage.xml
|
diff-cover --fail-under 100 --compare-branch master cover/coverage.xml
|
||||||
|
|
||||||
[testenv:releasenotes]
|
[testenv:releasenotes]
|
||||||
basepython = python3
|
|
||||||
deps = -r{toxinidir}/doc/requirements.txt
|
deps = -r{toxinidir}/doc/requirements.txt
|
||||||
commands =
|
commands =
|
||||||
rm -rf releasenotes/build
|
rm -rf releasenotes/build
|
||||||
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
basepython = python3
|
|
||||||
sitepackages = False
|
sitepackages = False
|
||||||
commands =
|
commands =
|
||||||
doc8 {posargs}
|
doc8 {posargs}
|
||||||
@ -53,24 +51,20 @@ commands =
|
|||||||
bandit -r barbican -x tests -n5 -s B105
|
bandit -r barbican -x tests -n5 -s B105
|
||||||
|
|
||||||
[testenv:genconfig]
|
[testenv:genconfig]
|
||||||
basepython = python3
|
|
||||||
whitelist_externals = bash
|
whitelist_externals = bash
|
||||||
envdir = {toxworkdir}/pep8
|
envdir = {toxworkdir}/pep8
|
||||||
commands =
|
commands =
|
||||||
oslo-config-generator --config-file etc/oslo-config-generator/barbican.conf
|
oslo-config-generator --config-file etc/oslo-config-generator/barbican.conf
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
basepython = python3
|
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:debug]
|
[testenv:debug]
|
||||||
basepython = python3
|
|
||||||
commands = oslo_debug_helper -t barbican/tests {posargs}
|
commands = oslo_debug_helper -t barbican/tests {posargs}
|
||||||
|
|
||||||
[testenv:py3pep8]
|
[testenv:py3pep8]
|
||||||
# This hack is in place to allow us to run py3 based flake8
|
# This hack is in place to allow us to run py3 based flake8
|
||||||
# without installing barbican.
|
# without installing barbican.
|
||||||
basepython = python3
|
|
||||||
install_command = /bin/echo {packages}
|
install_command = /bin/echo {packages}
|
||||||
commands =
|
commands =
|
||||||
pip install "hacking>=0.10.0,<0.11"
|
pip install "hacking>=0.10.0,<0.11"
|
||||||
@ -80,7 +74,6 @@ commands =
|
|||||||
# This environment is called from CI scripts to test and publish
|
# This environment is called from CI scripts to test and publish
|
||||||
# the main docs to https://docs.openstack.org/barbican
|
# the main docs to https://docs.openstack.org/barbican
|
||||||
description = Build main documentation
|
description = Build main documentation
|
||||||
basepython = python3
|
|
||||||
deps = -r{toxinidir}/doc/requirements.txt
|
deps = -r{toxinidir}/doc/requirements.txt
|
||||||
commands=
|
commands=
|
||||||
rm -rf doc/build doc/build/doctrees
|
rm -rf doc/build doc/build/doctrees
|
||||||
@ -88,7 +81,6 @@ commands=
|
|||||||
whitelist_externals = rm
|
whitelist_externals = rm
|
||||||
|
|
||||||
[testenv:pdf-docs]
|
[testenv:pdf-docs]
|
||||||
basepython = python3
|
|
||||||
deps = {[testenv:docs]deps}
|
deps = {[testenv:docs]deps}
|
||||||
whitelist_externals =
|
whitelist_externals =
|
||||||
make
|
make
|
||||||
@ -97,7 +89,6 @@ commands =
|
|||||||
make -C doc/build/pdf
|
make -C doc/build/pdf
|
||||||
|
|
||||||
[testenv:api-guide]
|
[testenv:api-guide]
|
||||||
basepython = python3
|
|
||||||
# This environment is called from CI scripts to test and publish
|
# This environment is called from CI scripts to test and publish
|
||||||
# the API Guide to docs.openstack.org.
|
# the API Guide to docs.openstack.org.
|
||||||
deps = -r{toxinidir}/doc/requirements.txt
|
deps = -r{toxinidir}/doc/requirements.txt
|
||||||
@ -107,7 +98,6 @@ commands =
|
|||||||
|
|
||||||
[testenv:all-docs]
|
[testenv:all-docs]
|
||||||
description = Build all documentation
|
description = Build all documentation
|
||||||
basepython = python3
|
|
||||||
deps = -r{toxinidir}/doc/requirements.txt
|
deps = -r{toxinidir}/doc/requirements.txt
|
||||||
commands=
|
commands=
|
||||||
{[testenv:docs]commands}
|
{[testenv:docs]commands}
|
||||||
@ -133,7 +123,6 @@ passenv = KMIP_PLUGIN_ENABLED
|
|||||||
PKCS11_PLUGIN_ENABLED
|
PKCS11_PLUGIN_ENABLED
|
||||||
|
|
||||||
[testenv:cmd]
|
[testenv:cmd]
|
||||||
basepython = python3
|
|
||||||
# This tox env is purely to make local test development easier
|
# This tox env is purely to make local test development easier
|
||||||
# Note: This requires local running instances of Barbican and Keystone
|
# Note: This requires local running instances of Barbican and Keystone
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
@ -156,12 +145,10 @@ exclude = .git,.idea,.tox,bin,dist,debian,rpmbuild,tools,*.egg-info,*.eggs,contr
|
|||||||
*docs/target,*.egg,build
|
*docs/target,*.egg,build
|
||||||
|
|
||||||
[testenv:bandit]
|
[testenv:bandit]
|
||||||
basepython = python3
|
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
commands = bandit -r barbican -x tests -n5
|
commands = bandit -r barbican -x tests -n5
|
||||||
|
|
||||||
[testenv:bindep]
|
[testenv:bindep]
|
||||||
basepython = python3
|
|
||||||
# Do not install any requirements. We want this to be fast and work even if
|
# Do not install any requirements. We want this to be fast and work even if
|
||||||
# system dependencies are missing, since it's used to tell you what system
|
# system dependencies are missing, since it's used to tell you what system
|
||||||
# dependencies are missing! This also means that bindep must be installed
|
# dependencies are missing! This also means that bindep must be installed
|
||||||
@ -170,7 +157,6 @@ deps = bindep
|
|||||||
commands = bindep test
|
commands = bindep test
|
||||||
|
|
||||||
[testenv:genpolicy]
|
[testenv:genpolicy]
|
||||||
basepython = python3
|
|
||||||
envdir = {toxworkdir}/pep8
|
envdir = {toxworkdir}/pep8
|
||||||
commands = oslopolicy-sample-generator --config-file=etc/oslo-config-generator/policy.conf
|
commands = oslopolicy-sample-generator --config-file=etc/oslo-config-generator/policy.conf
|
||||||
|
|
||||||
@ -178,7 +164,6 @@ commands = oslopolicy-sample-generator --config-file=etc/oslo-config-generator/p
|
|||||||
local-check-factory = barbican.hacking.checks.factory
|
local-check-factory = barbican.hacking.checks.factory
|
||||||
|
|
||||||
[testenv:lower-constraints]
|
[testenv:lower-constraints]
|
||||||
basepython = python3
|
|
||||||
deps =
|
deps =
|
||||||
-c{toxinidir}/lower-constraints.txt
|
-c{toxinidir}/lower-constraints.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user