SHA256
1
0
forked from pool/python-dill

36 Commits

Author SHA256 Message Date
ca858f90a0 Convert to libalternatives, bsc#1245883 2025-11-03 14:43:13 +01:00
3f8d246434 Accepting request 1274274 from devel:languages:python
- Update to 0.4.0:
  * add initial support for python 3.14
  * fix typo in requirements.txt
  * updated copyright for 2025
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1274274
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dill?expand=0&rev=16
2025-05-05 20:27:16 +00:00
a63b74f242 - Update to 0.4.0:
* add initial support for python 3.14
  * fix typo in requirements.txt
  * updated copyright for 2025
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=34
2025-05-05 02:48:18 +00:00
8074b7c41c Accepting request 1217040 from devel:languages:python
- update to 0.3.9:
  * further skip BufferedRandomType if does not exist
  * remove stray import of dbm in objects
  * Add `UnpicklingError` import for `dill.load_session()` to fix
    #648
  * fix fencepost error when getting source inside decorator in
    interpreter (fixes #603)
  * type check for Integral, bool by value
  * diff USE_NUMPY imports numpy.ma
  * adjust testing to account for frame.f_locals as a proxy in
    3.13
  * better handle import strings of numpy scalars
  * handle a ThreadHandleType
  * more extensive testing for dill.source
  * add formal support for python 3.13

  * test for qualname in get_typedef_type
  * drop formal support for python 3.7
  * define html_theme as rtd workaround
  * update install doc in tests by
  * formal support for 3.12, initial support for 3.13
  * add build to rtfd config by
  * add guard for math.log in Logger record size calculation by
  * updated copyright for 2024 by
  * Bump jinja2 from 3.1.1 to 3.1.3 in /docs by
  * Import submodule properly when there is an attribute of the module with the same name
  * update sphinx to 6.2.1
  * Bump readthedocs-sphinx-search from 0.3.1 to 0.3.2 in /docs by
  * skip BufferedRandomType on pyodide

OBS-URL: https://build.opensuse.org/request/show/1217040
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dill?expand=0&rev=15
2024-10-23 19:09:46 +00:00
e965ced3ab - update to 0.3.9:
* further skip BufferedRandomType if does not exist
  * remove stray import of dbm in objects
  * Add `UnpicklingError` import for `dill.load_session()` to fix
    #648
  * fix fencepost error when getting source inside decorator in
    interpreter (fixes #603)
  * type check for Integral, bool by value
  * diff USE_NUMPY imports numpy.ma
  * adjust testing to account for frame.f_locals as a proxy in
    3.13
  * better handle import strings of numpy scalars
  * handle a ThreadHandleType
  * more extensive testing for dill.source
  * add formal support for python 3.13
  * test for qualname in get_typedef_type
  * drop formal support for python 3.7
  * define html_theme as rtd workaround
  * update install doc in tests by
  * formal support for 3.12, initial support for 3.13
  * add build to rtfd config by
  * add guard for math.log in Logger record size calculation by
  * updated copyright for 2024 by
  * Bump jinja2 from 3.1.1 to 3.1.3 in /docs by
  * Import submodule properly when there is an attribute of the module with the same name
  * update sphinx to 6.2.1
  * Bump readthedocs-sphinx-search from 0.3.1 to 0.3.2 in /docs by
  * skip BufferedRandomType on pyodide

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=32
2024-10-22 13:27:33 +00:00
002517bfee Accepting request 1197807 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1197807
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dill?expand=0&rev=14
2024-09-01 17:21:33 +00:00
af5d3c8b79 Accepting request 1128728 from devel:languages:python
- update to 0.3.7:
  * Fix _is_builtin_module
  * minor changes from PR #554
  * align LICENSE wording with BSD-3-Clause
  * Python 3 Metaclasses [Support ABC and Enums - Part 1]
  * Abstract Base Classes [Support ABC and Enums - Part 2]
  * fix typo
  * Bump requests from 2.27.1 to 2.31.0 in /docs
  * Fixed crashed in _dill._is_builtin_module when a module's
    __file__ is None
  * Bump pygments from 2.11.2 to 2.15.0 in /docs

  * requires python 3.7
  * Support recursive and empty closure cells
  * drop rtfd build to 3.8

OBS-URL: https://build.opensuse.org/request/show/1128728
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dill?expand=0&rev=13
2023-11-26 18:36:56 +00:00
1a788aa897 - update to 0.3.7:
* Fix _is_builtin_module
  * minor changes from PR #554
  * align LICENSE wording with BSD-3-Clause
  * Python 3 Metaclasses [Support ABC and Enums - Part 1]
  * Abstract Base Classes [Support ABC and Enums - Part 2]
  * fix typo
  * Bump requests from 2.27.1 to 2.31.0 in /docs
  * Fixed crashed in _dill._is_builtin_module when a module's
    __file__ is None
  * Bump pygments from 2.11.2 to 2.15.0 in /docs
  * requires python 3.7
  * Support recursive and empty closure cells
  * drop rtfd build to 3.8

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=28
2023-11-25 13:03:27 +00:00
4d2fabd627 Accepting request 1084776 from devel:languages:python
- build for python 3.7+ only

OBS-URL: https://build.opensuse.org/request/show/1084776
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dill?expand=0&rev=12
2023-05-05 13:57:31 +00:00
ec57165640 - build for python 3.7+ only
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=26
2023-05-04 15:21:00 +00:00
a1606833d5 Accepting request 1066285 from devel:languages:python
- restore installation of dbm module on SLE15 and older

OBS-URL: https://build.opensuse.org/request/show/1066285
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dill?expand=0&rev=11
2023-02-17 15:45:20 +00:00
cca916dcc4 - restore installation of dbm module on SLE15 and older
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=24
2023-02-16 23:14:00 +00:00
ec5e694e70 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
2022-11-21 14:29:58 +00:00
a5fc18d8f6 - 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
2022-11-21 06:58:50 +00:00
84efe7951d - 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
2022-11-17 13:11:22 +00:00
462649a76c - 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
2022-10-03 15:58:21 +00:00
6f8d9ec746 Accepting request 941557 from devel:languages:python
- Update to v0.3.4
  * no release notes, works with python310
- Drop 07e24913.patch released upstream

OBS-URL: https://build.opensuse.org/request/show/941557
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dill?expand=0&rev=9
2021-12-25 19:16:28 +00:00
f3558cc035 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
2021-12-20 00:57:34 +00:00
Richard Brown
a92583ce59 Accepting request 875643 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/875643
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dill?expand=0&rev=8
2021-03-05 12:44:51 +00:00
8bad47add7 Accepting request 875552 from home:jayvdb:branches:devel:languages:python
- Add 07e24913.patch to fix s390x and ppc64

OBS-URL: https://build.opensuse.org/request/show/875552
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=17
2021-02-27 17:44:59 +00:00
67c43185fb Accepting request 875256 from home:jayvdb:branches:devel:languages:python
- Update to v0.3.3
  * See https://github.com/uqfoundation/dill/compare/dill-0.3.2...dill-0.3.3
- from v0.3.2
  * See https://github.com/uqfoundation/dill/compare/dill-0.3.1.1...dill-0.3.2

OBS-URL: https://build.opensuse.org/request/show/875256
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=16
2021-02-26 08:22:41 +00:00
e836849e7b Accepting request 853471 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/853471
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dill?expand=0&rev=7
2020-12-12 19:28:52 +00:00
b2823365e5 Accepting request 853442 from home:bnavigator:branches:devel:languages:python
- Require dbm for all python3 flavors in Tumbleweed
  gh#openSUSE/python-rpm-macros#66

OBS-URL: https://build.opensuse.org/request/show/853442
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=14
2020-12-07 05:03:50 +00:00
d10eb74761 Accepting request 768849 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/768849
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dill?expand=0&rev=6
2020-02-03 10:12:07 +00:00
Todd R
52f926b7ef Accepting request 768848 from home:TheBlackCat:branches:devel:languages:python:numeric
- version update to 0.3.1.1
  * Add support for pickling MappingProxyType on Python3
  * Fix GetSetDescriptorType unpickling error in test_selected.py
  * add python 3.x keywords to dump and load
  * add save_socket method for socket objects
  * add support for pickling MappingProxyType
  * cleanup of Pickler,Unpickler; move dump to Pickler.dump
  * don't use multiple inheritance in Pickler,Unpickler
  * enabled to pickle __kwdefaults__ property
  * fix pickling keyword only arguments
  * fix typo in readline error message (#327)
  * more handling of 3.8 SyntaxWarnings
  * rollback register(SocketType) due to multiprocess test_pickling failure
  * unified handling of MappingProxyType and DictProxyType

OBS-URL: https://build.opensuse.org/request/show/768848
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=12
2020-01-30 17:23:51 +00:00
056e536437 Accepting request 718783 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/718783
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dill?expand=0&rev=5
2019-07-31 12:15:09 +00:00
Tomáš Chvátal
27f8d8ba29 Accepting request 718778 from home:pgajdos
- version update to 0.3.0
  * no upstream changelog

OBS-URL: https://build.opensuse.org/request/show/718778
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=10
2019-07-26 09:13:56 +00:00
eb013f9ef6 Accepting request 685831 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/685831
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dill?expand=0&rev=4
2019-03-19 08:59:05 +00:00
Tomáš Chvátal
13d3140184 Accepting request 685598 from home:jengelh:branches:devel:languages:python
- Use noun phrase in summary.
- Trim description a bit, for size.

OBS-URL: https://build.opensuse.org/request/show/685598
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=8
2019-03-17 15:30:51 +00:00
178e1b1a53 Accepting request 682837 from devel:languages:python
- Update to 0.2.9:
  * Various test/flake updates

OBS-URL: https://build.opensuse.org/request/show/682837
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dill?expand=0&rev=3
2019-03-12 08:53:25 +00:00
Tomáš Chvátal
5d52168274 - Update to 0.2.9:
* Various test/flake updates

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=6
2019-03-08 13:03:30 +00:00
7e50995918 Accepting request 654013 from devel:languages:python
Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/654013
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dill?expand=0&rev=2
2018-12-13 18:42:52 +00:00
0ca589a7c3 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=4
2018-12-04 13:23:31 +00:00
2536490c0b Accepting request 603782 from devel:languages:python
More flexible saving of python objects

OBS-URL: https://build.opensuse.org/request/show/603782
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dill?expand=0&rev=1
2018-05-15 08:08:22 +00:00
Todd R
4da2200727 Accepting request 603771 from home:TheBlackCat:branches:devel:languages:python
- Use %license tag

OBS-URL: https://build.opensuse.org/request/show/603771
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=2
2018-05-03 16:08:06 +00:00
Todd R
753e6de726 Accepting request 603471 from devel:languages:python:misc
More flexible saving of python objects

OBS-URL: https://build.opensuse.org/request/show/603471
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dill?expand=0&rev=1
2018-05-03 06:07:24 +00:00
5 changed files with 82 additions and 27 deletions

View File

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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3467a8cb47ca3c18daf6668763180e5e25f0534df54e60900035b47580671ddb
size 177281

BIN
dill-0.4.0.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,20 +1,63 @@
-------------------------------------------------------------------
Tue Aug 19 14:30:27 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Still use update-alternatives on SLE-15
-------------------------------------------------------------------
Thu Jul 10 15:29:34 UTC 2025 - Dirk Müller <dmueller@suse.com>
- do not depend on alts for sle15
-------------------------------------------------------------------
Tue Jul 8 13:59:14 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Mon May 5 02:47:52 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.4.0:
* add initial support for python 3.14
* fix typo in requirements.txt
* updated copyright for 2025
- Switch to pyproject macros.
-------------------------------------------------------------------
Tue Oct 22 13:27:09 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 0.3.9:
* further skip BufferedRandomType if does not exist
* remove stray import of dbm in objects
* Add `UnpicklingError` import for `dill.load_session()` to fix
#648
* fix fencepost error when getting source inside decorator in
interpreter (fixes #603)
* type check for Integral, bool by value
* diff USE_NUMPY imports numpy.ma
* adjust testing to account for frame.f_locals as a proxy in
3.13
* better handle import strings of numpy scalars
* handle a ThreadHandleType
* more extensive testing for dill.source
* add formal support for python 3.13
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 29 14:56:31 UTC 2024 - Frantisek Simorda <frantisek.simorda@suse.com> Thu Aug 29 14:56:31 UTC 2024 - Frantisek Simorda <frantisek.simorda@suse.com>
- update to 0.3.8: - update to 0.3.8:
* test for qualname in get_typedef_type * test for qualname in get_typedef_type
* drop formal support for python 3.7 * drop formal support for python 3.7
* define html_theme as rtd workaround * define html_theme as rtd workaround
* update install doc in tests by * update install doc in tests by
* formal support for 3.12, initial support for 3.13 * formal support for 3.12, initial support for 3.13
* add build to rtfd config by * add build to rtfd config by
* add guard for math.log in Logger record size calculation by * add guard for math.log in Logger record size calculation by
* updated copyright for 2024 by * updated copyright for 2024 by
* Bump jinja2 from 3.1.1 to 3.1.3 in /docs by * Bump jinja2 from 3.1.1 to 3.1.3 in /docs by
* Import submodule properly when there is an attribute of the module with the same name * Import submodule properly when there is an attribute of the module with the same name
* update sphinx to 6.2.1 * update sphinx to 6.2.1
* Bump readthedocs-sphinx-search from 0.3.1 to 0.3.2 in /docs by * Bump readthedocs-sphinx-search from 0.3.1 to 0.3.2 in /docs by
* skip BufferedRandomType on pyodide * skip BufferedRandomType on pyodide
------------------------------------------------------------------- -------------------------------------------------------------------

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-dill # spec file for package python-dill
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,25 +16,36 @@
# #
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-dill Name: python-dill
Version: 0.3.8 Version: 0.4.0
Release: 0 Release: 0
Summary: Module to serialize all of Python Summary: Module to serialize all of Python
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/uqfoundation/dill URL: https://github.com/uqfoundation/dill
Source: https://github.com/uqfoundation/dill/archive/refs/tags/%{version}.tar.gz#/dill-%{version}.tar.gz Source: https://github.com/uqfoundation/dill/archive/refs/tags/%{version}.tar.gz#/dill-%{version}.tar.gz
BuildRequires: %{python_module dbm} BuildRequires: %{python_module dbm}
BuildRequires: %{python_module devel >= 3.7} BuildRequires: %{python_module devel >= 3.7}
BuildRequires: %{python_module objgraph >= 1.7.2} BuildRequires: %{python_module objgraph >= 1.7.2}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: unzip BuildRequires: unzip
Recommends: python-objgraph >= 1.7.2
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun): update-alternatives Requires(postun): update-alternatives
Recommends: python-objgraph >= 1.7.2 %endif
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -54,16 +65,17 @@ session in a single command.
find dill -name '*.py' -exec sed -i '1{\@^#!%{_bindir}/env python@d}' {} \; find dill -name '*.py' -exec sed -i '1{\@^#!%{_bindir}/env python@d}' {} \;
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand rm -r %{buildroot}%{$python_sitelib}/dill/tests %python_expand rm -r %{buildroot}%{$python_sitelib}/dill/tests
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/undill %python_clone -a %{buildroot}%{_bindir}/undill
%python_clone -a %{buildroot}%{_bindir}/get_gprof %python_clone -a %{buildroot}%{_bindir}/get_gprof
%python_clone -a %{buildroot}%{_bindir}/get_objgraph %python_clone -a %{buildroot}%{_bindir}/get_objgraph
%python_group_libalternatives undill get_gprof get_objgraph
%check %check
export PYTHONDONTWRITEBYTECODE=1 export PYTHONDONTWRITEBYTECODE=1
@@ -72,11 +84,14 @@ export PYTHONPATH=%{_builddir}/dill-%{version}
%python_exec dill/tests/__main__.py %python_exec dill/tests/__main__.py
%post %post
%{python_install_alternative undill get_objgraph get_gprof} %python_install_alternative undill get_gprof get_objgraph
%postun %postun
%python_uninstall_alternative undill %python_uninstall_alternative undill
%pre
%python_libalternatives_reset_alternative undill
%files %{python_files} %files %{python_files}
%doc README.md %doc README.md
%license LICENSE %license LICENSE
@@ -84,6 +99,6 @@ export PYTHONPATH=%{_builddir}/dill-%{version}
%python_alternative %{_bindir}/get_gprof %python_alternative %{_bindir}/get_gprof
%python_alternative %{_bindir}/get_objgraph %python_alternative %{_bindir}/get_objgraph
%{python_sitelib}/dill %{python_sitelib}/dill
%{python_sitelib}/dill-%{version}*-info %{python_sitelib}/dill-%{version}.dist-info
%changelog %changelog