Do not generate setuptools requirement for console_scripts on Python 3.10+
See https://fedoraproject.org/wiki/Changes/Reduce_dependencies_on_python3-setuptools
This commit is contained in:
parent
a295a58559
commit
0a12aa5a2f
8 changed files with 107 additions and 18 deletions
17
tests/console_script.sh
Executable file
17
tests/console_script.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/bash -eux
|
||||
RPMDIR=$(rpm --eval '%_topdir')/RPMS/noarch
|
||||
RPMPKG="${RPMDIR}/isort-5.7.0-0.noarch.rpm"
|
||||
|
||||
mkdir -p $(rpm --eval '%_topdir')/SOURCES/
|
||||
|
||||
spectool -g -R isort.spec
|
||||
|
||||
for py_version in 3.6 3.7 3.8 3.9; do
|
||||
rpmbuild -ba --define "python3_test_version ${py_version}" isort.spec
|
||||
rpm -qp --requires ${RPMPKG} | grep "python${py_version}dist(setuptools)"
|
||||
done
|
||||
|
||||
for py_version in 3.10 3.11; do
|
||||
rpmbuild -ba --define "python3_test_version ${py_version}" isort.spec
|
||||
rpm -qp --requires ${RPMPKG} | grep "python${py_version}dist(setuptools)" && exit 1 || true
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue