Update to 1.14.0 (#1768982) for Python 3.9 support (#1788494)

- Drop old obsoletes for platform-python-six
- Minor spec cleanup
This commit is contained in:
Miro Hrončok 2020-01-17 18:41:46 +01:00
parent 6b96ef2fe2
commit 78c3559b4d
3 changed files with 13 additions and 8 deletions

1
.gitignore vendored
View File

@ -11,3 +11,4 @@
/six-1.10.0.tar.gz
/six-1.11.0.tar.gz
/six-1.12.0.tar.gz
/six-1.14.0.tar.gz

View File

@ -3,19 +3,20 @@
# tests are enabled by default, but on Fedora 32+, Python 2 tests are skipped
%bcond_without tests
# python2 is enabled by default, Fedora 32+ exception is anticipated
# python2 is enabled by default, Fedora 32+ exception is for offlineimap
# https://pagure.io/fesco/issue/2274
%bcond_without python2
%global python_wheelname %{modname}-%{version}-py2.py3-none-any.whl
Name: python-%{modname}
Version: 1.12.0
Release: 7%{?dist}
Version: 1.14.0
Release: 1%{?dist}
Summary: Python 2 and 3 compatibility utilities
License: MIT
URL: https://pypi.python.org/pypi/six
Source0: https://files.pythonhosted.org/packages/source/%(n=%{modname}; echo ${n:0:1})/%{modname}/%{modname}-%{version}.tar.gz
Source0: %{pypi_source %{modname}}
BuildArch: noarch
@ -46,7 +47,6 @@ Python 2 version.
%package -n python3-%{modname}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{modname}}
Obsoletes: platform-python-%{modname} < %{version}-%{release}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
@ -83,9 +83,9 @@ Python 3 version.
%if %{with tests}
%check
%if %{with python2} && 0%{?fedora} < 32
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-2 -rfsxX test_six.py
PYTHONPATH=%{buildroot}%{python2_sitelib} pytest-2 -rfsxX test_six.py
%endif
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -rfsxX test_six.py
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-3 -rfsxX test_six.py
%endif
@ -106,6 +106,10 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -rfsxX test_six.py
%changelog
* Fri Jan 17 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.0-1
- Update to 1.14.0 (#1768982) for Python 3.9 support (#1788494)
- Drop old obsoletes for platform-python-six
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-7
- Rebuilt for Python 3.8.0rc1 (#1748018)

View File

@ -1 +1 @@
SHA512 (six-1.12.0.tar.gz) = 937728372edf1e0ac13bbd706723d0de35e015c30d0ae41f789c5ed2e3669bb0db70cdc6e036ec2d437a6c4aa0d5d1e727b6d09ac34cca7e4e92e5d3b4775151
SHA512 (six-1.14.0.tar.gz) = 4dea0f4e7961e8b582d665501c65852dc3b73516a0b6f78b0888c8670f1450df58bd3eea418777f41080b842ab6c3d8633be1034bcf920192e5590d5316e2c9e