diff --git a/_multibuild b/_multibuild
new file mode 100644
index 0000000..fcc7b97
--- /dev/null
+++ b/_multibuild
@@ -0,0 +1,3 @@
+
+ test
+
diff --git a/pypiserver-1.5.1.tar.gz b/pypiserver-1.5.1.tar.gz
deleted file mode 100644
index 07bc51a..0000000
--- a/pypiserver-1.5.1.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:0c0777b8b2cb5cc2b5768d468d1c2beda49d3cb7ee72fea41e9a0824388d6831
-size 150145
diff --git a/pypiserver-1.5.2.tar.gz b/pypiserver-1.5.2.tar.gz
new file mode 100644
index 0000000..6c2167c
--- /dev/null
+++ b/pypiserver-1.5.2.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d26bd08367dcc3b22af46e24f7688bc12a12ea7086d9424322942027279bc24c
+size 153032
diff --git a/python-pypiserver.changes b/python-pypiserver.changes
index 9367fe4..5461929 100644
--- a/python-pypiserver.changes
+++ b/python-pypiserver.changes
@@ -1,3 +1,26 @@
+-------------------------------------------------------------------
+Mon Sep 11 14:23:34 UTC 2023 - Torsten Gruner
+
+- update to 1.5.2
+ * Upgrade GitHub Actions #447
+ * Support current versions of CPython #453
+ * fix: force setuptools update + no duplicate runs in GH Actions #445
+ * from importlib import reload for Python 3 #448
+ * fix: correct 1.5.1 tag date in CHANGES #457
+ * feat: 🩺 allow customized health check endpoint #442
+ * fix: explicit optional types in config.py #472
+ * chore: disable tests on Python3.6 #471
+ * Upgrade to psf/black stable style 2023 #474
+ * Update README to reflect run/update commands #451
+ * chore: add help output for run and update to README #478
+ * Update README.rst and config.py #470
+ * chore: update docs folder #479
+ * Bump waitress from 1.4.4 to 2.1.2 in /docker #454
+ * Health endpoint usage is missing. #481
+ * Feat/dependabot #493
+ * fix: Add missing pip dependency #500
+ * chore(auto-release-candidate-07-30-2023) #505
+
-------------------------------------------------------------------
Tue May 9 13:12:28 UTC 2023 - Johannes Kastl
diff --git a/python-pypiserver.spec b/python-pypiserver.spec
index 62f6904..c7e2f37 100644
--- a/python-pypiserver.spec
+++ b/python-pypiserver.spec
@@ -15,25 +15,26 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
-
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
%{?sle15_python_module_pythons}
-%bcond_without python2
-Name: python-pypiserver
-Version: 1.5.1
+Name: python-pypiserver%{psuffix}
+Version: 1.5.2
Release: 0
Summary: Minimal PyPI server for uploading & downloading packages with pip/easy_install
License: MIT
URL: https://github.com/pypiserver
Source: https://github.com/pypiserver/pypiserver/archive/v%{version}.tar.gz#/pypiserver-%{version}.tar.gz
-BuildRequires: %{python_module WebTest}
-BuildRequires: %{python_module passlib >= 1.6}
BuildRequires: %{python_module pip >= 7}
-BuildRequires: %{python_module pytest >= 3.5}
BuildRequires: %{python_module setuptools-git >= 0.3}
BuildRequires: %{python_module setuptools_scm >= 1.15.0}
BuildRequires: %{python_module setuptools}
-BuildRequires: %{python_module tox}
-BuildRequires: %{python_module twine}
BuildRequires: %{python_module wheel >= 0.25.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -42,9 +43,16 @@ Requires: python-setuptools
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
-%if %{with python2}
-BuildRequires: python-mock
+# SECTION test requirements
+%if %{with test}
+BuildRequires: %{python_module passlib >= 1.6}
+BuildRequires: %{python_module pypiserver = %{version}}
+BuildRequires: %{python_module pytest >= 3.5}
+BuildRequires: %{python_module tox}
+BuildRequires: %{python_module twine}
+BuildRequires: %{python_module WebTest}
%endif
+# /SECTION
%python_subpackages
%description
@@ -57,18 +65,22 @@ sed -i '1{/env python/d}' pypiserver/*.py
rm -f pytest.ini
%build
-%python_build
+%pyproject_wheel
%install
-%python_install
+%if !%{with test}
+%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/pypi-server
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
+%if %{with test}
%check
# test_hash_algos:
# ERROR: No matching distribution found for a==1.0 (from centodeps)
# (see centodeps-setup.py)
%pytest tests -k "not (test_pipInstall_openOk or test_pipInstall_authedOk or test_hash_algos or test_pip_install_open_succeeds or test_pip_install_authed_succeeds)"
+%endif
%post
%python_install_alternative pypi-server
@@ -76,11 +88,13 @@ rm -f pytest.ini
%postun
%python_uninstall_alternative pypi-server
+%if !%{with test}
%files %{python_files}
%doc README.rst
%license LICENSE.txt
%{python_sitelib}/pypiserver
%{python_sitelib}/pypiserver-%{version}*-info
%python_alternative %{_bindir}/pypi-server
+%endif
%changelog