Sync from SUSE:SLFO:Main python-PyYAML revision 00880f1d8389c4d877a13f7836f3bcad

This commit is contained in:
Adrian Schröter 2024-12-13 10:49:56 +01:00
parent 2f44210f15
commit 88556207d6
5 changed files with 16 additions and 25 deletions

BIN
PyYAML-6.0.1.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@ -1,17 +0,0 @@
Index: PyYAML-6.0.1/setup.py
===================================================================
--- PyYAML-6.0.1.orig/setup.py
+++ PyYAML-6.0.1/setup.py
@@ -82,7 +82,11 @@ if 'sdist' in sys.argv or os.environ.get
with_cython = True
try:
from Cython.Distutils.extension import Extension as _Extension
- from Cython.Distutils import build_ext as _build_ext
+ try:
+ # try old_build_ext from Cython > 3 first, until we can dump it entirely
+ from Cython.Distutils.old_build_ext import old_build_ext as _build_ext
+ except ImportError:
+ from Cython.Distutils import build_ext as _build_ext
with_cython = True
except ImportError:
if with_cython:

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Oct 2 08:15:26 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 6.0.2
* Support for Cython 3.x and Python 3.13
- Adjust invocation path for testsuite
- Adjust upstream source name in spec file
- Drop build-with-cython3.patch, merged upstream
-------------------------------------------------------------------
Mon Jul 1 10:52:46 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@ -18,13 +18,12 @@
%{?sle15_python_module_pythons}
Name: python-PyYAML
Version: 6.0.1
Version: 6.0.2
Release: 0
Summary: YAML parser and emitter for Python
License: MIT
URL: https://github.com/yaml/pyyaml
Source: https://files.pythonhosted.org/packages/source/P/PyYAML/PyYAML-%{version}.tar.gz
Patch1: build-with-cython3.patch
Source: https://files.pythonhosted.org/packages/source/p/pyyaml/pyyaml-%{version}.tar.gz
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
@ -48,7 +47,7 @@ PyYAML is applicable for a broad range of tasks from complex
configuration files to object serialization and persistance.
%prep
%autosetup -p1 -n PyYAML-%{version}
%autosetup -p1 -n pyyaml-%{version}
%build
export CFLAGS="%{optflags}"
@ -66,7 +65,7 @@ find examples/ -type f | xargs chmod a-x
%ifarch ppc ppc64 s390 s390x
ulimit -Sn 2048
%endif
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python tests/lib/test_all.py}
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python tests/legacy_tests/test_all.py}
%files %{python_files}
%license LICENSE

BIN
pyyaml-6.0.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.