From bce5beb1b6e3390ca1320e89748e2e6e2ac1dd0cbbe94ad1b56933fac67b91c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 10 Jun 2025 12:53:03 +0000 Subject: [PATCH 1/2] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-args?expand=0&rev=3 --- python-python-args.changes | 5 +++++ python-python-args.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-python-args.changes b/python-python-args.changes index 5e4cc75..be55e07 100644 --- a/python-python-args.changes +++ b/python-python-args.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 10 12:51:52 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sat Aug 22 03:30:56 AM UTC 2020 - John Vandenberg diff --git a/python-python-args.spec b/python-python-args.spec index 52316bd..c567d29 100644 --- a/python-python-args.spec +++ b/python-python-args.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-args # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-python-args Version: 1.0.2 Release: 0 @@ -26,8 +24,10 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/jyveapp/python-args Source: https://files.pythonhosted.org/packages/source/p/python-args/python-args-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -40,10 +40,10 @@ Python argument design patterns in a composable interface. %setup -q -n python-args-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -52,6 +52,7 @@ Python argument design patterns in a composable interface. %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/arg +%{python_sitelib}/python[-_]args-%{version}*-info %changelog From 0dc2e59d12dafdbb9a4b229f7ce2b967e9cf476d6e64fc1c9263df376e7cb28a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 10 Jun 2025 12:54:59 +0000 Subject: [PATCH 2/2] sadly needs full poetry OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-args?expand=0&rev=4 --- python-python-args.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-python-args.spec b/python-python-args.spec index c567d29..8e73804 100644 --- a/python-python-args.spec +++ b/python-python-args.spec @@ -25,8 +25,8 @@ Group: Development/Languages/Python URL: https://github.com/jyveapp/python-args Source: https://files.pythonhosted.org/packages/source/p/python-args/python-args-%{version}.tar.gz BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros