2019-07-29 17:29:14 +00:00
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Mon Jul 29 14:51:06 UTC 2019 - pgajdos@suse.com
|
|
|
|
|
|
|
|
|
|
- version update to 2.2.1
|
|
|
|
|
2.2.1
|
|
|
|
|
=====
|
|
|
|
|
. allow Enums to be called without a value
|
|
|
|
|
. allow Enum name use while constructing Enum (Python 3.4+ only)
|
|
|
|
|
2.2.0
|
|
|
|
|
=====
|
|
|
|
|
BREAKING CHANGE
|
|
|
|
|
---------------
|
|
|
|
|
. In Python 3+ classes defined inside an Enum no longer become members by
|
|
|
|
|
default; in Python 2 they still become members, but see below.
|
|
|
|
|
For cross-compatibility and full control two decorators are provided:
|
|
|
|
|
- @member --> forces item to become a member
|
|
|
|
|
- @nonmember --> excludes item from becoming a member
|
|
|
|
|
dark = 3
|
|
|
|
|
2.1.4
|
|
|
|
|
=====
|
|
|
|
|
EnumMeta:
|
|
|
|
|
- change __member_new__ to __new_member__ (as the stdlib enum does)
|
|
|
|
|
- assign member name to enum() instances (an Enum helper for defining members)
|
|
|
|
|
- handle empty iterables when using functional API
|
|
|
|
|
- make auto() work with previous enum members
|
|
|
|
|
- keep searching mixins until base class is found
|
|
|
|
|
Enum:
|
|
|
|
|
- fix bug in Flag checks (ensure it is a Flag before checking the name)
|
|
|
|
|
- add multiple mixin support
|
|
|
|
|
- do not allow blank names (functional API)
|
|
|
|
|
- raise TypeError if _missing_* returns wrong type
|
|
|
|
|
- fix __format__ to honor custom __str__
|
|
|
|
|
extend_enum:
|
|
|
|
|
- support stdlib Enums
|
|
|
|
|
- use _generate_next_value_ if value not provided
|
|
|
|
|
general:
|
|
|
|
|
- standardize exception formatting
|
|
|
|
|
- use getfullargspec() in Python 3 (avoids deprecation warnings)
|
|
|
|
|
|
2018-12-04 13:12:36 +00:00
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Tue Dec 4 12:45:29 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
|
|
|
|
|
|
|
|
|
- Remove superfluous devel dependency for noarch package
|
|
|
|
|
|
2018-05-30 20:04:03 +00:00
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Wed May 23 19:09:16 UTC 2018 - toddrme2178@gmail.com
|
|
|
|
|
|
|
|
|
|
- Update to version 2.1.0
|
|
|
|
|
* support Flags being combined with other data types:
|
|
|
|
|
* add _create_pseudo_member_values_
|
|
|
|
|
* add default __new__ and temporary _init_
|
|
|
|
|
|
|
|
|
|
-------------------------------------------------------------------
|
|
|
|
|
Thu Nov 16 17:44:07 UTC 2017 - toddrme2178@gmail.com
|
|
|
|
|
|
|
|
|
|
- Initial version
|