Disable auto discovery

Tripleo-ci jobs are broken after latest release of setuptools 61.0
because of breaking changes which are not backwork compatible,
details in related bug and [1].

Users that don't set ``packages``, ``py_modules``, or `configuration`
are still likely to observe the auto-discovery behavior, which may
halt the build if the project contains multiple directories and/or
multiple Python files directly under the project root.

To disable auto discovery, one can do below in setup.py

~~~
setuptools.setup(..,packages=[],..)
~~~

or

~~~
setuptools.setup(..,py_modules=[],..)
~~~

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

Releated-Bug: #1966382
Change-Id: If1509b0369aeaee72355da4dd3a5cdd7846114bb
(cherry picked from commit 0176edf256)
This commit is contained in:
Sandeep Yadav 2022-03-28 15:07:15 +05:30 committed by Marios Andreou
parent c868727ce9
commit 3896d3c0f9
1 changed files with 1 additions and 0 deletions

View File

@ -26,4 +26,5 @@ except ImportError:
setuptools.setup(
setup_requires=['pbr>=2.0.0'],
py_modules=[],
pbr=True)