Disable auto-discovery for setuptools and update python testing

With setuptools release 61.0.0 docs build started to fail:
error: Multiple top-level packages discovered in a flat-layout:
['specs', 'attic', 'superseded'].

This bug is mentioned in setuptools issue 3197 [0], and the suggested
workaround is to disable auto-discovery by adding 'py_modules=[]' in
setup.py.

Also use recent python versions because the old ones are no longer available.

These 2 unrelated changes need to be merged together in order to unblock
the gate.

[0] https://github.com/pypa/setuptools/issues/3197

Change-Id: Iddc30b9521b61d9083c2b1f6e8a6707196ea0a57
This commit is contained in:
Dr. Jens Harbott 2022-04-29 13:55:59 +02:00 committed by Boris Bobrov
parent f9f4e50737
commit 6df4f46055
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
- project:
templates:
- openstack-specs-jobs
- openstack-python3-ussuri-jobs
- openstack-python3-zed-jobs

View File

@ -18,4 +18,5 @@ import setuptools
setuptools.setup(
setup_requires=['pbr'],
pbr=True)
pbr=True,
py_modules=[])