14
0
forked from pool/python-pyaml

- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyaml?expand=0&rev=29
This commit is contained in:
2025-06-11 06:16:33 +00:00
committed by Git OBS Bridge
parent 99bb13a293
commit 2c1f11dcdf
2 changed files with 10 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 11 05:49:27 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu May 29 08:16:08 UTC 2025 - Dirk Müller <dmueller@suse.com> Thu May 29 08:16:08 UTC 2025 - Dirk Müller <dmueller@suse.com>

View File

@@ -22,13 +22,14 @@ Version: 25.5.0
Release: 0 Release: 0
Summary: Python module to produce formatted YAML-serialized data Summary: Python module to produce formatted YAML-serialized data
License: WTFPL License: WTFPL
Group: Development/Languages/Python
URL: https://github.com/mk-fg/pretty-yaml URL: https://github.com/mk-fg/pretty-yaml
Source: https://files.pythonhosted.org/packages/source/p/pyaml/pyaml-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/pyaml/pyaml-%{version}.tar.gz
BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module Unidecode} BuildRequires: %{python_module Unidecode}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-PyYAML Requires: python-PyYAML
@@ -45,10 +46,10 @@ PyYAML-based python module to produce formatted YAML-serialized data.
%setup -q -n pyaml-%{version} %setup -q -n pyaml-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}/%{_bindir}/pyaml %python_clone -a %{buildroot}/%{_bindir}/pyaml
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -66,6 +67,6 @@ PyYAML-based python module to produce formatted YAML-serialized data.
%doc README.rst %doc README.rst
%python_alternative %{_bindir}/pyaml %python_alternative %{_bindir}/pyaml
%{python_sitelib}/pyaml %{python_sitelib}/pyaml
%{python_sitelib}/pyaml-%{version}*-info %{python_sitelib}/pyaml-%{version}.dist-info
%changelog %changelog