StrEnum
StrEnum copied to clipboard
A Python Enum that inherits from str.
Needed for Python 3.12
``` ______________________________ Black format check ______________________________ --- /data/builds/oi-userland/components/python/StrEnum/build/amd64-3.9/strenum/__init__.pyi 2023-06-29 21:39:30+00:00 +++ /data/builds/oi-userland/components/python/StrEnum/build/amd64-3.9/strenum/__init__.pyi 2025-01-31 10:38:02.119574+00:00 @@ -1,10 +1,15 @@ import enum from typing import Union, Sequence, Mapping, Any class StrEnum(str, enum.Enum):...
The sdist package at PyPI is missing tests. Please add tests to sdist to make downstream testing easier. Thank you.
The `pytest-runner` is deprecated (see the [deprecation notice](https://pypi.org/project/pytest-runner/)) and so `StrEnum` should be updated to do not depend on it.
Changes to syntax in python-3.12.9 breaks versioneer 0.18 static file: >>> py3-strenum: Unpacking /var/cache/distfiles/StrEnum-0.4.15.tar.gz... /home/builder/aports/JamBox/py3-strenum/src/StrEnum-0.4.15/versioneer.py:421: SyntaxWarning: invalid escape sequence '\s' LONG_VERSION_PY['git'] = ''' Traceback (most recent call last): File "/home/builder/aports/JamBox/py3-strenum/src/StrEnum-0.4.15/setup.py",...