30936ba
%global srcname cssselect2
30936ba
30936ba
Name:           python-%{srcname}
893f2e4
Version:        0.7.0
3224ee9
Release:        6%{?dist}
30936ba
Summary:        CSS selectors for Python ElementTree
30936ba
License:        BSD
30936ba
URL:            https://%{srcname}.readthedocs.io/
30936ba
BuildArch:      noarch
30936ba
Source0:        %pypi_source
f9e7937
4f8d031
BuildRequires:  python3-devel
30936ba
30936ba
%description
4f8d031
cssselect2 is a straightforward implementation of CSS4 Selectors for markup
30936ba
documents (HTML, XML, etc.) that can be read by ElementTree-like parsers,
30936ba
including cElementTree, lxml, html5lib_, etc.
30936ba
30936ba
30936ba
%package -n python3-%{srcname}
30936ba
Summary:        %{summary}
30936ba
30936ba
%description -n python3-%{srcname}
4f8d031
cssselect2 is a straightforward implementation of CSS4 Selectors for markup
30936ba
documents (HTML, XML, etc.) that can be read by ElementTree-like parsers,
30936ba
including cElementTree, lxml, html5lib_, etc.
30936ba
30936ba
30936ba
%prep
f9e7937
%autosetup -p1 -n %{srcname}-%{version}
444a65d
# Skip the flake8 plugin: linting is useful for upstream only. Also flake8 was
444a65d
# not available in time for the Python 3.9 rebuild (and that might be the case
444a65d
# for Python 3.10+) so let's just remove it.
2606c87
# Same for isort.
2606c87
sed -i -e "s/, 'flake8'//" -e "s/, 'isort'//" pyproject.toml
4f8d031
4f8d031
%generate_buildrequires
4f8d031
%pyproject_buildrequires -x test
4f8d031
30936ba
30936ba
%build
4f8d031
%pyproject_wheel
30936ba
30936ba
30936ba
%install
4f8d031
%pyproject_install
4f8d031
%pyproject_save_files %{srcname}
30936ba
30936ba
%check
4f8d031
%pytest
30936ba
30936ba
4f8d031
%files -n python3-%{srcname} -f %{pyproject_files}
6a23273
%doc README.rst
4f8d031
%license LICENSE
30936ba
30936ba
30936ba
%changelog
3224ee9
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-6
3224ee9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
3224ee9
49427f6
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-5
49427f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
49427f6
a8b988b
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-4
a8b988b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
a8b988b
e9d49d6
* Tue Jul 04 2023 Python Maint <python-maint@redhat.com> - 0.7.0-3
e9d49d6
- Rebuilt for Python 3.12
e9d49d6
c245b93
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-2
c245b93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
c245b93
893f2e4
* Mon Sep 19 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 0.7.0-1
893f2e4
- update to 0.7.0
893f2e4
62a9202
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-3
62a9202
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
62a9202
a65e900
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 0.6.0-2
a65e900
- Rebuilt for Python 3.11
a65e900
161c83b
* Mon Apr 18 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 0.6.0-1
161c83b
- update to 0.6.0
161c83b
4f8d031
* Tue Mar 01 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 0.5.0-1
4f8d031
- update to 0.5.0
4f8d031
a45d8fc
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-9
a45d8fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
a45d8fc
91c2fd7
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-8
91c2fd7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
91c2fd7
d048617
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.3.0-7
d048617
- Rebuilt for Python 3.10
d048617
07f8182
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-6
07f8182
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
07f8182
f9e7937
* Mon Aug 03 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 0.3.0-5
f9e7937
- add patch from upstream to fix isort test failure
f9e7937
60d8bbf
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-4
60d8bbf
- Second attempt - Rebuilt for
60d8bbf
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
60d8bbf
f52ca89
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-3
f52ca89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f52ca89
cd0f287
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 0.3.0-2
cd0f287
- Rebuilt for Python 3.9
cd0f287
6a23273
* Tue Mar 17 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 0.3.0-1
6a23273
- update to 0.3.0
6a23273
aea278b
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-3
aea278b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
aea278b
30936ba
* Fri Oct 25 2019 Felix Schwarz <fschwarz@fedoraproject.org> 0.2.2-2
30936ba
- use sources from pypi, packaging fixes
30936ba
30936ba
* Thu Oct 24 2019 Felix Schwarz <fschwarz@fedoraproject.org> 0.2.2-1
30936ba
- update to new upstream version 0.2.2
30936ba
30936ba
* Thu May 02 2019 Eric Smith <brouhaha@fedoraproject.org> 0.2.1-3
30936ba
- Moved Requires to subpackage. Added python_provide.
30936ba
30936ba
* Wed May 01 2019 Eric Smith <brouhaha@fedoraproject.org> 0.2.1-2
30936ba
- Added missing BuildRequires and Requires.
30936ba
30936ba
* Tue Apr 30 2019 Eric Smith <brouhaha@fedoraproject.org> 0.2.1-1
30936ba
- Initial version.
30936ba