Comment 54 for bug 1966382

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-upgrade (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/tripleo-upgrade/+/835688
Committed: https://opendev.org/openstack/tripleo-upgrade/commit/581347d43e1470ff9063710493bc5ba662f218ad
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 581347d43e1470ff9063710493bc5ba662f218ad
Author: Brendan Shephard <email address hidden>
Date: Mon Mar 28 15:18:18 2022 +1000

    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=[],..)
    ~~~

    Also, adding ^setup.*$ under irrelevant-files as content-provider
    parent[2] also have same.

    [1] https://github.com/pypa/setuptools/issues/3197
    [2] https://opendev.org/openstack/tripleo-ci/src/branch/master/zuul.d/base-upstream.yaml#L92

    Related-Bug: #1966382
    Change-Id: I643952b64d557f3bd81699e505588133cfe02f52
    (cherry picked from commit 13d7a4c60ed6d40b4354370f36b916caf7e21c2a)