forked from pool/python-aenum
- Update to 3.0.0:
* The more esoteric method of creating Enums have been modified or removed
* Member creation has been redone to match Python 3.10's methods.
* enum_property() has been renamed to property() (old name still available,
but deprecated).
* bin() replacement shows negative integers in twos-complement
* call __init_subclass__ after members have been added, and in Pythons < 3.6
* call __set_name__ in Pythons < 3.6
* do not convert/disallow private names
* add iteration/len support to NamedConstant
* add support to Constant to retrieve members by value
* add pickle/deepcopy support to Constant
* add support for Constant to use other Constant values
* AutoNumber and auto() now work together
- Update URL now that bitbucket is dead.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aenum?expand=0&rev=12
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-aenum
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LLC
|
||||
# Copyright (c) 2021 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,11 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-aenum
|
||||
Version: 2.2.3
|
||||
Version: 3.0.0
|
||||
Release: 0
|
||||
Summary: Advanced Enumerations, NamedTuples, and NamedConstants
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://bitbucket.org/stoneleaf/aenum
|
||||
URL: https://github.com/ethanfurman/aenum
|
||||
Source: https://files.pythonhosted.org/packages/source/a/aenum/aenum-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
@@ -56,7 +55,6 @@ A NamedConstant is a class whose members cannot be rebound; it lacks
|
||||
all other Enum capabilities, however; consequently, it can have
|
||||
duplicate values.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n aenum-%{version}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user