diff mbox series

[meta-python] python3-strenum: add recipe

Message ID 20240208054208.39929-1-alperyasinak1@gmail.com
State Accepted
Headers show
Series [meta-python] python3-strenum: add recipe | expand

Commit Message

Alper Ak Feb. 8, 2024, 5:42 a.m. UTC
StrEnum is a Python enum.Enum that inherits from str to complement enum.IntEnum in the standard library

Signed-off-by: alperak <alperyasinak1@gmail.com>
---
 .../python/python3-strenum_0.4.15.bb                 | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-strenum_0.4.15.bb

Comments

Khem Raj Feb. 8, 2024, 7:59 a.m. UTC | #1
fails to build

ERROR: python3-strenum-0.4.15-r0 do_compile:
ExecutionError('/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-strenum/0.4.15/temp/run.do_compile.1048839',
1, None, None)
ERROR: Logfile of failure stored in:
/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-strenum/0.4.15/temp/log.do_compile.1048839
Log data follows:
| DEBUG: Executing shell function do_compile
| * Getting build dependencies for wheel...
| /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-strenum/0.4.15/StrEnum-0.4.15/versioneer.py:421:
SyntaxWarning: invalid escape sequence '\s'
|   LONG_VERSION_PY['git'] = '''
| Traceback (most recent call last):
|   File "/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-strenum/0.4.15/recipe-sysroot-native/usr/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py",
line 353, in <module>
|     main()
|   File "/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-strenum/0.4.15/recipe-sysroot-native/usr/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py",
line 335, in main
|     json_out['return_val'] = hook(**hook_input['kwargs'])
|                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|   File "/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-strenum/0.4.15/recipe-sysroot-native/usr/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py",
line 118, in get_requires_for_build_wheel
|     return hook(config_settings)
|            ^^^^^^^^^^^^^^^^^^^^^
|   File "/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-strenum/0.4.15/recipe-sysroot-native/usr/lib/python3.12/site-packages/setuptools/build_meta.py",
line 325, in get_requires_for_build_wheel
|     return self._get_build_requires(config_settings, requirements=['wheel'])
|            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|   File "/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-strenum/0.4.15/recipe-sysroot-native/usr/lib/python3.12/site-packages/setuptools/build_meta.py",
line 295, in _get_build_requires
|     self.run_setup()
|   File "/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-strenum/0.4.15/recipe-sysroot-native/usr/lib/python3.12/site-packages/setuptools/build_meta.py",
line 480, in run_setup
|     super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
|   File "/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-strenum/0.4.15/recipe-sysroot-native/usr/lib/python3.12/site-packages/setuptools/build_meta.py",
line 311, in run_setup
|     exec(code, locals())
|   File "<string>", line 10, in <module>
|   File "/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-strenum/0.4.15/StrEnum-0.4.15/versioneer.py",
line 1480, in get_version
|     return get_versions()["version"]
|            ^^^^^^^^^^^^^^
|   File "/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-strenum/0.4.15/StrEnum-0.4.15/versioneer.py",
line 1412, in get_versions
|     cfg = get_config_from_root(root)
|           ^^^^^^^^^^^^^^^^^^^^^^^^^^
|   File "/mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/python3-strenum/0.4.15/StrEnum-0.4.15/versioneer.py",
line 342, in get_config_from_root
|     parser = configparser.SafeConfigParser()
|              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| AttributeError: module 'configparser' has no attribute
'SafeConfigParser'. Did you mean: 'RawConfigParser'?
|

On Wed, Feb 7, 2024 at 9:42 PM Alper Ak <alperyasinak1@gmail.com> wrote:
>
> StrEnum is a Python enum.Enum that inherits from str to complement enum.IntEnum in the standard library
>
> Signed-off-by: alperak <alperyasinak1@gmail.com>
> ---
>  .../python/python3-strenum_0.4.15.bb                 | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
>  create mode 100644 meta-python/recipes-devtools/python/python3-strenum_0.4.15.bb
>
> diff --git a/meta-python/recipes-devtools/python/python3-strenum_0.4.15.bb b/meta-python/recipes-devtools/python/python3-strenum_0.4.15.bb
> new file mode 100644
> index 000000000..1d2def79a
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-strenum_0.4.15.bb
> @@ -0,0 +1,12 @@
> +SUMMARY = "An Enum that inherits from str"
> +HOMEPAGE = "https://github.com/irgeek/StrEnum"
> +LICENSE = "MIT"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=ba0eb3de1df70bde0ed48488cfd81269"
> +
> +DEPENDS = "${PYTHON_PN}-pytest-runner-native"
> +
> +SRC_URI[sha256sum] = "878fb5ab705442070e4dd1929bb5e2249511c0bcf2b0eeacf3bcd80875c82eff"
> +
> +PYPI_PACKAGE = "StrEnum"
> +
> +inherit pypi python_setuptools_build_meta
> --
> 2.25.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#108655): https://lists.openembedded.org/g/openembedded-devel/message/108655
> Mute This Topic: https://lists.openembedded.org/mt/104234619/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-strenum_0.4.15.bb b/meta-python/recipes-devtools/python/python3-strenum_0.4.15.bb
new file mode 100644
index 000000000..1d2def79a
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-strenum_0.4.15.bb
@@ -0,0 +1,12 @@ 
+SUMMARY = "An Enum that inherits from str"
+HOMEPAGE = "https://github.com/irgeek/StrEnum"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=ba0eb3de1df70bde0ed48488cfd81269"
+
+DEPENDS = "${PYTHON_PN}-pytest-runner-native"
+
+SRC_URI[sha256sum] = "878fb5ab705442070e4dd1929bb5e2249511c0bcf2b0eeacf3bcd80875c82eff"
+
+PYPI_PACKAGE = "StrEnum"
+
+inherit pypi python_setuptools_build_meta