Upgrade to 45.2.0, no longer supports Python 2
Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1775943
This commit is contained in:
parent
5d9901967b
commit
bd7e1f72ee
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,5 +1,6 @@
|
|||||||
/setuptools-*.tar.gz
|
/setuptools-*.tar.gz
|
||||||
/setuptools-*.zip
|
/setuptools-*.zip
|
||||||
/setuptools-*/
|
/setuptools-*/
|
||||||
|
/pkg_resources-tests-data-*.tar.gz
|
||||||
/results_python-setuptools/
|
/results_python-setuptools/
|
||||||
*.rpm
|
*.rpm
|
||||||
|
@ -6,24 +6,28 @@
|
|||||||
%bcond_without tests
|
%bcond_without tests
|
||||||
|
|
||||||
%if %{without bootstrap}
|
%if %{without bootstrap}
|
||||||
%global python_wheelname %{srcname}-%{version}-py2.py3-none-any.whl
|
%global python_wheelname %{srcname}-%{version}-py3-none-any.whl
|
||||||
%global python3_record %{python3_sitelib}/%{srcname}-%{version}.dist-info/RECORD
|
%global python3_record %{python3_sitelib}/%{srcname}-%{version}.dist-info/RECORD
|
||||||
%endif
|
%endif
|
||||||
%global python_wheeldir %{_datadir}/python-wheels
|
%global python_wheeldir %{_datadir}/python-wheels
|
||||||
|
|
||||||
Name: python-setuptools
|
Name: python-setuptools
|
||||||
# When updating, update the bundled libraries versions bellow!
|
# When updating, update the bundled libraries versions bellow!
|
||||||
Version: 41.6.0
|
Version: 45.2.0
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Easily build and distribute Python packages
|
Summary: Easily build and distribute Python packages
|
||||||
# setuptools is MIT
|
# setuptools is MIT
|
||||||
# packaging is BSD or ASL 2.0
|
# packaging is BSD or ASL 2.0
|
||||||
# pyparsing is MIT
|
# pyparsing is MIT
|
||||||
# six is MIT
|
# six is MIT
|
||||||
|
# ordered-set is MIT
|
||||||
License: MIT and (BSD or ASL 2.0)
|
License: MIT and (BSD or ASL 2.0)
|
||||||
URL: https://pypi.python.org/pypi/%{srcname}
|
URL: https://pypi.python.org/pypi/%{srcname}
|
||||||
Source0: %{pypi_source %{srcname} %{version} zip}
|
Source0: %{pypi_source %{srcname} %{version} zip}
|
||||||
|
|
||||||
|
# https://github.com/pypa/setuptools/pull/1991
|
||||||
|
Source1: pkg_resources-tests-data-%{version}.tar.gz
|
||||||
|
|
||||||
# In Fedora, sudo setup.py install installs to /usr/local/lib/pythonX.Y/site-packages
|
# In Fedora, sudo setup.py install installs to /usr/local/lib/pythonX.Y/site-packages
|
||||||
# But pythonX doesn't own that dir, that would be against FHS
|
# But pythonX doesn't own that dir, that would be against FHS
|
||||||
# We need to create it if it doesn't exist
|
# We need to create it if it doesn't exist
|
||||||
@ -56,21 +60,22 @@ you to more easily build and distribute Python packages, especially ones that
|
|||||||
have dependencies on other packages.
|
have dependencies on other packages.
|
||||||
|
|
||||||
This package also contains the runtime components of setuptools, necessary to
|
This package also contains the runtime components of setuptools, necessary to
|
||||||
execute the software that requires pkg_resources.py.
|
execute the software that requires pkg_resources.
|
||||||
|
|
||||||
# Virtual provides for the packages bundled by setuptools.
|
# Virtual provides for the packages bundled by setuptools.
|
||||||
# You can find the versions in setuptools/setuptools/_vendor/vendored.txt
|
# You can find the versions in setuptools/setuptools/_vendor/vendored.txt
|
||||||
%global bundled() %{expand:
|
%global bundled %{expand:
|
||||||
Provides: bundled(python%{1}dist(packaging)) = 16.8
|
Provides: bundled(python3dist(packaging)) = 19.2
|
||||||
Provides: bundled(python%{1}dist(pyparsing)) = 2.2.1
|
Provides: bundled(python3dist(pyparsing)) = 2.2.1
|
||||||
Provides: bundled(python%{1}dist(six)) = 1.10.0
|
Provides: bundled(python3dist(six)) = 1.10.0
|
||||||
|
Provides: bundled(python3dist(ordered-set)) = 3.1.1
|
||||||
}
|
}
|
||||||
|
|
||||||
%package -n python3-setuptools
|
%package -n python3-setuptools
|
||||||
Summary: Easily build and distribute Python 3 packages
|
Summary: Easily build and distribute Python 3 packages
|
||||||
Conflicts: python-setuptools < %{version}-%{release}
|
Conflicts: python-setuptools < %{version}-%{release}
|
||||||
%{?python_provide:%python_provide python3-setuptools}
|
%{?python_provide:%python_provide python3-setuptools}
|
||||||
%{bundled 3}
|
%{bundled}
|
||||||
|
|
||||||
%if %{with bootstrap}
|
%if %{with bootstrap}
|
||||||
Provides: python3dist(setuptools) = %{version}
|
Provides: python3dist(setuptools) = %{version}
|
||||||
@ -84,13 +89,12 @@ you to more easily build and distribute Python 3 packages, especially ones that
|
|||||||
have dependencies on other packages.
|
have dependencies on other packages.
|
||||||
|
|
||||||
This package also contains the runtime components of setuptools, necessary to
|
This package also contains the runtime components of setuptools, necessary to
|
||||||
execute the software that requires pkg_resources.py.
|
execute the software that requires pkg_resources.
|
||||||
|
|
||||||
%if %{without bootstrap}
|
%if %{without bootstrap}
|
||||||
%package wheel
|
%package wheel
|
||||||
Summary: The setuptools wheel
|
Summary: The setuptools wheel
|
||||||
%{bundled 2}
|
%{bundled}
|
||||||
%{bundled 3}
|
|
||||||
|
|
||||||
%description wheel
|
%description wheel
|
||||||
A Python wheel of setuptools to use with venv.
|
A Python wheel of setuptools to use with venv.
|
||||||
@ -101,14 +105,17 @@ A Python wheel of setuptools to use with venv.
|
|||||||
%autosetup -p1 -n %{srcname}-%{version}
|
%autosetup -p1 -n %{srcname}-%{version}
|
||||||
rm -r %{srcname}.egg-info
|
rm -r %{srcname}.egg-info
|
||||||
|
|
||||||
|
# unpack the pkg_resources test data
|
||||||
|
tar -xf %{SOURCE1}
|
||||||
|
|
||||||
# Strip shbang
|
# Strip shbang
|
||||||
find setuptools pkg_resources -name \*.py | xargs sed -i -e '1 {/^#!\//d}'
|
find setuptools pkg_resources -name \*.py | xargs sed -i -e '1 {/^#!\//d}'
|
||||||
# Remove bundled exes
|
# Remove bundled exes
|
||||||
rm -f setuptools/*.exe
|
rm -f setuptools/*.exe
|
||||||
# These tests require internet connection
|
# These tests require internet connection
|
||||||
rm setuptools/tests/test_integration.py
|
rm setuptools/tests/test_integration.py
|
||||||
# Spurious executable perm https://github.com/pypa/setuptools/pull/1441
|
# We don't do linting here
|
||||||
chmod -x README.rst
|
sed -i 's/ --flake8//' pytest.ini
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Warning, different bootstrap meaning here, has nothing to do with our bcond
|
# Warning, different bootstrap meaning here, has nothing to do with our bcond
|
||||||
@ -130,7 +137,9 @@ chmod -x README.rst
|
|||||||
%py3_install
|
%py3_install
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
|
# This is not installed (in 45.2.0 anyway), but better be safe than sorry
|
||||||
|
rm -rf %{buildroot}%{python3_sitelib}/{setuptools,pkg_resources}/tests
|
||||||
|
|
||||||
%if %{without bootstrap}
|
%if %{without bootstrap}
|
||||||
sed -i '/^setuptools\/tests\//d' %{buildroot}%{python3_record}
|
sed -i '/^setuptools\/tests\//d' %{buildroot}%{python3_record}
|
||||||
%endif
|
%endif
|
||||||
@ -148,13 +157,10 @@ install -p dist/%{python_wheelname} -t %{buildroot}%{python_wheeldir}
|
|||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
# --ignore=pavement.py: No python3-paver in Fedora
|
# --ignore=pavement.py:
|
||||||
# pavement.py is only used by upstream to do releases and vendoring, we don't ship it
|
# pavement.py is only used by upstream to do releases and vendoring, we don't ship it
|
||||||
# --deselect=setuptools/tests/test_setuptools.py::TestDepends::testRequire
|
|
||||||
# Test failure reported upstream: https://github.com/pypa/setuptools/issues/1896
|
|
||||||
PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=$(pwd) pytest-%{python3_version} \
|
PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=$(pwd) pytest-%{python3_version} \
|
||||||
--ignore=pavement.py \
|
--ignore=pavement.py
|
||||||
--deselect=setuptools/tests/test_setuptools.py::TestDepends::testRequire
|
|
||||||
%endif # with tests
|
%endif # with tests
|
||||||
|
|
||||||
|
|
||||||
@ -178,6 +184,11 @@ PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=$(pwd) pytest-%{python3_version} \
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Feb 11 2020 Miro Hrončok <mhroncok@redhat.com> - 45.2.0-1
|
||||||
|
- Upgrade to 45.2.0 (#1775943)
|
||||||
|
- https://setuptools.readthedocs.io/en/latest/history.html#v45-2-0
|
||||||
|
- No longer supports Python 2
|
||||||
|
|
||||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 41.6.0-2
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 41.6.0-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
3
sources
3
sources
@ -1 +1,2 @@
|
|||||||
SHA512 (setuptools-41.6.0.zip) = 1bed75e7173ea0399f078c96cf5c1818dada7a4b86a93e61ff72da6a25694e321b9047e024617aa775b71a25fe8cb0848323902e1fb9c8c8a1f39434f0de6434
|
SHA512 (setuptools-45.2.0.zip) = 0d1e1e5b4074bdf9b35515dc6d9b03476ebe48287f30ff81ebc23a4b6e12a9faabd6ced40642ca6c5f27030be0252f48f18e73eac3876a447b1c6d4320a50147
|
||||||
|
SHA512 (pkg_resources-tests-data-45.2.0.tar.gz) = 64bca0095dc371ba0cec8f865dd55d97cd0d26d3841c8525f7d1caa398d16ecbbed4d65ca709b3f1be9d5154168216fefc49a659ca28936b8f6aa0b8b4b39538
|
||||||
|
Loading…
Reference in New Issue
Block a user