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