15
0
forked from pool/python-aenum

Accepting request 884804 from devel:languages:python

- 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/request/show/884804
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aenum?expand=0&rev=5
This commit is contained in:
2021-04-14 08:10:50 +00:00
committed by Git OBS Bridge
4 changed files with 25 additions and 8 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a4334cabf47c167d44ab5a6198837b80deec5d5bad1b5cf70c966c3a330260e8
size 106574

3
aenum-3.0.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:17cd8cfed1ee4b617198c9fabbabd70ebd8f01e54ac29cd6c3a92df14bd86656
size 118529

View File

@@ -1,3 +1,22 @@
-------------------------------------------------------------------
Tue Apr 13 04:55:38 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
- 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.
-------------------------------------------------------------------
Wed Dec 11 11:56:29 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -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}