[packages/python3-cssselect2] Up to 0.8.0

arekm arekm at pld-linux.org
Sun May 4 12:47:21 CEST 2025


commit df41d65b7d608c25c7d226065c47122fed56ede3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun May 4 11:51:48 2025 +0200

    Up to 0.8.0

 disable-flake8-isort-pytest.patch | 31 -------------------------------
 no-cov.patch                      | 12 ------------
 python3-cssselect2.spec           | 24 +++++++++---------------
 3 files changed, 9 insertions(+), 58 deletions(-)
---
diff --git a/python3-cssselect2.spec b/python3-cssselect2.spec
index 964583a..c542cd4 100644
--- a/python3-cssselect2.spec
+++ b/python3-cssselect2.spec
@@ -6,18 +6,17 @@
 Summary:	CSS selectors for Python ElementTree
 Summary(pl.UTF-8):	Selektory CSS dla pythonowego ElementTree
 Name:		python3-cssselect2
-Version:	0.4.1
-Release:	7
+Version:	0.8.0
+Release:	1
 License:	BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/cssselect2/
 Source0:	https://files.pythonhosted.org/packages/source/c/cssselect2/cssselect2-%{version}.tar.gz
-# Source0-md5:	6dfd5963c8a5d85f2634d1650b1ddfe1
-Patch0:		disable-flake8-isort-pytest.patch
-Patch1:		no-cov.patch
+# Source0-md5:	45b5f89f2934fbcb52490483367c3997
 URL:		https://cssselect2.readthedocs.io/
+BuildRequires:	python3-build
+BuildRequires:	python3-installer
 BuildRequires:	python3-modules >= 1:3.6
-BuildRequires:	python3-setuptools >= 1:39.2.0
 %if %{with tests}
 BuildRequires:	python3-pytest
 BuildRequires:	python3-pytest-cov
@@ -59,14 +58,9 @@ Dokumentacja API modułu Pythona cssselect2.
 
 %prep
 %setup -q -n cssselect2-%{version}
-%patch -P 0 -p1
-%patch -P 1 -p1
-
-# for pythonegg dependencies
-%{__sed} -i -e 's/distutils.core/setuptools/' setup.py
 
 %build
-%py3_build
+%py3_build_pyproject
 
 %if %{with tests}
 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
@@ -76,13 +70,13 @@ PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 %if %{with doc}
 cd docs
 PYTHONPATH=$(pwd)/.. \
-%{__python3} -m sphinx -W . build/html
+%{__python3} -m sphinx . build/html
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%py3_install
+%py3_install_pyproject
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -91,7 +85,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc LICENSE README.rst
 %{py3_sitescriptdir}/cssselect2
-%{py3_sitescriptdir}/cssselect2-%{version}-py*.egg-info
+%{py3_sitescriptdir}/cssselect2-%{version}.dist-info
 
 %if %{with doc}
 %files apidocs
diff --git a/disable-flake8-isort-pytest.patch b/disable-flake8-isort-pytest.patch
deleted file mode 100644
index c458536..0000000
--- a/disable-flake8-isort-pytest.patch
+++ /dev/null
@@ -1,31 +0,0 @@
---- cssselect2-0.4.1/pyproject.toml~	2020-10-29 23:04:17.000000000 +0100
-+++ cssselect2-0.4.1/pyproject.toml	2021-09-06 00:14:20.391560891 +0200
-@@ -32,7 +32,7 @@
- 
- [tool.flit.metadata.requires-extra]
- doc = ['sphinx', 'sphinx_rtd_theme']
--test = ['pytest', 'pytest-cov', 'pytest-flake8', 'pytest-isort', 'coverage[toml]']
-+test = ['pytest', 'pytest-cov', 'coverage[toml]']
- 
- [tool.flit.metadata.urls]
- Documentation = 'https://doc.courtbouillon.org/cssselect2/'
-@@ -41,7 +41,7 @@
- Donation = 'https://opencollective.com/courtbouillon'
- 
- [tool.pytest.ini_options]
--addopts = '--isort --flake8 --cov'
-+addopts = '--cov'
- 
- [tool.coverage.run]
- branch = true
---- cssselect2-0.4.1/setup.py~	1970-01-01 01:00:00.000000000 +0100
-+++ cssselect2-0.4.1/setup.py	2021-09-06 00:14:36.034793563 +0200
-@@ -16,8 +16,6 @@
- {'doc': ['sphinx', 'sphinx_rtd_theme'],
-  'test': ['pytest',
-           'pytest-cov',
--          'pytest-flake8',
--          'pytest-isort',
-           'coverage[toml]']}
- 
- setup(name='cssselect2',
diff --git a/no-cov.patch b/no-cov.patch
deleted file mode 100644
index d6c14c5..0000000
--- a/no-cov.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- cssselect2-0.4.1/pyproject.toml~	2022-04-01 23:32:49.000000000 +0200
-+++ cssselect2-0.4.1/pyproject.toml	2022-04-01 23:33:28.989868314 +0200
-@@ -40,9 +40,6 @@
- Issues = 'https://github.com/Kozea/cssselect2/issues'
- Donation = 'https://opencollective.com/courtbouillon'
- 
--[tool.pytest.ini_options]
--addopts = '--cov'
--
- [tool.coverage.run]
- branch = true
- include = ['tests/*', 'cssselect2/*']
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-cssselect2.git/commitdiff/df41d65b7d608c25c7d226065c47122fed56ede3



More information about the pld-cvs-commit mailing list