15
0
forked from pool/python-atom
Files
python-atom/python-atom.changes
Dirk Mueller aadb3ec20a Accepting request 936060 from home:glaubitz:branches:devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/936060
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-atom?expand=0&rev=11
2021-12-06 17:28:07 +00:00

73 lines
3.7 KiB
Plaintext

-------------------------------------------------------------------
Mon Dec 6 15:03:50 UTC 2021 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- 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
* add and distribute type hints PR #122 #132
This allows static type checkers to resolve the values behind a member.
* drop official support for Python 3.6 and add support for Python 3.10
- Stop building on Python 3.6 which is no longer supported
-------------------------------------------------------------------
Tue Jan 5 04:57:37 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.6.0:
* Add support for Python 3.9 and remove deprecated members.
-------------------------------------------------------------------
Thu Aug 27 05:05:29 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
- 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
-------------------------------------------------------------------
Thu May 7 02:46:58 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.5.0:
* drop Python 2 support PR #83
* use cppy to write the c++ extension PR #83
* add c++ implememtation of AtomDict PR #93
* add a Set member PR #93
-------------------------------------------------------------------
Wed Mar 6 12:58:53 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.4.3:
* Remove dependency on future which was slowing down import time
- Switch to github tarball for tests and license
-------------------------------------------------------------------
Tue May 15 15:31:15 UTC 2018 - toddrme2178@gmail.com
- Initial version