commit python-aenum for openSUSE:Factory
Hello community, here is the log from the commit of package python-aenum for openSUSE:Factory checked in at 2019-12-12 23:17:57 Comparing /work/SRC/openSUSE:Factory/python-aenum (Old) and /work/SRC/openSUSE:Factory/.python-aenum.new.4691 (New) Package is "python-aenum" Thu Dec 12 23:17:57 2019 rev:4 rq:755836 version:2.2.3 Changes: --- /work/SRC/openSUSE:Factory/python-aenum/python-aenum.changes 2019-07-30 12:39:02.866937105 +0200 +++ /work/SRC/openSUSE:Factory/.python-aenum.new.4691/python-aenum.changes 2019-12-12 23:18:03.934214008 +0100 @@ -1,0 +2,6 @@ +Wed Dec 11 11:56:29 UTC 2019 - Tomáš Chvátal + +- Update to 2.2.3: + * Various minor fixes + +--- Old: aenum-2.2.1.tar.gz New: aenum-2.2.3.tar.gz Other differences: -- ++ python-aenum.spec ++ --- /var/tmp/diff_new_pack.IjvYEy/_old 2019-12-12 23:18:05.342213882 +0100 +++ /var/tmp/diff_new_pack.IjvYEy/_new 2019-12-12 23:18:05.354213880 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-aenum # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,12 +18,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-aenum -Version:2.2.1 +Version:2.2.3 Release:0 Summary:Advanced Enumerations, NamedTuples, and NamedConstants License:BSD-3-Clause Group: Development/Languages/Python -Url:https://bitbucket.org/stoneleaf/aenum +URL:https://bitbucket.org/stoneleaf/aenum Source: https://files.pythonhosted.org/packages/source/a/aenum/aenum-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes ++ aenum-2.2.1.tar.gz -> aenum-2.2.3.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aenum-2.2.1/PKG-INFO new/aenum-2.2.3/PKG-INFO --- old/aenum-2.2.1/PKG-INFO2019-07-24 23:22:43.0 +0200 +++ new/aenum-2.2.3/PKG-INFO2019-11-10 02:43:09.0 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: aenum -Version: 2.2.1 +Version: 2.2.3 Summary: Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants Home-page: https://bitbucket.org/stoneleaf/aenum Author: Ethan Furman @@ -46,6 +46,9 @@ - enum: helper class for creating members with keywords +- enum_property: property to enable enum members to have same named attributes + (e.g. `name` and `value`) + - export: helper to insert Enum members into a namespace (usually globals()) - extend_enum: add new members to enumerations after creation diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aenum-2.2.1/aenum/CHANGES new/aenum-2.2.3/aenum/CHANGES --- old/aenum-2.2.1/aenum/CHANGES 2019-07-24 23:22:37.0 +0200 +++ new/aenum-2.2.3/aenum/CHANGES 2019-11-10 02:43:02.0 +0100 @@ -1,3 +1,48 @@ +2.2.3 += + +use member type's methods __str__, __repr__, __format__, and +__reduce_ex__ if directly assigned in Enum class body; i.e.: + +--> class Color(str, Enum): +... red = 'red' +... green = 'green' +... blue = 'blue' +... __str__ = str.__str__ + +--> print(repr(Color.green)) + + +--> print(Color.green) +green + + +2.2.2 += + +replace _RouteClassAttributeToGetattr with enum_property (it is still +available as an alias) + +support constant() and auto() being used together: + +--> class Fruit(Flag): +..._order_ = 'apple banana lemon orange' +...apple = auto() +...banana = auto() +...lemon = auto() +...orange = auto() +...CitrusTypes = constant(lemon | orange) + +--> list(Fruit) +[Fruit.apple, Fruit.banana, Fruit.lemon, Fruit.orange] + +--> list(Fruit.CitrusTypes) +[Fruit.orange, Fruit.lemon] + +--> Fruit.orange in Fruit.CitrusTypes +True + + 2.2.1 = @@ -19,14 +64,14 @@ allow Enum name use while constructing Enum (Python 3.4+ only) -class Color(Enum): -_order_ = 'BLACK WHITE' -BLACK = Color('black', '#000') -WHITE = Color('white', '#fff') - -def __init__(self, label, hex): -self.label = label -self.hex = hex +--> class Color(Enum): +... _order_ = 'BLACK WHITE' +... BLACK = Color('black', '#000') +... WHITE = Color('white'
commit python-aenum for openSUSE:Factory
Hello community, here is the log from the commit of package python-aenum for openSUSE:Factory checked in at 2019-07-30 12:38:51 Comparing /work/SRC/openSUSE:Factory/python-aenum (Old) and /work/SRC/openSUSE:Factory/.python-aenum.new.4126 (New) Package is "python-aenum" Tue Jul 30 12:38:51 2019 rev:3 rq:719690 version:2.2.1 Changes: --- /work/SRC/openSUSE:Factory/python-aenum/python-aenum.changes 2018-12-12 17:24:39.559168638 +0100 +++ /work/SRC/openSUSE:Factory/.python-aenum.new.4126/python-aenum.changes 2019-07-30 12:39:02.866937105 +0200 @@ -1,0 +2,39 @@ +Mon Jul 29 14:51:06 UTC 2019 - pgaj...@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) + +--- Old: aenum-2.1.2.tar.gz New: aenum-2.2.1.tar.gz Other differences: -- ++ python-aenum.spec ++ --- /var/tmp/diff_new_pack.PsCmsL/_old 2019-07-30 12:39:03.878936974 +0200 +++ /var/tmp/diff_new_pack.PsCmsL/_new 2019-07-30 12:39:03.878936974 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-aenum # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-aenum -Version:2.1.2 +Version:2.2.1 Release:0 Summary:Advanced Enumerations, NamedTuples, and NamedConstants License:BSD-3-Clause ++ aenum-2.1.2.tar.gz -> aenum-2.2.1.tar.gz ++ 11448 lines of diff (skipped)
commit python-aenum for openSUSE:Factory
Hello community, here is the log from the commit of package python-aenum for openSUSE:Factory checked in at 2018-12-12 17:24:37 Comparing /work/SRC/openSUSE:Factory/python-aenum (Old) and /work/SRC/openSUSE:Factory/.python-aenum.new.28833 (New) Package is "python-aenum" Wed Dec 12 17:24:37 2018 rev:2 rq:653905 version:2.1.2 Changes: --- /work/SRC/openSUSE:Factory/python-aenum/python-aenum.changes 2018-06-02 12:11:45.972830674 +0200 +++ /work/SRC/openSUSE:Factory/.python-aenum.new.28833/python-aenum.changes 2018-12-12 17:24:39.559168638 +0100 @@ -1,0 +2,5 @@ +Tue Dec 4 12:45:29 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +--- Other differences: -- ++ python-aenum.spec ++ --- /var/tmp/diff_new_pack.NFtk71/_old 2018-12-12 17:24:39.995168082 +0100 +++ /var/tmp/diff_new_pack.NFtk71/_new 2018-12-12 17:24:39.995168082 +0100 @@ -12,19 +12,19 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-aenum Version:2.1.2 Release:0 -License:BSD-3-Clause Summary:Advanced Enumerations, NamedTuples, and NamedConstants -Url:https://bitbucket.org/stoneleaf/aenum +License:BSD-3-Clause Group: Development/Languages/Python +Url:https://bitbucket.org/stoneleaf/aenum Source: https://files.pythonhosted.org/packages/source/a/aenum/aenum-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros