deleted file mode 100644
@@ -1,36 +0,0 @@
-From 0beacf96923bbb2dd1939a9c59398a38ce7a11b1 Mon Sep 17 00:00:00 2001
-From: Hongxu Jia <hongxu.jia@windriver.com>
-Date: Thu, 17 Nov 2022 17:04:54 -0800
-Subject: [PATCH] Use ConfigParser instead of SafeConfigParser
-
-The SafeConfigParser class will be renamed to ConfigParser in Python
-3.12 [1]. This alias will be removed in future versions.So we can use
-ConfigParser directly instead.
-
-[1] https://github.com/python/cpython/issues/89336
-
-Upstream-Status: Submitted [https://github.com/dgasmith/opt_einsum/pull/208]
-Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
----
- versioneer.py | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/versioneer.py b/versioneer.py
-index d3db643..6d732af 100644
---- a/versioneer.py
-+++ b/versioneer.py
-@@ -339,9 +339,9 @@ def get_config_from_root(root):
- # configparser.NoOptionError (if it lacks "VCS="). See the docstring at
- # the top of versioneer.py for instructions on writing your setup.cfg .
- setup_cfg = os.path.join(root, "setup.cfg")
-- parser = configparser.SafeConfigParser()
-+ parser = configparser.ConfigParser()
- with open(setup_cfg, "r") as f:
-- parser.readfp(f)
-+ parser.read_file(f)
- VCS = parser.get("versioneer", "VCS") # mandatory
-
- def get(parser, name):
-2.37.1
-
similarity index 35%
rename from recipes-devtools/python/python3-opt-einsum_3.3.0.bb
rename to recipes-devtools/python/python3-opt-einsum_3.4.0.bb
@@ -4,19 +4,17 @@ SECTION = "devel/python"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=5ab423c88cf3e69553decf93419f53ac"
-SRC_URI[md5sum] = "acf0a3997aab84b4e9a854296cc34971"
-SRC_URI[sha256sum] = "59f6475f77bbc37dcf7cd748519c0ec60722e91e63ca114e68821c0c54a46549"
+SRC_URI[sha256sum] = "96ca72f1b886d148241348783498194c577fa30a8faac108586b14f1ba4473ac"
-inherit pypi setuptools3
+inherit pypi python_hatchling
-SRCNAME = "opt_einsum"
-PYPI_SRC_URI = "https://files.pythonhosted.org/packages/source/o/${PYPI_PACKAGE}/${SRCNAME}-${PV}.tar.gz"
-SRC_URI += " \
- file://0001-Use-ConfigParser-instead-of-SafeConfigParser.patch \
-"
+PYPI_PACKAGE = "opt_einsum"
-UPSTREAM_CHECK_PYPI_PACKAGE = "opt_einsum"
+DEPENDS += " \
+ python3-hatch-vcs-native \
+ python3-hatch-fancy-pypi-readme-native \
+"
-S = "${UNPACKDIR}/${SRCNAME}-${PV}"
+UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
BBCLASSEXTEND = "native"
Swtich to python_hatchling Remove obsolete patch - 0001-Use-ConfigParser-instead-of-SafeConfigParser.patch Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> --- ...igParser-instead-of-SafeConfigParser.patch | 36 ------------------- ...m_3.3.0.bb => python3-opt-einsum_3.4.0.bb} | 18 +++++----- 2 files changed, 8 insertions(+), 46 deletions(-) delete mode 100644 recipes-devtools/python/python3-opt-einsum/0001-Use-ConfigParser-instead-of-SafeConfigParser.patch rename recipes-devtools/python/{python3-opt-einsum_3.3.0.bb => python3-opt-einsum_3.4.0.bb} (35%)