[packages/python3-cssselect2] - remove unrecognized --cov arg
baggins
baggins at pld-linux.org
Fri Apr 1 23:34:44 CEST 2022
commit c73e6cd5dc13b551b63b8771759fa5bb80df23f1
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Apr 1 23:34:25 2022 +0200
- remove unrecognized --cov arg
no-cov.patch | 12 ++++++++++++
python3-cssselect2.spec | 2 ++
2 files changed, 14 insertions(+)
---
diff --git a/python3-cssselect2.spec b/python3-cssselect2.spec
index fd3518b..5f053e7 100644
--- a/python3-cssselect2.spec
+++ b/python3-cssselect2.spec
@@ -14,6 +14,7 @@ Group: Libraries/Python
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
URL: https://cssselect2.readthedocs.io/
BuildRequires: python3-modules >= 1:3.6
BuildRequires: python3-setuptools >= 1:39.2.0
@@ -59,6 +60,7 @@ Dokumentacja API modułu Pythona cssselect2.
%prep
%setup -n cssselect2-%{version}
%patch0 -p1
+%patch1 -p1
# for pythonegg dependencies
%{__sed} -i -e 's/distutils.core/setuptools/' setup.py
diff --git a/no-cov.patch b/no-cov.patch
new file mode 100644
index 0000000..d6c14c5
--- /dev/null
+++ b/no-cov.patch
@@ -0,0 +1,12 @@
+--- 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/c73e6cd5dc13b551b63b8771759fa5bb80df23f1
More information about the pld-cvs-commit
mailing list