commit ebad7e85cd7eecbcb9e1e647ed99062606054f96 Author: Sergey Cherevko Date: Tue Apr 2 14:33:55 2024 +0300 import python3.12-packaging-23.2-2.el9 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..11eb829 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/packaging-23.2.tar.gz diff --git a/.python3.12-packaging.metadata b/.python3.12-packaging.metadata new file mode 100644 index 0000000..db209f3 --- /dev/null +++ b/.python3.12-packaging.metadata @@ -0,0 +1 @@ +4a150d7127c64e5be67db5f6cbce3601e505113e SOURCES/packaging-23.2.tar.gz diff --git a/SOURCES/gating.yaml b/SOURCES/gating.yaml new file mode 100644 index 0000000..c4035f6 --- /dev/null +++ b/SOURCES/gating.yaml @@ -0,0 +1,8 @@ +--- !Policy + +product_versions: + - rhel-9 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} + diff --git a/SOURCES/plan.fmf b/SOURCES/plan.fmf new file mode 100644 index 0000000..e8d6993 --- /dev/null +++ b/SOURCES/plan.fmf @@ -0,0 +1,19 @@ +execute: + how: tmt +prepare: + how: shell + script: pip-3.12 install pretend==1.0.9 + order: 90 +discover: + how: shell + dist-git-source: true + tests: + - name: bundled tests + require: + - python3.12-pytest + - python3.12-pip + test: | + cd $(dirname $TMT_SOURCE_DIR/packaging-*/tests) && + rm -rf packaging && + pytest-3.12 tests/ + diff --git a/SPECS/python3.12-packaging.spec b/SPECS/python3.12-packaging.spec new file mode 100644 index 0000000..2385a2b --- /dev/null +++ b/SPECS/python3.12-packaging.spec @@ -0,0 +1,83 @@ +%global __python3 /usr/bin/python3.12 +%global python3_pkgversion 3.12 + +%global pypi_name packaging + +# Tests are disabled in RHEL because we don't have python-pretend. +# Specify --with tests to enable them. +%bcond_with tests + +Name: python%{python3_pkgversion}-%{pypi_name} +Version: 23.2 +Release: 2%{?dist} +Summary: Core utilities for Python packages + +License: BSD or ASL 2.0 +URL: https://github.com/pypa/packaging +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-rpm-macros +BuildRequires: unzip + +BuildRequires: python%{python3_pkgversion}-flit-core +BuildRequires: python%{python3_pkgversion}-pip + +# Upstream uses nox for testing. +%if %{with tests} +BuildRequires: python%{python3_pkgversion}-pytest +BuildRequires: python%{python3_pkgversion}-pretend +%endif + +%global _description %{expand: +python-packaging provides core utilities for Python packages like utilities for +dealing with versions, specifiers, markers etc.} + +%description %_description + +%prep +%autosetup -p1 -n %{pypi_name}-%{version} + +%build +%{python3} -m flit_core.wheel + +%install +%py3_install_wheel %{pypi_name}-%{version}-py3-none-any.whl + +%check +%py3_check_import packaging.markers packaging.metadata packaging.requirements \ + packaging.specifiers packaging.tags packaging.utils packaging.version +%if %{with tests} +%pytest +%endif + + +%files -n python%{python3_pkgversion}-%{pypi_name} +%license LICENSE LICENSE.APACHE LICENSE.BSD +%doc README.rst CHANGELOG.rst CONTRIBUTING.rst +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-*-info/ + + +%changelog +* Tue Apr 02 2024 Sergey Cherevko - 23.2-2 +- Rebuilt for MSVSphere 9.4-beta + +* Tue Jan 23 2024 Miro Hrončok - 23.2-2 +- Rebuilt for timestamp .pyc invalidation mode + +* Thu Oct 12 2023 Tomáš Hrnčiar - 23.2-1 +- Initial package +- Fedora contributions by: + Charalampos Stratakis + Iryna Shcherbina + Jeroen van Meeuwen (Kolab Systems) + Karolina Surma + Lumir Balhar + Miro Hrončok + Tomáš Hrnčiar + Yaakov Selkowitz + Zbigniew Jędrzejewski-Szmek +