Compare commits
No commits in common. "c9" and "c8-stream-3.8" have entirely different histories.
c9
...
c8-stream-
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/six-1.15.0.tar.gz
|
SOURCES/six-1.12.0.tar.gz
|
||||||
|
@ -1 +1 @@
|
|||||||
a785c20658b3676333c749436f088394c12b0c26 SOURCES/six-1.15.0.tar.gz
|
1957b44942be21822414f4dde936e6c40b687565 SOURCES/six-1.12.0.tar.gz
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
From a6ac88fa03735e94938693c354f28937e1e51ab7 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Victor Stinner <vstinner@python.org>
|
|
||||||
Date: Mon, 14 Dec 2020 14:02:29 +0100
|
|
||||||
Subject: [PATCH] Port _SixMetaPathImporter to Python 3.10
|
|
||||||
|
|
||||||
Fixes #341.
|
|
||||||
---
|
|
||||||
six.py | 6 ++++++
|
|
||||||
1 file changed, 6 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/six.py b/six.py
|
|
||||||
index 83f69783..d162d09c 100644
|
|
||||||
--- a/six.py
|
|
||||||
+++ b/six.py
|
|
||||||
@@ -223,6 +223,12 @@ def get_code(self, fullname):
|
|
||||||
return None
|
|
||||||
get_source = get_code # same as get_code
|
|
||||||
|
|
||||||
+ def create_module(self, spec):
|
|
||||||
+ return self.load_module(spec.name)
|
|
||||||
+
|
|
||||||
+ def exec_module(self, module):
|
|
||||||
+ pass
|
|
||||||
+
|
|
||||||
_importer = _SixMetaPathImporter(__name__)
|
|
||||||
|
|
||||||
|
|
@ -1,113 +1,120 @@
|
|||||||
# tests are enabled by default
|
%global modname six
|
||||||
|
|
||||||
|
# tests are enabled by default, but on Fedora 32+, Python 2 tests are skipped
|
||||||
%bcond_without tests
|
%bcond_without tests
|
||||||
|
|
||||||
%global python_wheelname six-%{version}-py2.py3-none-any.whl
|
# python2 is enabled by default, Fedora 32+ exception is anticipated
|
||||||
|
%bcond_with python2
|
||||||
|
|
||||||
Name: python-six
|
%global python_wheelname %{modname}-%{version}-py2.py3-none-any.whl
|
||||||
Version: 1.15.0
|
|
||||||
|
Name: python-%{modname}
|
||||||
|
Version: 1.12.0
|
||||||
Release: 9%{?dist}
|
Release: 9%{?dist}
|
||||||
Summary: Python 2 and 3 compatibility utilities
|
Summary: Python 2 and 3 compatibility utilities
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://pypi.python.org/pypi/six
|
URL: https://pypi.python.org/pypi/six
|
||||||
Source0: %{pypi_source six}
|
Source0: https://files.pythonhosted.org/packages/source/%(n=%{modname}; echo ${n:0:1})/%{modname}/%{modname}-%{version}.tar.gz
|
||||||
|
|
||||||
# Backported from upstream PR: https://github.com/benjaminp/six/pull/343
|
|
||||||
Patch0: py310.patch
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
# Exclude i686 arch. Due to a modularity issue it's being added to the
|
||||||
|
# x86_64 compose of CRB, but we don't want to ship it at all.
|
||||||
|
# See: https://projects.engineering.redhat.com/browse/RCM-72605
|
||||||
|
ExcludeArch: i686
|
||||||
|
|
||||||
|
%global _description \
|
||||||
|
%%{name} provides simple utilities for wrapping over differences between\
|
||||||
|
Python 2 and Python 3.
|
||||||
|
|
||||||
|
%description %{_description}
|
||||||
|
|
||||||
|
%if %{with python2}
|
||||||
|
%package -n python2-%{modname}
|
||||||
|
Summary: %{summary}
|
||||||
|
%{?python_provide:%python_provide python2-%{modname}}
|
||||||
|
BuildRequires: python2-devel
|
||||||
|
BuildRequires: python2-setuptools
|
||||||
|
|
||||||
|
%if %{with tests} && 0%{?fedora} < 32
|
||||||
|
BuildRequires: python2-pytest
|
||||||
|
BuildRequires: python2-tkinter
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%description -n python2-%{modname} %{_description}
|
||||||
|
Python 2 version.
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%package -n python%{python3_pkgversion}-%{modname}
|
||||||
|
Summary: %{summary}
|
||||||
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||||
BuildRequires: python%{python3_pkgversion}-pip
|
BuildRequires: python%{python3_pkgversion}-pip
|
||||||
BuildRequires: python%{python3_pkgversion}-wheel
|
BuildRequires: python%{python3_pkgversion}-wheel
|
||||||
|
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python%{python3_pkgversion}-pytest
|
||||||
BuildRequires: python3-tkinter
|
BuildRequires: python%{python3_pkgversion}-tkinter
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global _description %{expand:
|
%description -n python%{python3_pkgversion}-%{modname} %{_description}
|
||||||
%{name} provides simple utilities for wrapping over differences between
|
Python 3 version.
|
||||||
Python 2 and Python 3.}
|
|
||||||
|
|
||||||
%description %{_description}
|
|
||||||
|
|
||||||
|
|
||||||
%package -n python%{python3_pkgversion}-six
|
|
||||||
Summary: %{summary}
|
|
||||||
|
|
||||||
%description -n python%{python3_pkgversion}-six %{_description}
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n six-%{version}
|
%autosetup -n %{modname}-%{version}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with python2}
|
||||||
|
%py2_build
|
||||||
|
%endif
|
||||||
|
|
||||||
%py3_build_wheel
|
%py3_build_wheel
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if %{with python2}
|
||||||
|
%py2_install
|
||||||
|
%endif
|
||||||
|
|
||||||
%py3_install_wheel %{python_wheelname}
|
%py3_install_wheel %{python_wheelname}
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
%pytest -rfsxX test_six.py
|
%if %{with python2} && 0%{?fedora} < 32
|
||||||
|
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-2 -rfsxX test_six.py
|
||||||
|
%endif
|
||||||
|
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -rfsxX test_six.py
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files -n python%{python3_pkgversion}-six
|
%if %{with python2}
|
||||||
|
%files -n python2-%{modname}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst documentation/index.rst
|
%doc README.rst documentation/index.rst
|
||||||
%{python3_sitelib}/six-*.dist-info/
|
%{python2_sitelib}/%{modname}-*.egg-info/
|
||||||
%pycached %{python3_sitelib}/six.py
|
%{python2_sitelib}/%{modname}.py*
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files -n python%{python3_pkgversion}-%{modname}
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.rst documentation/index.rst
|
||||||
|
%{python3_sitelib}/%{modname}-*.dist-info/
|
||||||
|
%{python3_sitelib}/%{modname}.py
|
||||||
|
%{python3_sitelib}/__pycache__/%{modname}.*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Feb 16 2022 Lukáš Zachar <lzachar@redhat.com> - 1.15.0-9
|
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 1.12.0-9
|
||||||
- Add gating configuration and simple test
|
- Exclude unsupported i686 arch
|
||||||
- Related: rhbz#1950291
|
|
||||||
|
|
||||||
* Tue Feb 08 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 1.15.0-8
|
* Tue Nov 19 2019 Lumír Balhar <lbalhar@redhat.com> - 1.12.0-8
|
||||||
- Add automatically generated Obsoletes tag with the python39- prefix
|
- Adjusted for Python 3.8 module in RHEL 8
|
||||||
for smoother upgrade from RHEL8
|
|
||||||
- Related: rhbz#1990421
|
|
||||||
|
|
||||||
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.15.0-7
|
|
||||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
||||||
Related: rhbz#1991688
|
|
||||||
|
|
||||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.15.0-6
|
|
||||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
||||||
|
|
||||||
* Mon Mar 15 2021 Miro Hrončok <mhroncok@redhat.com> - 1.15.0-5
|
|
||||||
- Remove python2-six
|
|
||||||
|
|
||||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon Dec 14 2020 Lumír Balhar <lbalhar@redhat.com> - 1.15.0-3
|
|
||||||
- Fix compatibility with Python 3.10
|
|
||||||
|
|
||||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon Jun 01 2020 Charalampos Stratakis <cstratak@redhat.com> - 1.15.0-1
|
|
||||||
- Update to 1.15.0 (#1838702)
|
|
||||||
|
|
||||||
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.0-4
|
|
||||||
- Rebuilt for Python 3.9
|
|
||||||
|
|
||||||
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 1.14.0-3
|
|
||||||
- Bootstrap for Python 3.9
|
|
||||||
|
|
||||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.14.0-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
||||||
|
|
||||||
* 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
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.12.0-7
|
||||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||||
|
Loading…
Reference in New Issue
Block a user