Codebase list python-castellan / 141e7e4
[ussuri][goal] Drop python 2.7 support and testing OpenStack is dropping the py2.7 support in ussuri cycle. Complete discussion & schedule can be found in - http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html - https://etherpad.openstack.org/p/drop-python2-support Ussuri Communtiy-wide goal: https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html Cleanup setup.cfg as well. Increase requests version in lower-constraints: requests>=2.18.0 is needed by oslo.config, which leads to some other updates... Change-Id: I09f0da9a59952739dd1575200aa47cc12026264f Andreas Jaeger 3 years ago
7 changed file(s) with 16 addition(s) and 37 deletion(s). Raw diff Collapse all Expand all
5959 templates:
6060 - check-requirements
6161 - openstack-lower-constraints-jobs
62 - openstack-python-jobs
6362 - openstack-python3-ussuri-jobs
6463 - periodic-stable-jobs
6564 - publish-openstack-docs-pti
0 sphinx>=1.8.0,<2.0.0;python_version=='2.7' # BSD
1 sphinx>=1.8.0,!=2.1.0;python_version>='3.4' # BSD
0 sphinx>=1.8.0,!=2.1.0 # BSD
21 sphinxcontrib-svg2pdfconverter>=0.1.0 # BSD
32 reno>=2.5.0 # Apache-2.0
43 openstackdocstheme>=1.18.1 # Apache-2.0
1616 gitdb==0.6.4
1717 GitPython==1.0.1
1818 hacking==0.12.0
19 idna==2.6
19 idna==2.5
2020 imagesize==0.7.1
2121 iso8601==0.1.11
2222 Jinja2==2.10
5454 python-subunit==1.0.0
5555 pytz==2013.6
5656 PyYAML==3.12
57 requests==2.14.2
57 requests==2.18.0
5858 requestsexceptions==1.2.0
5959 rfc3986==0.3.1
6060 six==1.10.0
0 ---
1 upgrade:
2 - |
3 Python 2.7 support has been dropped. The minimum version of Python now
4 supported by castellan is Python 3.6.
1212 oslo.utils>=3.33.0 # Apache-2.0
1313 stevedore>=1.20.0 # Apache-2.0
1414 keystoneauth1>=3.4.0 # Apache-2.0
15 requests>=2.14.2,!=2.20.0 # Apache-2.0
15 requests>=2.18.0,!=2.20.0 # Apache-2.0
55 author = OpenStack
66 author-email = openstack-discuss@lists.openstack.org
77 home-page = https://docs.openstack.org/castellan/latest/
8 python-requires = >=3.6
89 classifier =
910 Environment :: OpenStack
1011 Intended Audience :: Information Technology
1213 License :: OSI Approved :: Apache Software License
1314 Operating System :: POSIX :: Linux
1415 Programming Language :: Python
15 Programming Language :: Python :: 2
16 Programming Language :: Python :: 2.7
1716 Programming Language :: Python :: 3
1817 Programming Language :: Python :: 3.6
1918 Programming Language :: Python :: 3.7
19 Programming Language :: Python :: 3 :: Only
20 Programming Language :: Python :: Implementation :: CPython
2021
2122 [files]
2223 packages =
3435 barbican = castellan.key_manager.barbican_key_manager:BarbicanKeyManager
3536 vault = castellan.key_manager.vault_key_manager:VaultKeyManager
3637
37 [build_sphinx]
38 source-dir = doc/source
39 build-dir = doc/build
40 all_files = 1
41 warning-is-error = 1
42
43 [upload_sphinx]
44 upload-dir = doc/build/html
45
4638 [compile_catalog]
4739 directory = castellan/locale
4840 domain = castellan
5648 keywords = _ gettext ngettext l_ lazy_gettext
5749 mapping_file = babel.cfg
5850 output_file = castellan/locale/castellan.pot
59
60 [wheel]
61 universal = 1
00 [tox]
1 minversion = 2.0
2 envlist = py27,py37,pep8
1 minversion = 3.1.1
2 envlist = py37,pep8
3 ignore_basepython_conflict = True
34 skipsdist = True
45
56 [testenv]
67 usedevelop = True
7 install_command = pip install {opts} {packages}
8 basepython = python3
89 setenv =
910 VIRTUAL_ENV={envdir}
1011 OS_TEST_PATH=./castellan/tests/unit
1415 -r{toxinidir}/test-requirements.txt
1516 commands = stestr run --slowest {posargs}
1617
17 [testenv:py27]
18 basepython = python2.7
19
2018 [testenv:pep8]
21 basepython = python3
2219 commands =
2320 flake8
2421 bandit -r castellan -x tests -s B105,B106,B107,B607
2522
2623 [testenv:bandit]
27 basepython = python3
2824 # This command runs the bandit security linter against the castellan
2925 # codebase minus the tests directory. Some tests are being excluded to
3026 # reduce the number of positives before a team inspection, and to ensure a
3733 bandit -r castellan -x tests -s B105,B106,B107,B607
3834
3935 [testenv:venv]
40 basepython = python3
4136 commands = {posargs}
4237
4338 [testenv:debug]
44 basepython = python3
4539 commands = oslo_debug_helper {posargs}
4640
4741 [testenv:cover]
48 basepython = python3
4942 setenv =
5043 PYTHON=coverage run --source $project --parallel-mode
5144 commands =
5952 # This environment is called from CI scripts to test and publish
6053 # the main docs to https://docs.openstack.org/castellan
6154 description = Build main documentation
62 basepython = python3
6355 deps = -r{toxinidir}/doc/requirements.txt
6456 commands=
6557 rm -rf doc/build doc/build/doctrees
6759 whitelist_externals = rm
6860
6961 [testenv:pdf-docs]
70 basepython = python3
7162 deps = {[testenv:docs]deps}
7263 envdir = {toxworkdir}/docs
7364 whitelist_externals =
7970 make -C doc/build/pdf
8071
8172 [testenv:releasenotes]
82 basepython = python3
8373 deps = {[testenv:docs]deps}
8474 envdir = {toxworkdir}/docs
8575 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
10393 {toxinidir}/tools/setup-vault-env.sh pifpaf -e VAULT_TEST run vault -- stestr run --slowest {posargs}
10494
10595 [testenv:genconfig]
106 basepython = python3
10796 commands =
10897 oslo-config-generator --config-file=etc/castellan/functional-config-generator.conf
10998 oslo-config-generator --config-file=etc/castellan/sample-config-generator.conf
119108 import_exceptions = castellan.i18n
120109
121110 [testenv:lower-constraints]
122 basepython = python3
123111 deps =
124112 -c{toxinidir}/lower-constraints.txt
125113 -r{toxinidir}/test-requirements.txt
126114 -r{toxinidir}/requirements.txt
127115
128116 [testenv:bindep]
129 basepython = python3
130117 # Do not install any requirements. We want this to be fast and work even if
131118 # system dependencies are missing, since it's used to tell you what system
132119 # dependencies are missing! This also means that bindep must be installed