Accepting request 1159842 from devel:languages:python:numeric
- Add python312.patch to make it compatible with latest python version. OBS-URL: https://build.opensuse.org/request/show/1159842 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-gwyfile?expand=0&rev=3
This commit is contained in:
commit
6c5d6a1fe6
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 20 13:06:05 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Add python312.patch to make it compatible with latest python
|
||||
version.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 19 08:37:09 UTC 2021 - andy great <andythe_great@pm.me>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-gwyfile
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,8 +17,6 @@
|
||||
|
||||
|
||||
%define packagename gwyfile
|
||||
%define skip_python36 1
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-gwyfile
|
||||
Version: 0.2.0
|
||||
Release: 0
|
||||
@ -29,6 +27,8 @@ URL: https://github.com/tuxu/gwyfile
|
||||
Source: https://github.com/tuxu/gwyfile/archive/%{version}.tar.gz#/%{packagename}-%{version}.tar.gz
|
||||
# PATCH-FIX-OPENSUSE Fix_depreciated_fromstring_warning.patch andythe_great@pm.me -- Fix fromstring depreciated to frombuffer warning during testing.
|
||||
Patch0: Fix_depreciated_fromstring_warning.patch
|
||||
# PATCH-FIX-OPENSUSE python312.patch
|
||||
Patch1: python312.patch
|
||||
BuildRequires: %{python_module numpy}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
|
16
python312.patch
Normal file
16
python312.patch
Normal file
@ -0,0 +1,16 @@
|
||||
Index: gwyfile-0.2.0/versioneer.py
|
||||
===================================================================
|
||||
--- gwyfile-0.2.0.orig/versioneer.py
|
||||
+++ gwyfile-0.2.0/versioneer.py
|
||||
@@ -339,9 +339,9 @@ def get_config_from_root(root):
|
||||
# configparser.NoOptionError (if it lacks "VCS="). See the docstring at
|
||||
# the top of versioneer.py for instructions on writing your setup.cfg .
|
||||
setup_cfg = os.path.join(root, "setup.cfg")
|
||||
- parser = configparser.SafeConfigParser()
|
||||
+ parser = configparser.ConfigParser()
|
||||
with open(setup_cfg, "r") as f:
|
||||
- parser.readfp(f)
|
||||
+ parser.read_file(f)
|
||||
VCS = parser.get("versioneer", "VCS") # mandatory
|
||||
|
||||
def get(parser, name):
|
Loading…
x
Reference in New Issue
Block a user