From 64cf6e3caf76c0c7b6a2402a5660e6220abdee38 Mon Sep 17 00:00:00 2001 From: Sandeep Yadav Date: Mon, 28 Mar 2022 15:07:15 +0530 Subject: [PATCH] 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=[],..) ~~~ Depends-On added to deal with freeze issue seen in this review [1] https://github.com/pypa/setuptools/issues/3197 Depends-On: https://review.opendev.org/c/openstack/tripleo-ci/+/835776 Related-Bug: #1966382 Change-Id: If1509b0369aeaee72355da4dd3a5cdd7846114bb (cherry picked from commit 0176edf256e69c266845194e57882c9e9cb5ef94) --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 566d84432e..be253e10a2 100644 --- a/setup.py +++ b/setup.py @@ -26,4 +26,5 @@ setuptools.setup( setup_requires=['pbr>=2.0.0'], + py_modules=[], pbr=True)