Fix CI jobs(py38, py310) and upload of wheels package to PyPi

According to PEP440[1] python wheel with a direct references
in their metadata cannot be uploaded to PyPi(public index server). Move "aodh-master" tarball url to tox.ini.

Since this project doesn't consume upper-constraints, the latest
releases of a few packages are being installed which breaks
"gnocchi upgrade" when running py38 and py310 jobs. Avoid this
by pinning sqlalchemy and oslo.db packages.

[1] https://peps.python.org/pep-0440/#direct-references

Change-Id: I6c10d87c572f9503484fcb02f6f0a0188c9454b3
This commit is contained in:
Yadnesh Kulkarni
2023-02-20 19:32:03 +05:30
parent 02176deb25
commit 5a8598c436
3 changed files with 8 additions and 2 deletions

View File

@@ -11,3 +11,7 @@ oslo.utils>=2.0.0 # Apache-2.0
osprofiler>=1.4.0 # Apache-2.0 osprofiler>=1.4.0 # Apache-2.0
keystoneauth1>=1.0.0 keystoneauth1>=1.0.0
pyparsing pyparsing
SQLAlchemy-Utils<=0.38.3
sqlalchemy-migrate<=0.13.0
SQLAlchemy<=1.4.41
oslo.db<=12.3.1

View File

@@ -33,7 +33,8 @@ test =
testtools>=1.4.0 testtools>=1.4.0
pifpaf[gnocchi]>=0.23 pifpaf[gnocchi]>=0.23
gnocchi[postgresql,file] gnocchi[postgresql,file]
aodh @ https://tarballs.openstack.org/aodh/aodh-master.tar.gz#egg=aodh[mysql] ;Disabled due to https://github.com/pypa/twine/issues/726
;aodh @ https://tarballs.openstack.org/aodh/aodh-master.tar.gz#egg=aodh[mysql]
[entry_points] [entry_points]
console_scripts = console_scripts =

View File

@@ -22,6 +22,7 @@ passenv =
# NOTE(jd): the -e is on its own line so it is passed a separate argument to pip # NOTE(jd): the -e is on its own line so it is passed a separate argument to pip
deps = deps =
.[test] .[test]
http://tarballs.openstack.org/aodh/aodh-master.tar.gz#egg=aodh[mysql]
commands = pifpaf run aodh -- stestr run --slowest {posargs} commands = pifpaf run aodh -- stestr run --slowest {posargs}
[testenv:pep8] [testenv:pep8]