diff --git a/python-serpent.changes b/python-serpent.changes index 2bf9ef0..73391ea 100644 --- a/python-serpent.changes +++ b/python-serpent.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 12 10:46:13 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Sun Jun 11 13:53:35 UTC 2023 - ecsos diff --git a/python-serpent.spec b/python-serpent.spec index 93fc936..0e78985 100644 --- a/python-serpent.spec +++ b/python-serpent.spec @@ -1,7 +1,7 @@ # # spec file for package python-serpent # -# 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 @@ -24,7 +24,9 @@ Summary: Serialization based on astliteral_eval License: MIT URL: https://github.com/irmen/Serpent Source: https://files.pythonhosted.org/packages/source/s/serpent/serpent-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -46,17 +48,19 @@ and de-serialize it there. %setup -q -n serpent-%{version} %build -%python_build +%pyproject_wheel %check %pytest %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/serpent.py +%pycache_only %{python_sitelib}/__pycache__/serpent* +%{python_sitelib}/serpent-%{version}*-info %changelog