15
0
forked from pool/python-dill

Accepting request 1037023 from devel:languages:python

- Update the source from github and use the correct folder for setup and tests
- Remove python_module macro definition
- Use sources from github, current release doesn't have tests
- Use autosetup instead of setup
- Update how to run tests
- More specific python_sitelib in %files
- Update to 0.3.6:
  * fix: #480 create_code for 3.11.0a7 and 3.11.0b1
  * fix: #413, fix: #453, drop 2.7 support
  * adjust save_code and _create_code for co_lnotab in PEP626 (#495)
  * Lookup qualname instead of name in Python 3 (#486)
  * Support PyCapsule (#477)
  * Fix `dill._dill` submodule being saved as `GLOBAL "dill._shims" "_dill"`
    (#490)
  * Create a soft_def shim to combine move_to and Getattr (#473)
  * Incidental implementation specific types (#472)
  * Fix bug in pickling MappingProxyType in PyPy 3.7+ (#506)
  * Bring back old method pickling function (#511)
  * protect against sys.modules contents change
  * correct failures and succeeds dicts
  * correct failures for registered
  * unregister SymtableEntryType
  * Add detailed trace mode showing saved object size and visual depth level
    (#471)
  * Kickstart support drop for Python < 3.7 (#499)
  * fix #521: support develop mode
  * Rewrite _create_code() with Structural Pattern Matching (limited to tuples)
    (#496)
  * fix #522: unify README and module doc
  * add some no-indent bullets
  * Fix load_session() and restrict loading a session in a different module
    (#507)
  * update load_module dump_module docs
  * fix dump_module() bugs and rename parameter 'main' to 'module' (#526)
  * A temporary quick fix for dataclass serialization (#500) (#503)
  * fix: #528, test_registered syncs objects w typemap
  * print on fail for test_registered
  * CLibraryLoader on unix in 3.11
  * add logger module to sphinx
  * Move session-related code to new session module (#530)
  * fix: #517 special handling of typing module
  * test special case typing.Any
  * more clearly note cpython bug
  * Temporary quick fix for getsource() on IPython interpreter (fixes #346)
    (#531)
  * Fix pickling errors thrown when saving some Stdlib modules (#529)
  * Fix `pickles()` flagging `__builtins__` as unpickleable due to the `all()`
    function (#538)
  * Use proper SPDX identifier for License (#539)
  * Disable logging propagation, use current stderr as output (#541)
  * move numpy special register to save
  * fix pickling of CLibraryLoaderType
  * Optimize the numpy hook (#542)
  * patch to dump_module as in #535
  * ensure tempfiles are deleted by default
- update to 0.3.5.1:
  * requires python 3.7 
  * skip tests with broken stftime
  * resolve symlinks when determining if module is builtin
  * support python 3.10
  * adjust for python 3.11
  * Support recursive and empty closure cells 
  * use CAN_NULL for 3.11a7 and above
  * better check for travis in tests
  * parse init file for dist meta
  * drop rtfd build to 3.8

OBS-URL: https://build.opensuse.org/request/show/1037023
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dill?expand=0&rev=10
This commit is contained in:
2022-11-21 14:29:58 +00:00
committed by Git OBS Bridge
4 changed files with 91 additions and 18 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9f9734205146b2b353ab3fec9af0070237b6ddae78452af83d2fca84d739e675
size 186823

3
dill-0.3.6.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2c36e875cd04693898fa381e9d6e156a62ee822e48440c28a3af84d7193f6052
size 171608

View File

@@ -1,3 +1,81 @@
-------------------------------------------------------------------
Mon Nov 21 06:58:20 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
- Update the source from github and use the correct folder for setup and tests
-------------------------------------------------------------------
Thu Nov 17 13:02:13 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
- Remove python_module macro definition
- Use sources from github, current release doesn't have tests
- Use autosetup instead of setup
- Update how to run tests
- More specific python_sitelib in %files
- Update to 0.3.6:
* fix: #480 create_code for 3.11.0a7 and 3.11.0b1
* fix: #413, fix: #453, drop 2.7 support
* adjust save_code and _create_code for co_lnotab in PEP626 (#495)
* Lookup qualname instead of name in Python 3 (#486)
* Support PyCapsule (#477)
* Fix `dill._dill` submodule being saved as `GLOBAL "dill._shims" "_dill"`
(#490)
* Create a soft_def shim to combine move_to and Getattr (#473)
* Incidental implementation specific types (#472)
* Fix bug in pickling MappingProxyType in PyPy 3.7+ (#506)
* Bring back old method pickling function (#511)
* protect against sys.modules contents change
* correct failures and succeeds dicts
* correct failures for registered
* unregister SymtableEntryType
* Add detailed trace mode showing saved object size and visual depth level
(#471)
* Kickstart support drop for Python < 3.7 (#499)
* fix #521: support develop mode
* Rewrite _create_code() with Structural Pattern Matching (limited to tuples)
(#496)
* fix #522: unify README and module doc
* add some no-indent bullets
* Fix load_session() and restrict loading a session in a different module
(#507)
* update load_module dump_module docs
* fix dump_module() bugs and rename parameter 'main' to 'module' (#526)
* A temporary quick fix for dataclass serialization (#500) (#503)
* fix: #528, test_registered syncs objects w typemap
* print on fail for test_registered
* CLibraryLoader on unix in 3.11
* add logger module to sphinx
* Move session-related code to new session module (#530)
* fix: #517 special handling of typing module
* test special case typing.Any
* more clearly note cpython bug
* Temporary quick fix for getsource() on IPython interpreter (fixes #346)
(#531)
* Fix pickling errors thrown when saving some Stdlib modules (#529)
* Fix `pickles()` flagging `__builtins__` as unpickleable due to the `all()`
function (#538)
* Use proper SPDX identifier for License (#539)
* Disable logging propagation, use current stderr as output (#541)
* move numpy special register to save
* fix pickling of CLibraryLoaderType
* Optimize the numpy hook (#542)
* patch to dump_module as in #535
* ensure tempfiles are deleted by default
-------------------------------------------------------------------
Mon Oct 3 15:54:56 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 0.3.5.1:
* requires python 3.7
* skip tests with broken stftime
* resolve symlinks when determining if module is builtin
* support python 3.10
* adjust for python 3.11
* Support recursive and empty closure cells
* use CAN_NULL for 3.11a7 and above
* better check for travis in tests
* parse init file for dist meta
* drop rtfd build to 3.8
-------------------------------------------------------------------
Sun Dec 19 17:30:19 UTC 2021 - Ben Greiner <code@bnavigator.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-dill
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,15 +16,14 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-dill
Version: 0.3.4
Version: 0.3.6
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
Source: https://github.com/uqfoundation/dill/archive/dill-%{version}.tar.gz#/dill-%{version}.tar.gz
BuildRequires: %{python_module objgraph >= 1.7.2}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@@ -53,7 +52,7 @@ objects, `dill` provides the ability to save the state of an interpreter
session in a single command.
%prep
%setup -q -n dill-%{version}
%autosetup -p1 -n dill-dill-%{version}
find dill -name '*.py' -exec sed -i '1{\@^#!%{_bindir}/env python@d}' {} \;
%build
@@ -69,14 +68,9 @@ find dill -name '*.py' -exec sed -i '1{\@^#!%{_bindir}/env python@d}' {} \;
%check
export PYTHONDONTWRITEBYTECODE=1
failed=0
%{python_expand # Creative; copied from .travis.yml
export PYTHONPATH=%{buildroot}%{$python_sitelib}
for test in tests/test_*.py; do
$python $test || failed=1
done
}
exit $failed
export PYTHONPATH=%{_builddir}/dill-dill-%{version}
# Creative; copied from tox.ini
%python_exec dill/tests/__main__.py
%post
%{python_install_alternative undill get_objgraph}
@@ -85,10 +79,11 @@ exit $failed
%python_uninstall_alternative undill
%files %{python_files}
%doc README README.md
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/undill
%python_alternative %{_bindir}/get_objgraph
%{python_sitelib}/*
%{python_sitelib}/dill
%{python_sitelib}/dill-%{version}*-info
%changelog