[WIP] Update molteniron tests and requirements

Change-Id: I22777cf34888171daf69c44705d8ecc7339f8278
This commit is contained in:
Riccardo Pittau 2021-10-05 17:32:04 +02:00
parent 524d1f1c7d
commit 2a577faf17
7 changed files with 109 additions and 21 deletions

60
.gitignore vendored Normal file
View File

@ -0,0 +1,60 @@
*.py[cod]
# C extensions
*.so
# Packages
*.egg*
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
lib
lib64
# Installer logs
pip-log.txt
# Unit test / coverage reports
cover/
.coverage*
!.coveragerc
.tox
nosetests.xml
.stestr/
.venv
# Translations
*.mo
# Mr Developer
.mr.developer.cfg
.project
.pydevproject
# Complexity
output/*.html
output/*/index.html
# Sphinx
doc/build
doc/source/reference/api
# pbr generates these
AUTHORS
ChangeLog
# Editors
*~
.*.swp
.*sw?
# Files created by releasenotes build
releasenotes/build

View File

@ -1,4 +1,8 @@
- project:
templates:
- openstack-python3-ussuri-jobs
- check-requirements
- openstack-cover-jobs
- openstack-lower-constraints-master-branch-jobs
- openstack-python3-yoga-jobs
- publish-openstack-docs-pti
- release-notes-jobs-python3

7
doc/requirements.txt Normal file
View File

@ -0,0 +1,7 @@
openstackdocstheme>=2.2.0 # Apache-2.0
os-api-ref>=1.4.0 # Apache-2.0
reno>=3.1.0 # Apache-2.0
sphinx>=2.0.0,!=2.1.0 # BSD
sphinxcontrib-apidoc>=0.2.0 # BSD
sphinxcontrib-seqdiag>=0.8.4 # BSD
sphinxcontrib-svg2pdfconverter>=0.1.0 # BSD

6
lower-constraints.txt Normal file
View File

@ -0,0 +1,6 @@
PyMySQL==0.8.0
SQLAlchemy-Utils==0.30.11
SQLAlchemy==1.2.19
daemonize==2.5.0
pbr==2.0.0
PyYAML==3.10

View File

@ -2,10 +2,9 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
pbr>=1.6 # Apache-2.0
daemonize
PyMySQL>=0.6.2,!=0.7.7 # MIT License
pyyaml
sqlalchemy
sqlalchemy_utils
pbr>=2.0.0 # Apache-2.0
daemonize>=2.5.0 # MIT License
PyMySQL>=0.8.0 # MIT License
PyYAML>=3.10 # MIT License
SQLAlchemy>=1.2.19 # MIT License
SQLAlchemy-Utils>=0.30.11 # BSD

View File

@ -3,15 +3,9 @@
# process, which may cause wedges in the gate later.
hacking>=0.11.0,<0.12 # Apache-2.0
coverage>=4.0 # Apache-2.0
python-subunit>=0.0.18 # Apache-2.0/BSD
sphinx>=1.2.1,!=1.3b1,<1.4 # BSD
openstackdocstheme>=1.11.0 # Apache-2.0
oslotest>=1.10.0 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
testscenarios>=0.4 # Apache-2.0/BSD
testtools>=1.4.0 # MIT
# releasenotes
reno>=1.8.0 # Apache2

32
tox.ini
View File

@ -1,8 +1,8 @@
[tox]
minversion = 3.1.0
envlist = py3,pypy,pep8
ignore_basepython_conflict = True
minversion = 3.18.0
skipsdist = True
envlist = py3,pep8
ignore_basepython_conflict=true
[testenv]
basepython = python3
@ -13,10 +13,8 @@ setenv =
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
# Don't worry about installing bash commands in the virtual environment.
whitelist_externals = mkdir
allowlist_externals = mkdir
diff
#commands = python setup.py test --slowest --testr-args='{posargs}'
commands = mkdir -p testenv/var/run/
mkdir -p testenv/tmp/
python setup.py \
@ -96,10 +94,24 @@ commands = {posargs}
commands = python setup.py test --coverage --testr-args='{posargs}'
[testenv:docs]
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/doc/requirements.txt
commands = sphinx-build -b html -W doc/source doc/build/html
[testenv:pdf-docs]
allowlist_externals = make
deps = {[testenv:docs]deps}
commands =
sphinx-build -W -d doc/build/doctrees -b html doc/source doc/build/html
sphinx-build -W -b latex doc/source doc/build/pdf
make -C doc/build/pdf
[testenv:releasenotes]
usedevelop = False
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
@ -113,3 +125,9 @@ show-source = True
ignore = E123,E125
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
[testenv:lower-constraints]
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt