Compare commits
No commits in common. "c10s" and "c8-stream-3.8" have entirely different histories.
c10s
...
c8-stream-
@ -1 +0,0 @@
|
|||||||
1
|
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1 @@
|
|||||||
/six-*.tar.gz
|
SOURCES/six-1.12.0.tar.gz
|
||||||
/six-*/
|
|
||||||
|
1
.python-six.metadata
Normal file
1
.python-six.metadata
Normal file
@ -0,0 +1 @@
|
|||||||
|
1957b44942be21822414f4dde936e6c40b687565 SOURCES/six-1.12.0.tar.gz
|
@ -1,146 +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
|
||||||
|
|
||||||
Name: python-six
|
# python2 is enabled by default, Fedora 32+ exception is anticipated
|
||||||
Version: 1.16.0
|
%bcond_with python2
|
||||||
Release: 15%{?dist}
|
|
||||||
|
%global python_wheelname %{modname}-%{version}-py2.py3-none-any.whl
|
||||||
|
|
||||||
|
Name: python-%{modname}
|
||||||
|
Version: 1.12.0
|
||||||
|
Release: 9%{?dist}
|
||||||
Summary: Python 2 and 3 compatibility utilities
|
Summary: Python 2 and 3 compatibility utilities
|
||||||
|
|
||||||
# SPDX
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/benjaminp/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
|
||||||
|
|
||||||
# tkinter.tix was removed from Python 3.13, skip the test
|
|
||||||
# https://github.com/benjaminp/six/pull/377
|
|
||||||
Patch: tkinter.tix-was-removed-from-Python-3.13.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: pyproject-rpm-macros
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||||
|
BuildRequires: python%{python3_pkgversion}-pip
|
||||||
|
BuildRequires: python%{python3_pkgversion}-wheel
|
||||||
|
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
BuildRequires: python%{python3_pkgversion}-pytest
|
BuildRequires: python%{python3_pkgversion}-pytest
|
||||||
BuildRequires: python%{python3_pkgversion}-tkinter
|
BuildRequires: python%{python3_pkgversion}-tkinter
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global _description %{expand:
|
%description -n python%{python3_pkgversion}-%{modname} %{_description}
|
||||||
Six is a Python 2 and 3 compatibility library. It provides utility functions
|
Python 3 version.
|
||||||
for smoothing over the differences between the Python versions with the goal
|
|
||||||
of writing Python code that is compatible on both Python versions.}
|
|
||||||
|
|
||||||
%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}
|
||||||
|
|
||||||
|
|
||||||
%generate_buildrequires
|
|
||||||
%pyproject_buildrequires -r
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%if %{with python2}
|
||||||
|
%py2_build
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%py3_build_wheel
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%if %{with python2}
|
||||||
%pyproject_save_files six
|
%py2_install
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%py3_install_wheel %{python_wheelname}
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
%pytest
|
%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 -f %{pyproject_files}
|
%if %{with python2}
|
||||||
|
%files -n python2-%{modname}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst documentation/index.rst
|
%doc README.rst documentation/index.rst
|
||||||
|
%{python2_sitelib}/%{modname}-*.egg-info/
|
||||||
|
%{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
|
||||||
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.16.0-15
|
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 1.12.0-9
|
||||||
- Bump release for June 2024 mass rebuild
|
- Exclude unsupported i686 arch
|
||||||
|
|
||||||
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.0-14
|
* Tue Nov 19 2019 Lumír Balhar <lbalhar@redhat.com> - 1.12.0-8
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
- Adjusted for Python 3.8 module in RHEL 8
|
||||||
|
|
||||||
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.0-13
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.0-12
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 1.16.0-11
|
|
||||||
- Rebuilt for Python 3.12
|
|
||||||
|
|
||||||
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.16.0-10
|
|
||||||
- Bootstrap for Python 3.12
|
|
||||||
|
|
||||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.0-9
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.0-8
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.16.0-7
|
|
||||||
- Rebuilt for Python 3.11
|
|
||||||
|
|
||||||
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.16.0-6
|
|
||||||
- Bootstrap for Python 3.11
|
|
||||||
|
|
||||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.0-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.16.0-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 1.16.0-3
|
|
||||||
- Rebuilt for Python 3.10
|
|
||||||
|
|
||||||
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 1.16.0-2
|
|
||||||
- Bootstrap for Python 3.10
|
|
||||||
|
|
||||||
* Mon May 10 2021 Miro Hrončok <mhroncok@redhat.com> - 1.16.0-1
|
|
||||||
- Update to 1.16.0
|
|
||||||
- Fixes: rhbz#1957289
|
|
||||||
|
|
||||||
* 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)
|
@ -1,5 +0,0 @@
|
|||||||
--- !Policy
|
|
||||||
|
|
||||||
decision_context: osci_compose_gate
|
|
||||||
rules:
|
|
||||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
|
11
plans.fmf
11
plans.fmf
@ -1,11 +0,0 @@
|
|||||||
discover:
|
|
||||||
- name: Smoke tests
|
|
||||||
how: shell
|
|
||||||
tests:
|
|
||||||
- name: import works
|
|
||||||
test: python3 -c 'import six'
|
|
||||||
require:
|
|
||||||
- python3-six
|
|
||||||
duration: 1m
|
|
||||||
execute:
|
|
||||||
how: tmt
|
|
1
sources
1
sources
@ -1 +0,0 @@
|
|||||||
SHA512 (six-1.16.0.tar.gz) = 076fe31c8f03b0b52ff44346759c7dc8317da0972403b84dfe5898179f55acdba6c78827e0f8a53ff20afe8b76432c6fe0d655a75c24259d9acbaa4d9e8015c0
|
|
@ -1,25 +0,0 @@
|
|||||||
From 150328a01168e80a358ffcfca321e9172ddf7680 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
|
||||||
Date: Thu, 19 Oct 2023 01:13:49 +0200
|
|
||||||
Subject: [PATCH] tkinter.tix was removed from Python 3.13, skip the test
|
|
||||||
|
|
||||||
---
|
|
||||||
test_six.py | 2 ++
|
|
||||||
1 file changed, 2 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/test_six.py b/test_six.py
|
|
||||||
index 7b8b03b..1fa8c4c 100644
|
|
||||||
--- a/test_six.py
|
|
||||||
+++ b/test_six.py
|
|
||||||
@@ -127,6 +127,8 @@ def test_move_items(item_name):
|
|
||||||
if item_name.startswith("tkinter"):
|
|
||||||
if not have_tkinter:
|
|
||||||
pytest.skip("requires tkinter")
|
|
||||||
+ if item_name == "tkinter_tix" and sys.version_info >= (3, 13):
|
|
||||||
+ pytest.skip("tkinter.tix removed from Python 3.13")
|
|
||||||
if item_name.startswith("dbm_gnu") and not have_gdbm:
|
|
||||||
pytest.skip("requires gdbm")
|
|
||||||
raise
|
|
||||||
--
|
|
||||||
2.41.0
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user