python3-strenum: add recipe
PATCH 1/1 python3-strenum: add recipe
StrEnum is a Python enum.Enum that inherits from str to complement enum.IntEnum in the standard library
--- .../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
meta-python/recipes-devtools/python/python3-strenum_0.4.15.bb new file +12 -0
@@ -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
Signature · 1 line
2.25.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'? |
Quoted 39 lines · Alper Ak
StrEnum is a Python enum.Enum that inherits from str to complement enum.IntEnum in the standard library
Signed-off-by alperak <[email protected]>--- .../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.bbmeta-python/recipes-devtools/python/python3-strenum_0.4.15.bb new file +12
-1@@ -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: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-