From 462649a76c23d516b8fc09741b828850b2573baf0e0f97a42d9c57c1c62ceed9 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 3 Oct 2022 15:58:21 +0000 Subject: [PATCH 1/3] - 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/package/show/devel:languages:python/python-dill?expand=0&rev=20 --- dill-0.3.4.zip | 3 --- dill-0.3.5.1.tar.gz | 3 +++ python-dill.changes | 15 +++++++++++++++ python-dill.spec | 6 +++--- 4 files changed, 21 insertions(+), 6 deletions(-) delete mode 100644 dill-0.3.4.zip create mode 100644 dill-0.3.5.1.tar.gz diff --git a/dill-0.3.4.zip b/dill-0.3.4.zip deleted file mode 100644 index be1d39a..0000000 --- a/dill-0.3.4.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9f9734205146b2b353ab3fec9af0070237b6ddae78452af83d2fca84d739e675 -size 186823 diff --git a/dill-0.3.5.1.tar.gz b/dill-0.3.5.1.tar.gz new file mode 100644 index 0000000..bb96a90 --- /dev/null +++ b/dill-0.3.5.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d75e41f3eff1eee599d738e76ba8f4ad98ea229db8b085318aa2b3333a208c86 +size 167265 diff --git a/python-dill.changes b/python-dill.changes index 1e175fa..ed1370b 100644 --- a/python-dill.changes +++ b/python-dill.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Mon Oct 3 15:54:56 UTC 2022 - Dirk Müller + +- 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 diff --git a/python-dill.spec b/python-dill.spec index f89ec91..8aec78c 100644 --- a/python-dill.spec +++ b/python-dill.spec @@ -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 @@ -18,13 +18,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-dill -Version: 0.3.4 +Version: 0.3.5.1 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://files.pythonhosted.org/packages/source/d/dill/dill-%{version}.tar.gz BuildRequires: %{python_module objgraph >= 1.7.2} BuildRequires: %{python_module setuptools} BuildRequires: fdupes From 84efe7951db46bf1997f039f136bff4c8f380c9c3a349c55b5c50069683c7324 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Thu, 17 Nov 2022 13:11:22 +0000 Subject: [PATCH 2/3] - 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 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=21 --- dill-0.3.5.1.tar.gz | 3 --- dill-0.3.6.tar.gz | 3 +++ python-dill.changes | 58 +++++++++++++++++++++++++++++++++++++++++++++ python-dill.spec | 23 +++++++----------- 4 files changed, 70 insertions(+), 17 deletions(-) delete mode 100644 dill-0.3.5.1.tar.gz create mode 100644 dill-0.3.6.tar.gz diff --git a/dill-0.3.5.1.tar.gz b/dill-0.3.5.1.tar.gz deleted file mode 100644 index bb96a90..0000000 --- a/dill-0.3.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d75e41f3eff1eee599d738e76ba8f4ad98ea229db8b085318aa2b3333a208c86 -size 167265 diff --git a/dill-0.3.6.tar.gz b/dill-0.3.6.tar.gz new file mode 100644 index 0000000..cd20c71 --- /dev/null +++ b/dill-0.3.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e5db55f3687856d8fbdab002ed78544e1c4559a130302693d839dfe8f93f2373 +size 179026 diff --git a/python-dill.changes b/python-dill.changes index ed1370b..4260ac3 100644 --- a/python-dill.changes +++ b/python-dill.changes @@ -1,3 +1,61 @@ +------------------------------------------------------------------- +Thu Nov 17 13:02:13 UTC 2022 - Daniel Garcia + +- 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 diff --git a/python-dill.spec b/python-dill.spec index 8aec78c..f60b897 100644 --- a/python-dill.spec +++ b/python-dill.spec @@ -16,15 +16,14 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-dill -Version: 0.3.5.1 +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}.tar.gz +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-%{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-%{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 From a5fc18d8f68dff41ccdce8922f803b9da11c089eff69b01d2e4b727efba8e90f Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Mon, 21 Nov 2022 06:58:50 +0000 Subject: [PATCH 3/3] - Update the source from github and use the correct folder for setup and tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=22 --- dill-0.3.6.tar.gz | 4 ++-- python-dill.changes | 5 +++++ python-dill.spec | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/dill-0.3.6.tar.gz b/dill-0.3.6.tar.gz index cd20c71..1d358ab 100644 --- a/dill-0.3.6.tar.gz +++ b/dill-0.3.6.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e5db55f3687856d8fbdab002ed78544e1c4559a130302693d839dfe8f93f2373 -size 179026 +oid sha256:2c36e875cd04693898fa381e9d6e156a62ee822e48440c28a3af84d7193f6052 +size 171608 diff --git a/python-dill.changes b/python-dill.changes index 4260ac3..e1c7ab3 100644 --- a/python-dill.changes +++ b/python-dill.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Nov 21 06:58:20 UTC 2022 - Daniel Garcia + +- Update the source from github and use the correct folder for setup and tests + ------------------------------------------------------------------- Thu Nov 17 13:02:13 UTC 2022 - Daniel Garcia diff --git a/python-dill.spec b/python-dill.spec index f60b897..864f4b5 100644 --- a/python-dill.spec +++ b/python-dill.spec @@ -52,7 +52,7 @@ objects, `dill` provides the ability to save the state of an interpreter session in a single command. %prep -%autosetup -p1 -n dill-%{version} +%autosetup -p1 -n dill-dill-%{version} find dill -name '*.py' -exec sed -i '1{\@^#!%{_bindir}/env python@d}' {} \; %build @@ -68,7 +68,7 @@ find dill -name '*.py' -exec sed -i '1{\@^#!%{_bindir}/env python@d}' {} \; %check export PYTHONDONTWRITEBYTECODE=1 -export PYTHONPATH=%{_builddir}/dill-%{version} +export PYTHONPATH=%{_builddir}/dill-dill-%{version} # Creative; copied from tox.ini %python_exec dill/tests/__main__.py