Commit Graph

4 Commits

Author SHA1 Message Date
Jiri Podivin 4b524581bd setuptools: Disable auto discovery
The latest release of setuptools 61.0 made a breaking change[1] and
because of this change 'pip install' fails with the following error.

~~~
error: Multiple top-level packages discovered in a flat-layout:
['lib', 'spec', 'manifests', 'releasenotes'].
~~~

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

Note setup.py is not used to install puppet modules. However it is used
to generate a release note, thus should be fixed.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I4a3e30d2615fce5b920260272633cac6c02694db
2022-03-29 10:37:54 +02:00
ZhongShengping 8097fd27c1 Delete useless code for setup.py
Change-Id: I5fc00509771be16396c409f8dcd09f1b2ef2f989
2021-09-30 13:38:32 +08:00
ZhongShengping 53828b3726 Fix pbr>=2.0.0 for setup.py
Change-Id: I5b8228d95f549856175826d61787d0b067648e73
2021-09-29 16:37:10 +08:00
Xingchao Yu 78f52ecfac This is the initial commit for puppet-cloudkitty.
It has been automatically generated using cookiecutter[1] and msync[2].

[1] https://github.com/openstack/puppet-openstack-cookiecutter
[2] https://github.com/openstack/puppet-modulesync-configs

Change-Id: I43e8be43f6c77d55ff0c5879344020942eb9cf43
2016-10-20 10:53:32 +08:00