From 91367d516df8cca9efb744b962eb13bb5eb88b5052fe4923c55d582e2fb0966c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 13 Jun 2025 12:19:11 +0000 Subject: [PATCH 1/2] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-synr?expand=0&rev=3 --- python-synr.changes | 5 +++++ python-synr.spec | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/python-synr.changes b/python-synr.changes index 94d2325..81f1a4d 100644 --- a/python-synr.changes +++ b/python-synr.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 13 12:18:52 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Mon Feb 28 00:28:12 UTC 2022 - Ben Greiner diff --git a/python-synr.spec b/python-synr.spec index 915ed22..d1474e7 100644 --- a/python-synr.spec +++ b/python-synr.spec @@ -1,7 +1,7 @@ # # spec file for package python-synr # -# Copyright (c) 2022 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() python3-%{**}} -%define skip_python2 1 Name: python-synr Version: 0.6.0 Release: 0 @@ -26,11 +24,13 @@ License: Apache-2.0 URL: https://synr.readthedocs.io Source0: https://files.pythonhosted.org/packages/source/s/synr/synr-%{version}.tar.gz Source1: https://github.com/octoml/synr/raw/v%{version}/tests/test_synr.py -BuildRequires: python-rpm-macros -BuildRequires: %{python_module setuptools} BuildRequires: %{python_module attrs} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-attrs BuildArch: noarch %python_subpackages @@ -44,10 +44,10 @@ mkdir tests cp %{SOURCE1} tests %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check From 81519b1a7bd6b67c631d247ea21a7b37bd0acc11d23bb5967203be1496e796ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 13 Jun 2025 12:20:23 +0000 Subject: [PATCH 2/2] fix deps OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-synr?expand=0&rev=4 --- python-synr.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-synr.spec b/python-synr.spec index d1474e7..1decadc 100644 --- a/python-synr.spec +++ b/python-synr.spec @@ -26,8 +26,8 @@ Source0: https://files.pythonhosted.org/packages/source/s/synr/synr-%{ver Source1: https://github.com/octoml/synr/raw/v%{version}/tests/test_synr.py BuildRequires: %{python_module attrs} 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