c92a469863ec9b77652dcbc5bfef00a3c1de98a9
Commit Graph

4 Commits

Author SHA1 Message Date
Jiri Podivin
fe6612cb6c 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: I06e52151879c0cf7e9313b7197f3f28279f6c99e
2022年03月29日 10:41:18 +02:00
ZhongShengping
7ec2582c89 Delete useless code for setup.py
Change-Id: Ie6cb1099e9faf091abccb8e1921212ac9819d1fa
2021年09月30日 13:38:33 +08:00
ZhongShengping
b3c6e05f79 Fix pbr>=2.0.0 for setup.py
Change-Id: Ie5af277963c569f96994b10c3bad457bf026536a
2021年09月29日 16:37:10 +08:00
Emilien Macchi
e7aa8978ee Add structure for reno
Change-Id: I015dac3654122da6a1ad84b6e8bd560c0821137c
2016年05月20日 00:14:52 +02:00