From 96a33da6be16e8d8681b06239d10b6f1d47457f4 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Tue, 15 Mar 2022 22:15:09 +0100 Subject: [PATCH] - added setup patch (adjust setup.cfg for current setuptools/pytest) --- python-characteristic-setup.patch | 8 ++++++++ python-characteristic.spec | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 python-characteristic-setup.patch diff --git a/python-characteristic-setup.patch b/python-characteristic-setup.patch new file mode 100644 index 0000000..c7d966f --- /dev/null +++ b/python-characteristic-setup.patch @@ -0,0 +1,8 @@ +--- characteristic-14.3.0/setup.cfg.orig 2014-12-19 14:48:48.000000000 +0100 ++++ characteristic-14.3.0/setup.cfg 2022-03-15 06:26:49.668485181 +0100 +@@ -1,4 +1,4 @@ +-[pytest] ++[tool:pytest] + minversion = 2.6 + strict = true + norecursedirs = .* build dist test_data *.egg diff --git a/python-characteristic.spec b/python-characteristic.spec index cc17bc8..2688928 100644 --- a/python-characteristic.spec +++ b/python-characteristic.spec @@ -15,6 +15,7 @@ Group: Libraries/Python #Source0Download: https://pypi.org/simple/characteristic/ Source0: https://files.pythonhosted.org/packages/source/c/characteristic/characteristic-%{version}.tar.gz # Source0-md5: b249368dd021fde1c06b4802867c0913 +Patch0: %{name}-setup.patch URL: https://characteristic.readthedocs.org/ BuildRequires: rpm-pythonprov BuildRequires: rpmbuild(macros) >= 1.714 @@ -118,6 +119,7 @@ Dokumentacja API modułu Pythona characteristic. %prep %setup -q -n characteristic-%{version} +%patch0 -p1 %build %if %{with python2} -- 2.44.0