From c73e6cd5dc13b551b63b8771759fa5bb80df23f1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Fri, 1 Apr 2022 23:34:25 +0200 Subject: [PATCH] - remove unrecognized --cov arg --- no-cov.patch | 12 ++++++++++++ python3-cssselect2.spec | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 no-cov.patch 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/*'] 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 -- 2.44.0