Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Disable auto discovery
Browse files Browse the repository at this point in the history
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=[],..)
~~~

Depends-On added to deal with freeze issue seen in this review

[1] pypa/setuptools#3197

Depends-On: https://review.opendev.org/c/openstack/tripleo-ci/+/835776
Related-Bug: #1966382
Change-Id: If1509b0369aeaee72355da4dd3a5cdd7846114bb
(cherry picked from commit 0176edf)
  • Loading branch information
Sandeepyadav93 authored and marios committed Mar 30, 2022
1 parent 13015db commit 64cf6e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@

setuptools.setup(
setup_requires=['pbr>=2.0.0'],
py_modules=[],
pbr=True)

0 comments on commit 64cf6e3

Please sign in to comment.