From 182c86997587f02f0dff7babe32383c8136e203bd72cc2fa1f594e83b9f1ea10 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 1 Mar 2023 13:57:06 +0000 Subject: [PATCH] - update to 0.9.0: * fix the generation of Subclass from type annotations PR #193 * move getstate and setstate implementation to C and allow to customize the condition under which a member value is pickled. PR #182 * Customization is used to only pickle member value whose state can be restored (for example Constant is not pickled). Whether a member is pickled can be customized using a method prefixed with ``_getstate_`` on an Atom subclass. * use the Typed member when a type annotation resolve to a single type whose metaclass does not implement a custom ``__instancecheck__`` PR #185 * generate Tuple member for tuple[] annotations. The content of the tuple is typed check only if it is a 1-tuple or variable-length tuple. PR #184 * fix the resolution order of members in the presence of multiple inheritance with a common base class PR * Due to the above changes, adding a member after the class definition requires more work than before. As a consequence a new helper function ``add_member`` has been added. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-atom?expand=0&rev=14 --- atom-0.8.2.tar.gz | 3 --- atom-0.9.0.tar.gz | 3 +++ python-atom.changes | 26 ++++++++++++++++++++++++++ python-atom.spec | 4 ++-- 4 files changed, 31 insertions(+), 5 deletions(-) delete mode 100644 atom-0.8.2.tar.gz create mode 100644 atom-0.9.0.tar.gz diff --git a/atom-0.8.2.tar.gz b/atom-0.8.2.tar.gz deleted file mode 100644 index 7d3b308..0000000 --- a/atom-0.8.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3155b7a0a286cb5c2bff2929fc2341d071dc9169b0d0ff1f15450ddd57d24c57 -size 154478 diff --git a/atom-0.9.0.tar.gz b/atom-0.9.0.tar.gz new file mode 100644 index 0000000..0310d95 --- /dev/null +++ b/atom-0.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eccc1ab0cc1c6d1ed5b6ecd1e768f8b8727447605bd009a2a0b49b4ee7eb963d +size 161043 diff --git a/python-atom.changes b/python-atom.changes index 4f5d2e2..1985742 100644 --- a/python-atom.changes +++ b/python-atom.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Wed Mar 1 13:53:30 UTC 2023 - Dirk Müller + +- update to 0.9.0: + * fix the generation of Subclass from type annotations PR #193 + * move getstate and setstate implementation to C and allow to + customize the condition under which a member value is + pickled. PR #182 + * Customization is used to only pickle member value whose + state can be restored (for example Constant is not + pickled). Whether a member is pickled can be customized + using a method prefixed with ``_getstate_`` on an Atom + subclass. + * use the Typed member when a type annotation resolve to a + single type whose metaclass does not implement a custom + ``__instancecheck__`` PR #185 + * generate Tuple member for tuple[] annotations. + The content of the tuple is typed check only if it is a + 1-tuple or variable-length tuple. PR #184 + * fix the resolution order of members in the presence of + multiple inheritance with a common base class PR + * Due to the above changes, adding a member after the class + definition requires more work than before. As a + consequence a new helper function ``add_member`` has + been added. + ------------------------------------------------------------------- Thu Dec 15 23:21:26 UTC 2022 - Ben Greiner diff --git a/python-atom.spec b/python-atom.spec index 48a3079..f75d292 100644 --- a/python-atom.spec +++ b/python-atom.spec @@ -1,7 +1,7 @@ # # spec file for package python-atom # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-atom -Version: 0.8.2 +Version: 0.9.0 Release: 0 Summary: Memory efficient Python objects License: BSD-3-Clause