From 7c886e23fdc31d06bd41da3b982960be0cdd9ca4 Mon Sep 17 00:00:00 2001 From: rdobuilder Date: Jul 12 2024 15:47:00 +0000 Subject: Update to 4.4.0 Related-to: https://review.rdoproject.org/r/q/Id43343d6833e07c5c067c6b412d3ee6cd50f0d3e --- diff --git a/.python-elementpath.metadata b/.python-elementpath.metadata new file mode 100644 index 0000000..47b643e --- /dev/null +++ b/.python-elementpath.metadata @@ -0,0 +1 @@ +6f5aa74c2555202de1fd8f29ab124f3395f25601 SOURCES/elementpath-4.4.0.tar.gz diff --git a/SOURCES/.gitignore b/SOURCES/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/SOURCES/.gitignore diff --git a/SPECS/python-elementpath.spec b/SPECS/python-elementpath.spec new file mode 100644 index 0000000..3383a67 --- /dev/null +++ b/SPECS/python-elementpath.spec @@ -0,0 +1,175 @@ +%global pypi_name elementpath +Name: python-%{pypi_name} +Version: 4.4.0 +Release: 2%{?dist} +Summary: XPath 1.0/2.0 parsers and selectors for ElementTree and lxml + +License: MIT +URL: https://github.com/sissaschool/elementpath +Source0: %{url}/archive/v%{version}/elementpath-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: pyproject-rpm-macros + +# Circular test dependency on xmlschema and self +%bcond_without tests +%if %{with tests} +BuildRequires: glibc-langpack-en +%endif + +%global _description %{expand: +The proposal of this package is to provide XPath 1.0, 2.0 and 3.0 selectors for +Python's ElementTree XML data structures, both for the standard ElementTree +library and for the lxml.etree library. + +For lxml.etree this package can be useful for providing XPath 2.0 selectors, +because lxml.etree already has it's own implementation of XPath 1.0.} + +%description %_description + + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} %_description + + +%prep +%autosetup -p1 -n %{pypi_name}-%{version} +# Remove an upstream workaround for the mypy tests +# https://github.com/sissaschool/elementpath/commit/3431f6d907bda73512edbe1d68507f675b234384 +# Upstream has been notified: https://github.com/sissaschool/elementpath/issues/64#issuecomment-1696519082 +sed -i '/lxml-stubs/d' tox.ini +sed -i 's/xmlschema>=3.0.1/xmlschema/g' tox.ini + +%generate_buildrequires +%if %{with tests} +%pyproject_buildrequires -t +%else +%pyproject_buildrequires +%endif + +%build +%pyproject_wheel + +%install +%pyproject_install + +%if %{with tests} +%check +# The C.utf-8 locale fails with some straße related tests +# We could use a German locale, but English works fine +export LANG=en_US.utf-8 +%tox +%endif + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-%{version}.dist-info/ + + +%changelog +* Wed Apr 10 2024 Miro Hrončok - 4.4.0-2 +- Enable tests + +* Fri Apr 05 2024 Charalampos Stratakis - 4.4.0-1 +- Update to 4.4.0 +- Resolves: rhbz#2262558 + +* Fri Jan 26 2024 Fedora Release Engineering - 4.1.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 4.1.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Sep 01 2023 Charalampos Stratakis - 4.1.5-2 +- Update to 4.1.5 - enable tests + +* Fri Aug 25 2023 Charalampos Stratakis - 4.1.5-1 +- Update to 4.1.5 +- Disable tests for bootstraping with new version of xmlschema +- Fixes: rhbz#2166299 + +* Fri Jul 21 2023 Fedora Release Engineering - 3.0.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jun 16 2023 Python Maint - 3.0.2-5 +- Rebuilt for Python 3.12 + +* Tue Jun 13 2023 Python Maint - 3.0.2-4 +- Bootstrap for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 3.0.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Aug 16 2022 Tomáš Hrnčiar - 3.0.2-2 +- Update to 3.0.2 - enable tests + +* Tue Aug 16 2022 Tomáš Hrnčiar - 3.0.2-1 +- Update to 3.0.2 +- Fixes: rhbz#2021606 + +* Fri Jul 22 2022 Fedora Release Engineering - 2.3.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 2.3.2-4 +- Rebuilt for Python 3.11 + +* Mon Jun 13 2022 Python Maint - 2.3.2-3 +- Bootstrap for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 2.3.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Nov 05 2021 Joel Capitao - 2.3.2-1 +- Update to 2.3.2 +- Fixes rhbz#2000317 + +* Tue Jul 27 2021 Fedora Release Engineering - 2.2.3-3 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon Jul 26 2021 Tomas Hrnciar - 2.2.3-2 +- Update to 2.2.3 with tests + +* Mon Jul 26 2021 Tomas Hrnciar - 2.2.3-1 +- Update to 2.2.3 without tests + +* Fri Jun 04 2021 Python Maint - 2.1.2-3 +- Rebuilt for Python 3.10 + +* Wed Jun 02 2021 Python Maint - 2.1.2-2 +- Bootstrap for Python 3.10 + +* Thu Jan 28 12:03:51 CET 2021 Tomas Hrnciar - 2.1.2-1 +- Update to 2.1.2 + +* Wed Jan 27 2021 Fedora Release Engineering - 2.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Jan 15 09:57:43 CET 2021 Tomas Hrnciar - 2.1.1-2 +- Build with tests + +* Thu Jan 14 08:35:26 CET 2021 Tomas Hrnciar - 2.1.1-1 +- Update to 2.1.1 + +* Wed Jul 29 2020 Fedora Release Engineering - 1.4.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat May 23 2020 Miro Hrončok - 1.4.0-4 +- Rebuilt for Python 3.9 + +* Sat May 23 2020 Miro Hrončok - 1.4.0-3 +- Bootstrap for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Dec 31 2019 Miro Hrončok - 1.4.0-1 +- Update to 1.4.0 + +* Tue Dec 17 2019 Miro Hrončok - 1.3.2-1 +- Initial package