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

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I4cf10643a18fbc331213b5a3f3d4e4f207f49527
changes/37/835537/1
Jiri Podivin 2022-03-29 08:57:50 +02:00
parent 9e10627f14
commit 66f8964f59
1 changed files with 1 additions and 0 deletions

View File

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