Update to 41.0.1 (#1695846)

This commit is contained in:
Miro Hrončok 2019-04-25 12:31:43 +02:00
parent d285b4d17d
commit 60c300dc69
3 changed files with 18 additions and 20 deletions

1
.gitignore vendored
View File

@ -97,3 +97,4 @@
/setuptools-40.7.2.zip /setuptools-40.7.2.zip
/setuptools-40.7.3.zip /setuptools-40.7.3.zip
/setuptools-40.8.0.zip /setuptools-40.8.0.zip
/setuptools-41.0.1.zip

View File

@ -18,7 +18,7 @@
Name: python-setuptools Name: python-setuptools
# When updating, update the bundled libraries versions bellow! # When updating, update the bundled libraries versions bellow!
Version: 40.8.0 Version: 41.0.1
Release: 1%{?dist} Release: 1%{?dist}
Summary: Easily build and distribute Python packages Summary: Easily build and distribute Python packages
# setuptools is MIT # setuptools is MIT
@ -130,18 +130,7 @@ A Python wheel of setuptools to use with venv.
%prep %prep
%autosetup -p1 -n %{srcname}-%{version} %autosetup -p1 -n %{srcname}-%{version}
rm -r %{srcname}.egg-info
# We can't remove .egg-info (but it doesn't matter, since it'll be rebuilt):
# The problem is that to properly execute setuptools' setup.py,
# it is needed for setuptools to be loaded as a Distribution
# (with egg-info or .dist-info dir), it's not sufficient
# to just have them on PYTHONPATH
# Running "setup.py install" without having setuptools installed
# as a distribution gives warnings such as
# ... distutils/dist.py:267: UserWarning: Unknown distribution option: 'entry_points'
# and doesn't create "easy_install" and .egg-info directory
# Note: this is only a problem if bootstrapping wheel or building on RHEL,
# otherwise setuptools are installed as dependency into buildroot
# 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}'
@ -153,6 +142,10 @@ rm setuptools/tests/test_integration.py
chmod -x README.rst chmod -x README.rst
%build %build
# Warning, different bootstrap meaning here, has nothing to do with our bcond
# This bootstraps .egg-info directory needed to build setuptools
%{__python3} bootstrap.py
%if %{without bootstrap} %if %{without bootstrap}
%py3_build_wheel %py3_build_wheel
%else %else
@ -217,13 +210,13 @@ install -p dist/%{python_wheelname} -t %{buildroot}%{python_wheeldir}
%check %check
%if %{with python2} %if %{with python2}
# see https://github.com/pypa/setuptools/issues/1170 for PYTHONDONTWRITEBYTECODE # see https://github.com/pypa/setuptools/issues/1170 for PYTHONDONTWRITEBYTECODE
PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=$(pwd) py.test-%{python2_version} # several tests are xfailed with POSIX locale, so we set C.utf-8 (not needed on py3)
LANG=C.utf-8 PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=$(pwd) pytest-%{python2_version}
%endif # with python2 %endif # with python2
# --ignore=setuptools/tests/test_virtualenv.py: because virtualenv executable # --ignore=pavement.py: No python3-paver in Fedora (the test is only collected on py3)
# is configured only for Python 2 version of virtualenv—this needs to be fixed # pavement.py is only used by upstream to do releases and vendoring, we don't ship it
# in the `python-pytest-virtualenv` package PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=$(pwd) pytest-%{python3_version} --ignore=pavement.py
PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=$(pwd) py.test-%{python3_version} --ignore=setuptools/tests/test_virtualenv.py --ignore=pavement.py
%endif # with tests %endif # with tests
@ -255,7 +248,11 @@ PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=$(pwd) py.test-%{python3_version} --ignore=
%changelog %changelog
* Tue Feb 05 2019 Miro Hrončok <mhroncok@redhat.com> * Thu Apr 25 2019 Miro Hrončok <mhroncok@redhat.com> - 41.0.1-1
- Update to 41.0.1 (#1695846)
- https://github.com/pypa/setuptools/blob/v41.0.1/CHANGES.rst
* Tue Feb 05 2019 Miro Hrončok <mhroncok@redhat.com> - 40.8.0-1
- Update to 40.8.0 (#1672756) - Update to 40.8.0 (#1672756)
- https://github.com/pypa/setuptools/blob/v40.8.0/CHANGES.rst - https://github.com/pypa/setuptools/blob/v40.8.0/CHANGES.rst

View File

@ -1 +1 @@
SHA512 (setuptools-40.8.0.zip) = f14976a76bff74b7494d44fcfffa511de0d142b4d308fcbf87b34c31c51491102e152acc11a383c5f6b693d1b18eb119c5186ca23deb12b2bbf186794b062868 SHA512 (setuptools-41.0.1.zip) = 022ac63b27da157ddab5eef34d4452f30b3798c3555779255686ecedcb98d6d60a9ac0b1a077b28426e3306d4ed5e89f1eea2894f9da6def57376596c01595b9