2 Commits

2 changed files with 13 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 12 10:46:13 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Jun 11 13:53:35 UTC 2023 - ecsos <ecsos@opensuse.org> Sun Jun 11 13:53:35 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-serpent # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,9 @@ Summary: Serialization based on astliteral_eval
License: MIT License: MIT
URL: https://github.com/irmen/Serpent URL: https://github.com/irmen/Serpent
Source: https://files.pythonhosted.org/packages/source/s/serpent/serpent-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/s/serpent/serpent-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
@@ -46,17 +48,19 @@ and de-serialize it there.
%setup -q -n serpent-%{version} %setup -q -n serpent-%{version}
%build %build
%python_build %pyproject_wheel
%check %check
%pytest %pytest
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%{python_sitelib}/* %{python_sitelib}/serpent.py
%pycache_only %{python_sitelib}/__pycache__/serpent*
%{python_sitelib}/serpent-%{version}*-info
%changelog %changelog