From 43885484af14e2f1203dd4939c3b38ea7d60486c3b3348831d9d3fd6c7ce69b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 23 Jun 2023 11:30:12 +0000 Subject: [PATCH] Accepting request 1094788 from home:gladiac:branches:devel:languages:python - Fix building with Python 3.9 OBS-URL: https://build.opensuse.org/request/show/1094788 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdm?expand=0&rev=32 --- python-pdm.changes | 5 +++++ python-pdm.spec | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/python-pdm.changes b/python-pdm.changes index b09b3fb..36a540f 100644 --- a/python-pdm.changes +++ b/python-pdm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 22 07:41:39 UTC 2023 - Andreas Schneider + +- Fix building with Python 3.9 + ------------------------------------------------------------------- Mon Jun 19 14:02:16 UTC 2023 - Dirk Müller diff --git a/python-pdm.spec b/python-pdm.spec index e563056..086f3a7 100644 --- a/python-pdm.spec +++ b/python-pdm.spec @@ -34,6 +34,7 @@ License: MIT URL: https://github.com/pdm-project/pdm/ Source0: https://files.pythonhosted.org/packages/source/p/pdm/pdm-%{version}.tar.gz BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module importlib-metadata if %python-base <= 3.9} BuildRequires: %{python_module pdm-backend} BuildRequires: %{python_module pdm-pep517 >= 1.0} BuildRequires: %{python_module pip} @@ -61,7 +62,7 @@ Requires: python-lockfile >= 0.9 %if 0%{?python_version_nodots} < 311 Requires: python-tomli >= 1.1.0 %endif -%if 0%{?python_version_nodots} < 38 +%if 0%{?python_version_nodots} <= 39 Requires: python-importlib-metadata Requires: python-typing-extensions %endif