forked from pool/python-dill
Accepting request 941526 from home:bnavigator:python-rpm-macros
- Update to v0.3.4 * no release notes, works with python310 - Drop 07e24913.patch released upstream OBS-URL: https://build.opensuse.org/request/show/941526 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=19
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
From 07e24913e88dfe26448226f9cfd1ee6cf5c2a760 Mon Sep 17 00:00:00 2001
|
||||
From: mmckerns <mmckerns@caltech.edu>
|
||||
Date: Fri, 26 Feb 2021 12:01:52 -0500
|
||||
Subject: [PATCH] comment out BigEndianStructureType
|
||||
|
||||
---
|
||||
dill/_objects.py | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/dill/_objects.py b/dill/_objects.py
|
||||
index 3adba2b..5c54aba 100644
|
||||
--- a/dill/_objects.py
|
||||
+++ b/dill/_objects.py
|
||||
@@ -216,8 +216,8 @@ class _Struct(ctypes.Structure):
|
||||
a['CSizeTType'] = ctypes.c_size_t()
|
||||
a['CLibraryLoaderType'] = ctypes.cdll
|
||||
a['StructureType'] = _Struct
|
||||
- if not IS_PYPY:
|
||||
- a['BigEndianStructureType'] = ctypes.BigEndianStructure()
|
||||
+ # if not IS_PYPY:
|
||||
+ # a['BigEndianStructureType'] = ctypes.BigEndianStructure()
|
||||
#NOTE: also LittleEndianStructureType and UnionType... abstract classes
|
||||
#NOTE: remember for ctypesobj.contents creates a new python object
|
||||
#NOTE: ctypes.c_int._objects is memberdescriptor for object's __dict__
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:efb7f6cb65dba7087c1e111bb5390291ba3616741f96840bfc75792a1a9b5ded
|
||||
size 177693
|
3
dill-0.3.4.zip
Normal file
3
dill-0.3.4.zip
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9f9734205146b2b353ab3fec9af0070237b6ddae78452af83d2fca84d739e675
|
||||
size 186823
|
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 19 17:30:19 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to v0.3.4
|
||||
* no release notes, works with python310
|
||||
- Drop 07e24913.patch released upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 26 23:46:51 UTC 2021 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
|
@@ -18,14 +18,13 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-dill
|
||||
Version: 0.3.3
|
||||
Version: 0.3.4
|
||||
Release: 0
|
||||
Summary: Module to serialize all of Python
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/uqfoundation/dill
|
||||
Source: https://files.pythonhosted.org/packages/source/d/dill/dill-%{version}.zip
|
||||
Patch0: https://github.com/uqfoundation/dill/commit/07e24913.patch
|
||||
BuildRequires: %{python_module objgraph >= 1.7.2}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
@@ -55,7 +54,6 @@ session in a single command.
|
||||
|
||||
%prep
|
||||
%setup -q -n dill-%{version}
|
||||
%patch0 -p1
|
||||
find dill -name '*.py' -exec sed -i '1{\@^#!%{_bindir}/env python@d}' {} \;
|
||||
|
||||
%build
|
||||
@@ -71,11 +69,13 @@ find dill -name '*.py' -exec sed -i '1{\@^#!%{_bindir}/env python@d}' {} \;
|
||||
|
||||
%check
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
# Creative; copied from .travis.yml
|
||||
failed=0
|
||||
%{python_expand # Creative; copied from .travis.yml
|
||||
export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||
for test in tests/test_*.py; do
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python $test || failed=1
|
||||
$python $test || failed=1
|
||||
done
|
||||
}
|
||||
exit $failed
|
||||
|
||||
%post
|
||||
|
Reference in New Issue
Block a user