Some Cleanups
This repo is now Python 3, update:
- Remove python 2.7 stanza from setup.py
- Remove install_command from tox.ini, the default is fine
- Remove Babel from requirements, it's not needed for running.
- Use TOX_CONSTRAINTS_FILE instead of obsolete UPPER_CONSTRAINTS_FILE.
- Use py36 for fault test
Change-Id: Ia23841a4899361178994e349e1323de857b4ee23
Andreas Jaeger
3 years ago
0 | 0 |
- job:
|
1 | 1 |
name: castellan-functional-vault
|
2 | |
parent: openstack-tox-py27
|
|
2 |
parent: openstack-tox-py36
|
3 | 3 |
description: |
|
4 | 4 |
Run tox functional-vault target
|
5 | 5 |
required-projects:
|
0 | 0 |
appdirs==1.3.0
|
1 | 1 |
asn1crypto==0.23.0
|
2 | |
Babel==2.3.4
|
3 | 2 |
certifi==2020.4.5.2
|
4 | 3 |
cffi==1.13.2
|
5 | 4 |
chardet==3.0.4
|
2 | 2 |
# process, which may cause wedges in the gate later.
|
3 | 3 |
|
4 | 4 |
pbr!=2.1.0,>=2.0.0 # Apache-2.0
|
5 | |
Babel!=2.4.0,>=2.3.4 # BSD
|
6 | 5 |
cryptography>=2.1 # BSD/Apache-2.0
|
7 | 6 |
python-barbicanclient>=4.5.2 # Apache-2.0
|
8 | 7 |
oslo.config>=6.4.0 # Apache-2.0
|
12 | 12 |
# See the License for the specific language governing permissions and
|
13 | 13 |
# limitations under the License.
|
14 | 14 |
|
15 | |
# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
|
16 | 15 |
import setuptools
|
17 | |
|
18 | |
# In python < 2.7.4, a lazy loading of package `pbr` will break
|
19 | |
# setuptools if some other modules registered functions in `atexit`.
|
20 | |
# solution from: http://bugs.python.org/issue15881#msg170215
|
21 | |
try:
|
22 | |
import multiprocessing # noqa
|
23 | |
except ImportError:
|
24 | |
pass
|
25 | 16 |
|
26 | 17 |
setuptools.setup(
|
27 | 18 |
setup_requires=['pbr>=2.0.0'],
|
10 | 10 |
VIRTUAL_ENV={envdir}
|
11 | 11 |
OS_TEST_PATH=./castellan/tests/unit
|
12 | 12 |
deps =
|
13 | |
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
|
|
13 |
-c{env:TOX_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
|
14 | 14 |
-r{toxinidir}/requirements.txt
|
15 | 15 |
-r{toxinidir}/test-requirements.txt
|
16 | 16 |
commands = stestr run --slowest {posargs}
|
|
77 | 77 |
|
78 | 78 |
[testenv:functional]
|
79 | 79 |
usedevelop = True
|
80 | |
install_command = pip install -U {opts} {packages}
|
81 | 80 |
setenv =
|
82 | 81 |
VIRTUAL_ENV={envdir}
|
83 | 82 |
OS_TEST_PATH=./castellan/tests/functional
|
|
86 | 85 |
[testenv:functional-vault]
|
87 | 86 |
passenv = HOME
|
88 | 87 |
usedevelop = True
|
89 | |
install_command = pip install -U {opts} {packages}
|
90 | 88 |
setenv =
|
91 | 89 |
VIRTUAL_ENV={envdir}
|
92 | 90 |
OS_TEST_PATH=./castellan/tests/functional
|