Accepting request 933309 from home:tinita:branches:devel:languages:python
- Add patch setuptools.patch - update to 6.0 * drop Python 2.7 * always require `Loader` arg to `yaml.load()` * fix float resolver to ignore `.` and `._` * fix representation of Enum subclasses * fix libyaml extension compiler warnings * fix ResourceWarning on leaked file descriptors * remove remaining direct distutils usage OBS-URL: https://build.opensuse.org/request/show/933309 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyYAML?expand=0&rev=44
This commit is contained in:
parent
80c1222bbd
commit
b3420e1e8d
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:607774cbba28732bfa802b54baa7484215f530991055bb562efbed5b2f20a45e
|
|
||||||
size 175147
|
|
3
PyYAML-6.0.tar.gz
Normal file
3
PyYAML-6.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2
|
||||||
|
size 124996
|
@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 1 20:36:13 UTC 2021 - Tina Müller <tina.mueller@suse.com>
|
||||||
|
|
||||||
|
- Add patch setuptools.patch
|
||||||
|
- update to 6.0
|
||||||
|
* drop Python 2.7
|
||||||
|
* always require `Loader` arg to `yaml.load()`
|
||||||
|
* fix float resolver to ignore `.` and `._`
|
||||||
|
* fix representation of Enum subclasses
|
||||||
|
* fix libyaml extension compiler warnings
|
||||||
|
* fix ResourceWarning on leaked file descriptors
|
||||||
|
* remove remaining direct distutils usage
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jan 24 18:21:20 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
Sun Jan 24 18:21:20 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -18,23 +18,20 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define oldpython python
|
%define oldpython python
|
||||||
|
%define skip_python2 1
|
||||||
Name: python-PyYAML
|
Name: python-PyYAML
|
||||||
Version: 5.4.1
|
Version: 6.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: YAML parser and emitter for Python
|
Summary: YAML parser and emitter for Python
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/yaml/pyyaml
|
URL: https://github.com/yaml/pyyaml
|
||||||
Source: https://files.pythonhosted.org/packages/source/P/PyYAML/PyYAML-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/P/PyYAML/PyYAML-%{version}.tar.gz
|
||||||
|
Patch0: setuptools.patch
|
||||||
BuildRequires: %{python_module Cython}
|
BuildRequires: %{python_module Cython}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: libyaml-devel
|
BuildRequires: libyaml-devel
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
%ifpython2
|
|
||||||
# python-yaml was last used in openSUSE 12.1.
|
|
||||||
Provides: %{oldpython}-yaml = %{version}
|
|
||||||
Obsoletes: %{oldpython}-yaml < %{version}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
YAML is a data serialization format designed for human readability
|
YAML is a data serialization format designed for human readability
|
||||||
@ -53,6 +50,7 @@ configuration files to object serialization and persistance.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n PyYAML-%{version}
|
%setup -q -n PyYAML-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
@ -74,7 +72,7 @@ ulimit -Sn 2048
|
|||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc CHANGES README examples/
|
%doc CHANGES README.md examples/
|
||||||
%{python_sitearch}/yaml
|
%{python_sitearch}/yaml
|
||||||
%{python_sitearch}/_yaml
|
%{python_sitearch}/_yaml
|
||||||
%{python_sitearch}/PyYAML-%{version}-py%{python_version}.egg-info
|
%{python_sitearch}/PyYAML-%{version}-py%{python_version}.egg-info
|
||||||
|
11
setuptools.patch
Normal file
11
setuptools.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- PyYAML-6.0/setup.py 2021-10-13 21:13:52.000000000 +0200
|
||||||
|
+++ PyYAML-6.0/setup.py.new 2021-11-03 14:36:40.093725379 +0100
|
||||||
|
@@ -67,7 +67,7 @@
|
||||||
|
import sys, os, os.path, pathlib, platform, shutil, tempfile, warnings
|
||||||
|
|
||||||
|
# for newer setuptools, enable the embedded distutils before importing setuptools/distutils to avoid warnings
|
||||||
|
-os.environ['SETUPTOOLS_USE_DISTUTILS'] = 'local'
|
||||||
|
+#os.environ['SETUPTOOLS_USE_DISTUTILS'] = 'local'
|
||||||
|
|
||||||
|
from setuptools import setup, Command, Distribution as _Distribution, Extension as _Extension
|
||||||
|
from setuptools.command.build_ext import build_ext as _build_ext
|
Loading…
x
Reference in New Issue
Block a user