From 447071ef4b69dfadda570d683cd028910de6719da7a773a66f93489760cf964b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 15 May 2025 10:19:11 +0000 Subject: [PATCH] Accepting request 1277182 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1277182 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astral?expand=0&rev=27 --- python-astral.changes | 5 +++++ python-astral.spec | 13 +++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/python-astral.changes b/python-astral.changes index da6ea02..bcad098 100644 --- a/python-astral.changes +++ b/python-astral.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 13 15:00:26 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Mon May 29 16:40:29 UTC 2023 - Dirk Müller diff --git a/python-astral.spec b/python-astral.spec index 33073af..caab448 100644 --- a/python-astral.spec +++ b/python-astral.spec @@ -1,7 +1,7 @@ # # spec file for package python-astral # -# Copyright (c) 2023 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 @@ -25,13 +25,14 @@ License: Apache-2.0 URL: https://github.com/sffjunkie/astral Source: https://files.pythonhosted.org/packages/source/a/astral/astral-%{version}.tar.gz BuildRequires: %{python_module freezegun} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytz} BuildRequires: %{python_module requests} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: (python36-dataclasses if python36-base) Requires: python-pytz Requires: python-requests Recommends: python-dataclasses @@ -51,10 +52,10 @@ For documentation see the http://astral.readthedocs.io/en/latest/index.html %setup -q -n astral-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}/%{$python_sitelib} %check @@ -64,6 +65,6 @@ For documentation see the http://astral.readthedocs.io/en/latest/index.html %doc ReadMe.md %license LICENSE %{python_sitelib}/astral -%{python_sitelib}/astral-%{version}-py3*.egg-info +%{python_sitelib}/astral-%{version}*-info %changelog