60dcf6c
Name: python-dill
60dcf6c
Version: 0.3.8
60dcf6c
Release: 1%{?dist}
Sergio Pascual 8b03e6a
Summary: Serialize all of Python
Sergio Pascual 8b03e6a
60dcf6c
License: BSD-3-Clause
Sergio Pascual 8b03e6a
a180ffb
URL: https://github.com/uqfoundation/dill
60dcf6c
Source: %{pypi_source dill}
Sergio Pascual 8b03e6a
Sergio Pascual 8b03e6a
BuildArch: noarch
Sergio Pascual 8b03e6a
Sergio Pascual 8b03e6a
BuildRequires: python3-devel
8944580
# the test script calls 'python', this is easier than patching it
8944580
BuildRequires: python-unversioned-command
Sergio Pascual 8b03e6a
60dcf6c
%global _description %{expand:
60dcf6c
Dill extends Python's pickle module for serializing and de-serializing Python
60dcf6c
objects to the majority of the built-in Python types. Serialization is the
60dcf6c
process of converting an object to a byte stream, and the inverse of which is
60dcf6c
converting a byte stream back to a Python object hierarchy.
60dcf6c
60dcf6c
Dill provides the user the same interface as the pickle module, and also
60dcf6c
includes some additional features. In addition to pickling Python objects, dill
60dcf6c
provides the ability to save the state of an interpreter session in a single
60dcf6c
command. Hence, it would be feasible to save an interpreter session, close the
60dcf6c
interpreter, ship the pickled file to another computer, open a new interpreter,
60dcf6c
unpickle the session and thus continue from the 'saved' state of the original
60dcf6c
interpreter session.
60dcf6c
60dcf6c
Dill can be used to store Python objects to a file, but the primary usage is to
60dcf6c
send Python objects across the network as a byte stream. dill is quite
60dcf6c
flexible, and allows arbitrary user defined classes and functions to be
60dcf6c
serialized. Thus dill is not intended to be secure against erroneously or
60dcf6c
maliciously constructed data. It is left to the user to decide whether the data
60dcf6c
they unpickle is from a trustworthy source.
60dcf6c
60dcf6c
dill is part of pathos, a Python framework for heterogeneous computing.}
60dcf6c
60dcf6c
%description %{_description}
60dcf6c
60dcf6c
60dcf6c
%package -n python3-dill
60dcf6c
Summary:  %{summary}
60dcf6c
60dcf6c
%description -n python3-dill %{_description}
60dcf6c
60dcf6c
60dcf6c
# The graph extra needs objgraph>=1.7.2; python-objgraph is not packaged
60dcf6c
# The profile extra needs gprof2dot>=2022.7.29; python-gprof2dot is not packaged
60dcf6c
%pyproject_extras_subpkg -n python3-dill readline
Sergio Pascual 8b03e6a
Sergio Pascual 8b03e6a
Sergio Pascual 8b03e6a
%prep
60dcf6c
%autosetup -n dill-%{version} -p1
60dcf6c
60dcf6c
60dcf6c
%generate_buildrequires
60dcf6c
%pyproject_buildrequires -x readline
60dcf6c
Sergio Pascual 8b03e6a
Sergio Pascual 8b03e6a
%build
60dcf6c
%pyproject_wheel
60dcf6c
Sergio Pascual 8b03e6a
Sergio Pascual 8b03e6a
%install
60dcf6c
%pyproject_install
60dcf6c
%pyproject_save_files -l dill
60dcf6c
60dcf6c
# We do not want to package these command-line tools, and we lack the necessary
60dcf6c
# dependencies for the corresponding extras anyway.
60dcf6c
rm %{buildroot}%{_bindir}/get_objgraph %{buildroot}%{_bindir}/get_gprof
Sergio Pascual b4884d8
60dcf6c
# Remove shebangs from (installed) non-script sources. The find-then-modify
60dcf6c
# pattern preserves mtimes on sources that did not need to be modified.
60dcf6c
find '%{buildroot}%{python3_sitelib}/dill' -type f -name '*.py' ! -perm /0111 \
60dcf6c
    -exec gawk '/^#!/ { print FILENAME }; { nextfile }' '{}' '+' |
60dcf6c
  xargs -r sed -r -i '1{/^#!/d}'
7079039
60dcf6c
60dcf6c
%check
60dcf6c
%{py3_test_envvars} %{python3} dill/tests/__main__.py
60dcf6c
60dcf6c
60dcf6c
%files -n python3-dill -f %{pyproject_files}
a180ffb
%doc README.md
60dcf6c
%{_bindir}/undill
60dcf6c
Sergio Pascual 8b03e6a
Sergio Pascual 8b03e6a
%changelog
60dcf6c
* Mon Jan 29 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 0.3.8-1
60dcf6c
- Update to 0.3.8 (close RHBZ#2260677)
60dcf6c
- Update License to SPDX
60dcf6c
- Update description from upstream
60dcf6c
- Port to pyproject-rpm-macros
60dcf6c
- Add a metapackage for the readline extra
60dcf6c
- Run the tests
60dcf6c
- Do package the undill command-line tool
60dcf6c
e78ab35
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.7-3
e78ab35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
e78ab35
20f75d3
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.7-2
20f75d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
20f75d3
d62dce9
* Sun Jul 23 2023 Sergio Pascual <sergiopr@fedoraproject.org> - 0.3.7-1
d62dce9
- New upstream source (0.3.7)
d62dce9
029f5f1
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.6-4
029f5f1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
029f5f1
98d3292
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.3.6-3
98d3292
- Rebuilt for Python 3.12
98d3292
4e68530
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.6-2
4e68530
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
4e68530
aae5f0f
* Fri Jan 13 2023 Gwyn Ciesla <gwync@protonmail.com> - 0.3.6-1
aae5f0f
- 0.3.6
aae5f0f
4ef737a
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5.1-4
4ef737a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
4ef737a
8944580
* Fri Jul 08 2022 Adam Williamson <awilliam@redhat.com> - 0.3.5.1-3
8944580
- Backport several patches to fix Python 3.11 issues
8944580
- Backport PR #524 to fix test suite invocation
8944580
- Re-enable test suite, the way upstream runs it in tox
8944580
7d96a13
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.3.5.1-2
7d96a13
- Rebuilt for Python 3.11
7d96a13
a180ffb
* Wed Jun 01 2022 Sergio Pascual <sergiopr@fedoraproject.org> - 0.3.5.1-1
a180ffb
- New upstream source (0.3.5.1)
a180ffb
ac191d5
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-3
ac191d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
ac191d5
f9c11c5
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-2
f9c11c5
- Second attempt - Rebuilt for
f9c11c5
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
f9c11c5
7079039
* Thu Jun 17 2021 Sergio Pascual <sergiopr@fedoraproject.org> - 0.3.4-1
7079039
- New upstream source (0.3.4)
7079039
ec8701f
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.3.3-3
ec8701f
- Rebuilt for Python 3.10
ec8701f
1c512b2
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.3-2
1c512b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1c512b2
a824ecb
* Wed Nov 25 2020 Sergio Pascual <sergiopr@fedoraproject.org> - 0.3.3-1
a824ecb
- New upstream source (0.3.3)
a824ecb
- Upstream compressed with zip
a824ecb
0fcbf4e
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-2
0fcbf4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0fcbf4e
82e7901
* Tue Jun 30 2020 Sergio Pascual <sergiopr@fedoraproject.org> - 0.3.2-1
82e7901
- New upstream source (0.3.2)
82e7901
aa795e5
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3.1.1-4
aa795e5
- Rebuilt for Python 3.9
aa795e5
e0d4e70
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1.1-3
e0d4e70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e0d4e70
6770751
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.1.1-2
6770751
- Rebuilt for Python 3.8.0rc1 (#1748018)
6770751
f2ae6b7
* Wed Oct 02 2019 Sergio Pascual <sergiopr@fedoraproject.org> - 0.3.1.1-1
f2ae6b7
- New upstream source (0.3.1.1)
f2ae6b7
510d23d
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.0-3
510d23d
- Rebuilt for Python 3.8
510d23d
326cd40
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2
326cd40
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
326cd40
78e8399
* Thu Jul 11 2019 Sergio Pascual <sergiopr@fedoraproject.org> - 0.3.0-1
78e8399
- New upstream source (0.3.0)
78e8399
163543a
* Wed Feb 13 2019 Sergio Pascual <sergiopr@fedoraproject.org> - 0.2.9-1
163543a
- New upstream source (0.2.9)
163543a
512f8db
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.8.2-3
512f8db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
512f8db
b90dc1f
* Tue Aug 21 2018 Sergio Pascual <sergiopr@fedoraproject.org> - 0.2.8.2-2
b90dc1f
- Drop python2 subpackage
b90dc1f
0aa0612
* Tue Aug 21 2018 Sergio Pascual <sergiopr@fedoraproject.org> - 0.2.8.2-1
0aa0612
- New upstream source (0.2.8.2)
0aa0612
dfb7096
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7.1-5
dfb7096
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
dfb7096
e67d0f6
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.7.1-4
e67d0f6
- Rebuilt for Python 3.7
e67d0f6
a6f0d1b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7.1-3
a6f0d1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a6f0d1b
Sergio Pascual f9f1d5a
* Mon Sep 11 2017 Sergio Pascual <sergiopr@fedoraproject.org> - 0.2.7.1-2
Sergio Pascual 071690d
- New upstream source (0.2.7.1)
Sergio Pascual f9f1d5a
- And the sources
Sergio Pascual 071690d
946252b
* Tue Aug 08 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.2.6-3
946252b
- Fix %%python_provide invocation
946252b
3911885
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.6-2
3911885
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3911885
Sergio Pascual cec8df4
* Tue May 16 2017 Sergio Pascual <sergiopr@fedoraproject.org> - 0.2.6-1
Sergio Pascual cec8df4
- New upstream source (0.2.6)
Sergio Pascual cec8df4
d9f7f8c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.5-4
d9f7f8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d9f7f8c
2fe325e
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.2.5-3
2fe325e
- Rebuild for Python 3.6
2fe325e
535e6a3
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-2
535e6a3
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
535e6a3
Sergio Pascual 6fbf40c
* Wed Jul 13 2016 Sergio Pascual <sergio.pasra@gmail.com> - 0.2.5-1
Sergio Pascual 6fbf40c
- New upstream source (0.2.5)
Sergio Pascual 6fbf40c
- Updated upstream url
Sergio Pascual 6fbf40c
- Pypi url updated
Sergio Pascual 6fbf40c
e582a00
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.4-2
e582a00
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e582a00
Sergio Pascual b4884d8
* Fri Nov 20 2015 Sergio Pascual <sergio.pasra@gmail.com> - 0.2.4-1
Sergio Pascual b4884d8
- New upstream source (0.2.4)
Sergio Pascual b4884d8
060c851
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-4
060c851
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
060c851
0aa4ece
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-3
0aa4ece
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0aa4ece
Sergio Pascual 8b03e6a
* Fri Sep 12 2014 Sergio Pascual <sergio.pasra@gmail.com> - 0.2.1-2
Sergio Pascual 8b03e6a
- Add license macro
Sergio Pascual 8b03e6a
- Run tests
Sergio Pascual 8b03e6a
- Add numpy build req for tests
Sergio Pascual 8b03e6a
Sergio Pascual 8b03e6a
* Thu Sep 11 2014 Sergio Pascual <sergio.pasra@gmail.com> - 0.2.1-1
Sergio Pascual 8b03e6a
- New upstream (0.2.1)
Sergio Pascual 8b03e6a
Sergio Pascual 8b03e6a
* Fri Dec 13 2013 Sergio Pascual <sergio.pasra@gmail.com> - 0.2-0.1b1
Sergio Pascual 8b03e6a
- Initial specfile
Sergio Pascual 8b03e6a