Blame SPECS/python-elementpath.spec

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