Revisions of python-atom

buildservice-autocommit accepted request 1142763 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 25)
baserev update by copy to link target
Dirk Mueller's avatar Dirk Mueller (dirkmueller) committed (revision 24)
- update to 0.10.4:
  * allow unions in TypeVar bound PR #207
buildservice-autocommit accepted request 1115791 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 23)
baserev update by copy to link target
Dirk Mueller's avatar Dirk Mueller (dirkmueller) committed (revision 22)
- update to 0.10.3:
  * fix a an issue when using add_member to override an existing
    membe
  * fix a memory leak caused by Dict, Defaultdict and Set members
  * add support for Python 3.12 PR #200
    was called
  * clarify Unicode deprecation warning PR #102
buildservice-autocommit accepted request 1090194 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 21)
baserev update by copy to link target
Dirk Mueller's avatar Dirk Mueller (dirkmueller) committed (revision 20)
- add sle15_python_module_pythons as it requires python >= 3.8
buildservice-autocommit accepted request 1085794 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 19)
baserev update by copy to link target
Dirk Mueller's avatar Dirk Mueller (dirkmueller) committed (revision 18)
- update to 0.10.0:
  * AtomMeta: create the class only once all members have been
    customized
    This allows to use ``__init_subclass__`` since previously the
    ``__atom_members__`` was not set when ``__init_subclass__``
    was called 
  * illustrate the use of ``__init_subclass__`` to customize
    pickling
  * refactor the metaclass to make it easier to reason about
  * add a ``DefaultDict`` member which enforce the value to be a
    dictionary and use a factory for missing keys. The factory
    is set at the member level and a normal dict can be provided
    as value. When possible the factory is deduced from the member
    used for validation.
  * infer the use of ``DefaultDict`` from a
    ``collections.defaultdict`` annotation
buildservice-autocommit accepted request 1079774 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 17)
baserev update by copy to link target
Dirk Mueller's avatar Dirk Mueller (dirkmueller) committed (revision 16)
- update to 0.9.1:
  * fix generation of Value member from union containing
    object/Any PR #198
  * fix setdefault method of atomdict to return the actually
    stored item PR #197
buildservice-autocommit accepted request 1068464 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 15)
baserev update by copy to link target
Dirk Mueller's avatar Dirk Mueller (dirkmueller) committed (revision 14)
- 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.
buildservice-autocommit accepted request 1043284 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 13)
baserev update by copy to link target
Dirk Mueller's avatar Dirk Mueller (dirkmueller) accepted request 1043240 from Benjamin Greiner's avatar Benjamin Greiner (bnavigator) (revision 12)
- Update to 0.8.2
  * fix handling of Union in annotation based class definition PR
    #177
- Release 0.8.1
  * add support for Python 3.11 PR #166
- Release 0.8.0
  * This release introduced a new way to declare atom object based
    on type annotations.
  * emit warnings when a magic method points to an undefined member
    PR #139 #149
  * use isort, black and flake8 to ensure a consistent coding style
    PR #141
  * base the version number on the most recent git tag using
    setuptools-scm PR #141
  * make the setup compatible with PEP 517 and PEP 621 compliant PR
    #141 #162 Pip should be used for development install in place
    of directly calling setup.py
  + fix handling of _SpecialGenericAlias (typing.Sequence, ...)
    when used inside an Instance member PR #151
  * add a ChangeDict TypedDict to help annotate observers PR #133
  * add several keyword argument to the AtomMeta metaclass PR #133
    - enable_weakrefs: allow to have weak references to an Atom
      object without having to add the slot by hand. False by
      default.
    - use_annotations: generate members from type annotations.
      Str-like annotations are not supported but allowed when an
      actual member is provided as default value. True by default.
    - type_containers: in conjunction with use_annotations
      determine to what depth to type the content of a container.
      The default is 1 meaning that list[int] will use List(Int())
      but list[list[int]] will use List(List()).
  * allow specifying which change events are emitted when adding
    static observers PR #155
Dirk Mueller's avatar Dirk Mueller (dirkmueller) accepted request 936060 from John Paul Adrian Glaubitz's avatar John Paul Adrian Glaubitz (glaubitz) (revision 11)
- Update to 0.7.0:
  * allow to use any subscribed type in Typed and Instance. Optional and Union are
    analyzed to extract the tuple of types to validate. The presence of NoneType in
    the tuple will make the member optional. For container types (list, dict, set, etc)
    the content types is not used beyond static type validation. PR #136 #140
    Note however that this usage of Optional and Union breaks static analyzer currently,
    while things deriving from an actual type will work as expected (List[int], list[int],
    Iterable[int])
  * make the factory argument of Typed, Instance and their forwarded version
    keyword only. PR #123
  * add a keyword-only argument to Typed, Instance and their forwarded
    version: ``optional``. When set to False, this will cause those members to
    reject None as a valid value. The default value, None, will resolve to True
    if there is no provided way to build a default value. PR #123 # 131
    This is backward incompatible since previously None was always a valid value.
  * the Instance and Typed variants of the Validate enum have been renamed to
    OptionalInstance, OptionalTyped and new Instance and Typed variant describing
    the validation behavior for the member with optional=False have been added. PR #123
  * consistently use Instance to wrap types passed to containers. PR #123
    For containers, Instance members used for validation are created with
    optional=False by default. This is backward incompatible since None was always
    a valid value previously.
  * add strict argument to FloatRange. PR #124
  * allow to specify the type of ReadOnly and Constant. PR #128
    The validation is done using the Instance validator. The change for ReadOnly
    is backward incompatible since the type or tuple of type is the first argument
    in place of the default value. Specifying the default value by keyword is both
    forward and backward compatible.
  * use python stdlib IntEnum instead of the custom one in atom  PR #122
  * remove the custom atom.IntEnum  PR #122
buildservice-autocommit accepted request 860365 from Steve Kowalik's avatar Steve Kowalik (StevenK) (revision 10)
baserev update by copy to link target
Steve Kowalik's avatar Steve Kowalik (StevenK) committed (revision 9)
- Update to 0.6.0:
  * Add support for Python 3.9 and remove deprecated members.
buildservice-autocommit accepted request 829857 from Steve Kowalik's avatar Steve Kowalik (StevenK) (revision 8)
baserev update by copy to link target
Steve Kowalik's avatar Steve Kowalik (StevenK) committed (revision 7)
- Update to 0.5.2:
  * make comparison used in C safe (fix bug introduced in 0.5.0) PR #107
  * fix bug in using atomlist from C PR #102
  * clarify Unicode deprecation warning PR #102
buildservice-autocommit accepted request 800854 from Steve Kowalik's avatar Steve Kowalik (StevenK) (revision 6)
baserev update by copy to link target
Displaying revisions 1 - 20 of 25
openSUSE Build Service is sponsored by