From: Jan Rękorajski Date: Fri, 1 Apr 2022 21:34:25 +0000 (+0200) Subject: - remove unrecognized --cov arg X-Git-Tag: auto/th/python3-cssselect2-0.4.1-4~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=c73e6cd5dc13b551b63b8771759fa5bb80df23f1;p=packages%2Fpython3-cssselect2.git - remove unrecognized --cov arg --- 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