Compare commits

..

1 Commits
i9cf ... i10ce

2
.gitignore vendored

@ -1 +1 @@
SOURCES/pyzstd-0.15.10.tar.gz SOURCES/pyzstd-0.16.1.tar.gz

@ -1 +1 @@
0a548fd4d24f7fcc018e9d49de9a621bc3c63967 SOURCES/pyzstd-0.15.10.tar.gz 8b04e33528a2f635af1c0a5a0a9d521d84494f29 SOURCES/pyzstd-0.16.1.tar.gz

@ -1,3 +0,0 @@
# python-pyzstd
The python-pyzstd package

@ -1,30 +0,0 @@
From 467bd72ad4caadc1b006fc913452b3598c369b73 Mon Sep 17 00:00:00 2001
From: Maxwell G <maxwell@gtmx.me>
Date: Sun, 7 Apr 2024 00:29:36 +0000
Subject: [PATCH] pyzstd_pep517: name config_settings argument correctly
Ref: https://peps.python.org/pep-0517/#get-requires-for-build-wheel
---
build_script/pyzstd_pep517.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/build_script/pyzstd_pep517.py b/build_script/pyzstd_pep517.py
index cea7c94..7b4b3f8 100644
--- a/build_script/pyzstd_pep517.py
+++ b/build_script/pyzstd_pep517.py
@@ -1,10 +1,10 @@
from setuptools import build_meta as _orig
from setuptools.build_meta import *
-def get_requires_for_build_wheel(cfg=None):
+def get_requires_for_build_wheel(config_settings=None):
requires = []
- if isinstance(cfg, dict) and '--build-option' in cfg:
- v = cfg['--build-option']
+ if isinstance(config_settings, dict) and '--build-option' in config_settings:
+ v = config_settings['--build-option']
if isinstance(v, (str, list)) and '--cffi' in v:
requires.append('cffi')
- return _orig.get_requires_for_build_wheel(cfg) + requires
\ No newline at end of file
+ return _orig.get_requires_for_build_wheel(config_settings) + requires

@ -3,7 +3,7 @@
%define tag %{version} %define tag %{version}
Name: python-pyzstd Name: python-pyzstd
Version: 0.15.10 Version: 0.16.1
%forgemeta %forgemeta
Release: 1%{?dist} Release: 1%{?dist}
Summary: Python bindings to Zstandard (zstd) compression library Summary: Python bindings to Zstandard (zstd) compression library
@ -11,9 +11,6 @@ Summary: Python bindings to Zstandard (zstd) compression library
License: BSD-3-Clause License: BSD-3-Clause
URL: %{forgeurl} URL: %{forgeurl}
Source: %{forgesource} Source: %{forgesource}
# pyzstd_pep517: name config_settings argument correctly (#2)
# pyproject-rpm-macros' config_settings support passes it as a kwarg
Patch: %{url}/pull/2.patch#/config_settings-fix.patch
BuildRequires: gcc BuildRequires: gcc
BuildRequires: python3-devel BuildRequires: python3-devel
@ -63,13 +60,26 @@ sed -i -e '1{\@^#!.*@d}' src/__main__.py
%files -n python3-pyzstd -f %{pyproject_files} %files -n python3-pyzstd -f %{pyproject_files}
%doc README.rst %doc CHANGELOG.md
%doc README.md
%license LICENSE %license LICENSE
%changelog %changelog
* Thu Jul 18 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 0.15.10-1 * Fri Jan 10 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.16.1-1
- Rebuilt for MSVSphere 9.4 - Rebuilt for MSVSphere 10
* Mon Aug 05 2024 Maxwell G <maxwell@gtmx.me> - 0.16.1-1
- Update to 0.16.1. Fixes rhbz#2281937.
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.10-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Fri Jun 14 2024 Maxwell G <maxwell@gtmx.me> - 0.15.10-3
- Add temporary fix for Python 3.13 FTBFS
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.15.10-2
- Rebuilt for Python 3.13
* Sun Apr 07 2024 Maxwell G <maxwell@gtmx.me> - 0.15.10-1 * Sun Apr 07 2024 Maxwell G <maxwell@gtmx.me> - 0.15.10-1
- Initial package (rhbz#2273823). - Initial package (rhbz#2273823).

Loading…
Cancel
Save