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