14
0
forked from pool/python-mrcz

Accepting request 1282932 from devel:languages:python

- Switch to pyproject macros.
- Do not mark everything as pycache_only.

OBS-URL: https://build.opensuse.org/request/show/1282932
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mrcz?expand=0&rev=5
This commit is contained in:
2025-06-05 18:34:03 +00:00
committed by Git OBS Bridge
2 changed files with 13 additions and 7 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jun 5 04:39:19 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- Do not mark everything as pycache_only.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Nov 27 11:40:39 UTC 2024 - Markéta Machová <mmachova@suse.com> Wed Nov 27 11:40:39 UTC 2024 - Markéta Machová <mmachova@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-mrcz # spec file for package python-mrcz
# #
# Copyright (c) 2024 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
@@ -30,8 +30,10 @@ Patch: numpy2.patch
Patch: new-pythons.patch Patch: new-pythons.patch
BuildRequires: %{python_module blosc} BuildRequires: %{python_module blosc}
BuildRequires: %{python_module numpy} BuildRequires: %{python_module numpy}
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: dos2unix BuildRequires: dos2unix
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@@ -52,10 +54,10 @@ microscopy.
dos2unix README.rst dos2unix README.rst
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -64,9 +66,7 @@ dos2unix README.rst
%files %{python_files} %files %{python_files}
%doc AUTHORS.txt README.rst %doc AUTHORS.txt README.rst
%license LICENSE.txt %license LICENSE.txt
%dir %{python_sitelib}/mrcz/ %{python_sitelib}/mrcz
%pycache_only %{python_sitelib}/mrcz-%{version}-py%{python_version}.egg-info/ %{python_sitelib}/mrcz-%{version}.dist-info
%pycache_only %{python_sitelib}/mrcz/*.py
%pycache_only %{python_sitelib}/mrcz/__pycache__/
%changelog %changelog