New setuptools is auto discoverying multiple package dirs in our repo because multiple top level dirs contain python content. While auto discovery excludes common dirs like doc/, testinfra/, and tools/ others are not excluded from discovery like playbooks/ and docker/. This results in an error as auto discovery is only valid if a single possible package dir is discovered. It would be preferable to exclude the additional dirs instead but I can't seem to find a way to do that. The documentation can be found at: https://setuptools.pypa.io/en/latest/userguide/package_discovery.html#automatic-discovery To workaround this we tell setuptools to not auto discovery packages by setting an empty packages list in setup.cfg. Then we rely on PBR to do its job and find the package content via git repo information. Change-Id: I4d334880acb84de709dfc3090a86ec2d43e406f8changes/49/835849/1
parent
7a7edb11cd
commit
78b0ba5062
Loading…
Reference in new issue