From c2d7975fb0c49d1ffc3dddcfff72236985353b71b71e4c00fca129b5bdb9c505 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 20 Dec 2021 05:07:29 +0000 Subject: [PATCH] - Add patch remove-pytest-runner.patch: * No longer require pytest-runner. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-HTMLmin?expand=0&rev=15 --- python-Flask-HTMLmin.changes | 6 ++++++ python-Flask-HTMLmin.spec | 4 ++-- remove-pytest-runner.patch | 23 +++++++++++++++++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 remove-pytest-runner.patch diff --git a/python-Flask-HTMLmin.changes b/python-Flask-HTMLmin.changes index 03fcce1..2641101 100644 --- a/python-Flask-HTMLmin.changes +++ b/python-Flask-HTMLmin.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Dec 20 05:07:09 UTC 2021 - Steve Kowalik + +- Add patch remove-pytest-runner.patch: + * No longer require pytest-runner. + ------------------------------------------------------------------- Wed Mar 3 19:28:34 UTC 2021 - Arun Persaud diff --git a/python-Flask-HTMLmin.spec b/python-Flask-HTMLmin.spec index 51a04fa..22da7d2 100644 --- a/python-Flask-HTMLmin.spec +++ b/python-Flask-HTMLmin.spec @@ -25,10 +25,10 @@ Summary: Flask minifier for HTML responses License: BSD-3-Clause URL: https://github.com/hamidfzm/Flask-HTMLmin Source: https://github.com/hamidfzm/Flask-HTMLmin/archive/v%{version}.tar.gz +Patch0: remove-pytest-runner.patch BuildRequires: %{python_module Flask} BuildRequires: %{python_module htmlmin} BuildRequires: %{python_module pytest-cov} -BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -41,7 +41,7 @@ BuildArch: noarch Flask-HTMLmin minimizes HTML rendered by Flask. %prep -%setup -q -n Flask-HTMLmin-%{version} +%autosetup -n Flask-HTMLmin-%{version} %build %python_build diff --git a/remove-pytest-runner.patch b/remove-pytest-runner.patch new file mode 100644 index 0000000..eeb1379 --- /dev/null +++ b/remove-pytest-runner.patch @@ -0,0 +1,23 @@ +Index: Flask-HTMLmin-2.2.0/Pipfile +=================================================================== +--- Flask-HTMLmin-2.2.0.orig/Pipfile ++++ Flask-HTMLmin-2.2.0/Pipfile +@@ -5,7 +5,6 @@ verify_ssl = true + + [dev-packages] + pytest = "*" +-pytest-runner = "*" + twine = "*" + wheel = "*" + flake8 = "*" +Index: Flask-HTMLmin-2.2.0/setup.py +=================================================================== +--- Flask-HTMLmin-2.2.0.orig/setup.py ++++ Flask-HTMLmin-2.2.0/setup.py +@@ -48,6 +48,4 @@ setup( + 'Topic :: Software Development :: Libraries :: Python Modules', + 'Topic :: Text Processing :: Markup :: HTML', + ], +- setup_requires=['pytest-runner'], +- tests_require=['pytest'] + )