diff --git a/python-Flask-HTMLmin.changes b/python-Flask-HTMLmin.changes
index 9b818c6..d4201b2 100644
--- a/python-Flask-HTMLmin.changes
+++ b/python-Flask-HTMLmin.changes
@@ -1,3 +1,14 @@
+-------------------------------------------------------------------
+Mon Jan 22 22:32:58 UTC 2024 - Dirk Müller
+
+- update to 2.2.1:
+ * Stop using pytest-runner
+ * Fix documentation error in README
+ * Fix https://github.com/hamidfzm/Flask-HTMLmin/issues/30 by
+ @hamidfzm
+- switch to PEP517 build
+- drop remove-pytest-runner.patch (upstream)
+
-------------------------------------------------------------------
Sat Feb 19 19:21:30 UTC 2022 - Arun Persaud
@@ -15,7 +26,7 @@ Sat Feb 19 19:21:30 UTC 2022 - Arun Persaud
Mon Dec 20 05:07:09 UTC 2021 - Steve Kowalik
- Add patch remove-pytest-runner.patch:
- * No longer require pytest-runner.
+ * 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 6efc4c2..345005d 100644
--- a/python-Flask-HTMLmin.spec
+++ b/python-Flask-HTMLmin.spec
@@ -1,7 +1,7 @@
#
# spec file for package python-Flask-HTMLmin
#
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,21 +16,21 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define skip_python2 1
+%{?sle15_python_module_pythons}
Name: python-Flask-HTMLmin
-Version: 2.2.0
+Version: 2.2.1
Release: 0
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 cssmin}
BuildRequires: %{python_module htmlmin}
+BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-cov}
BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Flask
@@ -46,10 +46,10 @@ Flask-HTMLmin minimizes HTML rendered by Flask.
%autosetup -n Flask-HTMLmin-%{version}
%build
-%python_build
+%pyproject_wheel
%install
-%python_install
+%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -60,6 +60,6 @@ Flask-HTMLmin minimizes HTML rendered by Flask.
%license LICENSE
%dir %{python_sitelib}/flask_htmlmin
%{python_sitelib}/flask_htmlmin/*
-%{python_sitelib}/Flask_HTMLmin-%{version}-*.egg-info
+%{python_sitelib}/Flask_HTMLmin-%{version}.dist-info
%changelog
diff --git a/remove-pytest-runner.patch b/remove-pytest-runner.patch
deleted file mode 100644
index eeb1379..0000000
--- a/remove-pytest-runner.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-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']
- )
diff --git a/v2.2.0.tar.gz b/v2.2.0.tar.gz
deleted file mode 100644
index ce2ac7f..0000000
--- a/v2.2.0.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:09ec02228692e41baa9a688261c71116efe38cafbae9d771fce5f476ecb52171
-size 17637
diff --git a/v2.2.1.tar.gz b/v2.2.1.tar.gz
new file mode 100644
index 0000000..606023d
--- /dev/null
+++ b/v2.2.1.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:bd744b84ea00f48a40d2d3e902fc23599f4d880269935f6a9b88f305d1e8d968
+size 17550