15
0
forked from pool/python-aenum
Commit Graph

26 Commits

Author SHA256 Message Date
4cf5b59bc3 Accepting request 1144506 from devel:languages:python
- Add fix-python312-tests.patch to skip failing tests with python 3.12
  gh#ethanfurman/aenum#36

OBS-URL: https://build.opensuse.org/request/show/1144506
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aenum?expand=0&rev=12
2024-02-06 15:35:23 +00:00
211064a19a - Add fix-python312-tests.patch to skip failing tests with python 3.12
gh#ethanfurman/aenum#36

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aenum?expand=0&rev=26
2024-02-06 08:47:28 +00:00
c8dcb81ad0 Accepting request 1134618 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1134618
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aenum?expand=0&rev=11
2023-12-22 21:42:05 +00:00
e6ff27ea8a * remove Python 2.6 code
* add Python 3.12 enhancements
  * split source code into separate files
  * Enum and Flag inherit from stdlib versions
  * support inheriting from empty NamedTuples
  * prevent test_v3.py from being run as main
  * Move Py2/3 specific code to dedicated files

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aenum?expand=0&rev=24
2023-12-15 11:57:44 +00:00
06f55777a6 Accepting request 1133124 from home:pgajdos:python
pmmu version update

OBS-URL: https://build.opensuse.org/request/show/1133124
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aenum?expand=0&rev=23
2023-12-15 11:57:06 +00:00
0ba41495a3 Accepting request 1125419 from devel:languages:python
- add sle15_python_module_pythons for SLE15 build

  * AutoNumber and auto() now work together
  * add _create_pseudo_member_values_

OBS-URL: https://build.opensuse.org/request/show/1125419
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aenum?expand=0&rev=10
2023-11-14 20:42:10 +00:00
26eb09825c - add sle15_python_module_pythons for SLE15 build
* AutoNumber and auto() now work together
  * add _create_pseudo_member_values_

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aenum?expand=0&rev=21
2023-11-13 09:13:46 +00:00
ef15590261 Accepting request 1094127 from devel:languages:python
- update to 3.1.12:
  * no changelog available

OBS-URL: https://build.opensuse.org/request/show/1094127
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aenum?expand=0&rev=9
2023-06-21 20:38:59 +00:00
f3ec5ec42e - update to 3.1.12:
* no changelog available

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aenum?expand=0&rev=19
2023-06-20 16:45:31 +00:00
aea232f895 Accepting request 1059839 from devel:languages:python
- Update to 3.1.11:
  * update MANIFEST file
- 3.1.10
  * improve tests
- 3.1.9
  * fail gracefully for badly written EnumType
- 3.1.8
  * recalculate bits used after all flags created (sometimes needed when a
    custom `__new__` is in place.
- 3.1.7
  * update flag creation to (possibly) add bitwise operator methods to newly
    created flags
  * update extend_enum() to work with 3.11 flags
- 3.1.6
  * Update `dir()` on mixed enums to include mixed data type methods and
    attributes.
  * Rename `enum_property` to `property` to match stdlib.  Recommended usage is
    `aenum.property` (prefix with module name).
  * Remove quadritic creation behavior.
  BREAKING CHANGE BUG FIX that won't affect most people
  Enums with a custom `__new__` that:
  - use the enum machinery to generate the values; AND
  - have keyword arguments set to a default (like `None`)
  will fail to generate a missing value.  To fix: remove the default value and
  instead specify it on the member creation line.
  BREAKING CHANGE
  In Python 3.11 the `str()` of mixed enums will now match its `format()` which
  will be the normal `str()` of the data type -- so for an IntEnum you'll see
  `5` instead of `Perm.R|X`.  This affects IntEnum, StrEnum, and IntFlag.

OBS-URL: https://build.opensuse.org/request/show/1059839
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aenum?expand=0&rev=8
2023-01-20 16:38:45 +00:00
6ed429add0 - Update to 3.1.11:
* update MANIFEST file
- 3.1.10
  * improve tests
- 3.1.9
  * fail gracefully for badly written EnumType
- 3.1.8
  * recalculate bits used after all flags created (sometimes needed when a
    custom `__new__` is in place.
- 3.1.7
  * update flag creation to (possibly) add bitwise operator methods to newly
    created flags
  * update extend_enum() to work with 3.11 flags
- 3.1.6
  * Update `dir()` on mixed enums to include mixed data type methods and
    attributes.
  * Rename `enum_property` to `property` to match stdlib.  Recommended usage is
    `aenum.property` (prefix with module name).
  * Remove quadritic creation behavior.
  BREAKING CHANGE BUG FIX that won't affect most people
  Enums with a custom `__new__` that:
  - use the enum machinery to generate the values; AND
  - have keyword arguments set to a default (like `None`)
  will fail to generate a missing value.  To fix: remove the default value and
  instead specify it on the member creation line.
  BREAKING CHANGE
  In Python 3.11 the `str()` of mixed enums will now match its `format()` which
  will be the normal `str()` of the data type -- so for an IntEnum you'll see
  `5` instead of `Perm.R|X`.  This affects IntEnum, StrEnum, and IntFlag.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aenum?expand=0&rev=17
2023-01-19 17:32:31 +00:00
316ec49ba0 Accepting request 945349 from devel:languages:python
- update to 3.1.5:
  * fix support of `auto()` kwds
  * rename `aenum.property` to `aenum.enum_property`
  * fix `extend_enum()` for unhashable values
  * fix `extend_enum()` for most cases

OBS-URL: https://build.opensuse.org/request/show/945349
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aenum?expand=0&rev=7
2022-01-10 22:53:42 +00:00
cdd46a7899 - update to 3.1.5:
* fix support of `auto()` kwds
  * rename `aenum.property` to `aenum.enum_property`
  * fix `extend_enum()` for unhashable values
  * fix `extend_enum()` for most cases

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aenum?expand=0&rev=16
2022-01-10 14:58:01 +00:00
12429c1ed0 Accepting request 914827 from devel:languages:python
- Convert test script into proper unittest module and then skip
  failing tests (gh#ethanfurman/aenum#12):
  - tempdir_missing.patch
  - skip_failing_testcases.patch
- Update to 3.1.0:
  * redo EnumConstants
  * add `__set_name__` to `constant`
  * add new test; make re strings raw

OBS-URL: https://build.opensuse.org/request/show/914827
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aenum?expand=0&rev=6
2021-08-29 19:33:54 +00:00
32427be49b - Convert test script into proper unittest module and then skip
failing tests (gh#ethanfurman/aenum#12):
  - tempdir_missing.patch
  - skip_failing_testcases.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aenum?expand=0&rev=15
2021-08-28 20:46:15 +00:00
873eb1d0d9 Accepting request 913995 from home:glaubitz:branches:devel:languages:python
- Update to 3.1.0:
  * redo EnumConstants
  * add `__set_name__` to `constant`
  * add new test; make re strings raw

OBS-URL: https://build.opensuse.org/request/show/913995
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aenum?expand=0&rev=14
2021-08-28 17:45:46 +00:00
68b17afe74 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
2021-04-14 08:10:50 +00:00
a2f731a896 - 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
2021-04-13 04:59:00 +00:00
0ee1a7bebc Accepting request 755836 from devel:languages:python
- Update to 2.2.3:
  * Various minor fixes

OBS-URL: https://build.opensuse.org/request/show/755836
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aenum?expand=0&rev=4
2019-12-12 22:17:57 +00:00
Tomáš Chvátal
0f10fbf394 - Update to 2.2.3:
* Various minor fixes

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aenum?expand=0&rev=10
2019-12-11 11:56:49 +00:00
f0a220deba Accepting request 719690 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/719690
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aenum?expand=0&rev=3
2019-07-30 10:38:51 +00:00
Tomáš Chvátal
5e5c830e8e Accepting request 719628 from home:pgajdos
- 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:

OBS-URL: https://build.opensuse.org/request/show/719628
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aenum?expand=0&rev=8
2019-07-29 17:29:14 +00:00
39d5586d2d Accepting request 653905 from devel:languages:python
Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/653905
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aenum?expand=0&rev=2
2018-12-12 16:24:37 +00:00
77cd9c798f Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aenum?expand=0&rev=6
2018-12-04 13:12:36 +00:00
8cc2ce313c Accepting request 613121 from devel:languages:python
Required by python-csvkit.  See request 612101
https://build.opensuse.org/request/show/612101

OBS-URL: https://build.opensuse.org/request/show/613121
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aenum?expand=0&rev=1
2018-06-02 10:11:07 +00:00
Todd R
c12b8f0ec6 Accepting request 613120 from devel:languages:python:misc
Required by python-csvkit.  See request 612101
https://build.opensuse.org/request/show/612101

OBS-URL: https://build.opensuse.org/request/show/613120
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aenum?expand=0&rev=1
2018-05-30 20:04:03 +00:00