diff options
Diffstat (limited to 'meta-python/recipes-devtools/python')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-croniter_6.2.2.bb (renamed from meta-python/recipes-devtools/python/python3-croniter_6.0.0.bb) | 4 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-cucumber-tag-expressions_9.1.0.bb (renamed from meta-python/recipes-devtools/python/python3-cucumber-tag-expressions_6.2.0.bb) | 5 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-djangorestframework_3.17.1.bb (renamed from meta-python/recipes-devtools/python/python3-djangorestframework_3.16.1.bb) | 4 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-pytest-runner/0001-Not-use-functions-from-pkg_resources-any-more.patch | 77 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-pytest-runner_6.0.1.bb | 4 |
5 files changed, 88 insertions, 6 deletions
diff --git a/meta-python/recipes-devtools/python/python3-croniter_6.0.0.bb b/meta-python/recipes-devtools/python/python3-croniter_6.2.2.bb index 201074e1e3..d217161d7d 100644 --- a/meta-python/recipes-devtools/python/python3-croniter_6.0.0.bb +++ b/meta-python/recipes-devtools/python/python3-croniter_6.2.2.bb | |||
| @@ -5,9 +5,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=b8ee59850b882cbf623188489ea748e2" | |||
| 5 | 5 | ||
| 6 | PYPI_PACKAGE = "croniter" | 6 | PYPI_PACKAGE = "croniter" |
| 7 | 7 | ||
| 8 | SRC_URI[sha256sum] = "37c504b313956114a983ece2c2b07790b1f1094fe9d81cc94739214748255577" | 8 | SRC_URI[sha256sum] = "ba60832a5ec8e12e51b8691c3309a113d1cf6526bdf1a48150ce8ec7a532d0ab" |
| 9 | 9 | ||
| 10 | inherit pypi setuptools3 | 10 | inherit pypi python_hatchling |
| 11 | 11 | ||
| 12 | RDEPENDS:${PN} += " \ | 12 | RDEPENDS:${PN} += " \ |
| 13 | python3-dateutil \ | 13 | python3-dateutil \ |
diff --git a/meta-python/recipes-devtools/python/python3-cucumber-tag-expressions_6.2.0.bb b/meta-python/recipes-devtools/python/python3-cucumber-tag-expressions_9.1.0.bb index 6ddc489f8a..add7031f1e 100644 --- a/meta-python/recipes-devtools/python/python3-cucumber-tag-expressions_6.2.0.bb +++ b/meta-python/recipes-devtools/python/python3-cucumber-tag-expressions_9.1.0.bb | |||
| @@ -2,9 +2,9 @@ SUMMARY = "Cucumber tag expression parser" | |||
| 2 | DESCRIPTION = "Provides a tag-expression parser and evaluation logic for cucumber/behave" | 2 | DESCRIPTION = "Provides a tag-expression parser and evaluation logic for cucumber/behave" |
| 3 | HOMEPAGE = "https://github.com/cucumber/tag-expressions" | 3 | HOMEPAGE = "https://github.com/cucumber/tag-expressions" |
| 4 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
| 5 | LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=6;endline=6;md5=8227180126797a0148f94f483f3e1489" | 5 | LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=134f1026f0de92fd30e71976590a2868" |
| 6 | 6 | ||
| 7 | SRC_URI[sha256sum] = "b60aa2cdbf9ac43e28d9b0e4fd49edf9f09d5d941257d2912f5228f9d166c023" | 7 | SRC_URI[sha256sum] = "d960383d5885300ebcbcb14e41657946fde2a59d5c0f485eb291bc6a0e228acc" |
| 8 | 8 | ||
| 9 | inherit pypi python_setuptools_build_meta | 9 | inherit pypi python_setuptools_build_meta |
| 10 | 10 | ||
| @@ -12,4 +12,5 @@ PYPI_PACKAGE = "cucumber_tag_expressions" | |||
| 12 | 12 | ||
| 13 | DEPENDS += "\ | 13 | DEPENDS += "\ |
| 14 | python3-setuptools-scm-native \ | 14 | python3-setuptools-scm-native \ |
| 15 | python3-uv-build-native \ | ||
| 15 | " | 16 | " |
diff --git a/meta-python/recipes-devtools/python/python3-djangorestframework_3.16.1.bb b/meta-python/recipes-devtools/python/python3-djangorestframework_3.17.1.bb index bcd079f328..42edd15156 100644 --- a/meta-python/recipes-devtools/python/python3-djangorestframework_3.16.1.bb +++ b/meta-python/recipes-devtools/python/python3-djangorestframework_3.17.1.bb | |||
| @@ -5,11 +5,11 @@ HOMEPAGE = "https://pypi.python.org/pypi/djangorestframework" | |||
| 5 | LICENSE = "MIT" | 5 | LICENSE = "MIT" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=7879a5a716147a784f7e524c9cf103c1" | 6 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=7879a5a716147a784f7e524c9cf103c1" |
| 7 | 7 | ||
| 8 | SRC_URI[sha256sum] = "166809528b1aced0a17dc66c24492af18049f2c9420dbd0be29422029cfc3ff7" | 8 | SRC_URI[sha256sum] = "a6def5f447fe78ff853bff1d47a3c59bf38f5434b031780b351b0c73a62db1a5" |
| 9 | 9 | ||
| 10 | PYPI_PACKAGE = "djangorestframework" | 10 | PYPI_PACKAGE = "djangorestframework" |
| 11 | 11 | ||
| 12 | inherit pypi setuptools3 | 12 | inherit pypi python_setuptools_build_meta |
| 13 | 13 | ||
| 14 | RDEPENDS:${PN} += "\ | 14 | RDEPENDS:${PN} += "\ |
| 15 | python3-django \ | 15 | python3-django \ |
diff --git a/meta-python/recipes-devtools/python/python3-pytest-runner/0001-Not-use-functions-from-pkg_resources-any-more.patch b/meta-python/recipes-devtools/python/python3-pytest-runner/0001-Not-use-functions-from-pkg_resources-any-more.patch new file mode 100644 index 0000000000..20c1c121fb --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pytest-runner/0001-Not-use-functions-from-pkg_resources-any-more.patch | |||
| @@ -0,0 +1,77 @@ | |||
| 1 | From 81b0218e390e36aa2c3d1bdaa124d8af175e9cbb Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Li Zhou <li.zhou@windriver.com> | ||
| 3 | Date: Thu, 2 Apr 2026 15:44:18 +0800 | ||
| 4 | Subject: [PATCH] Not use functions from pkg_resources any more | ||
| 5 | |||
| 6 | The python3 setuptools 82 dropped pkg_resources module by now. | ||
| 7 | To avoid the failure "No module named 'pkg_resources'", replace the | ||
| 8 | functions from this module with other functions from modules | ||
| 9 | packaging and importlib.metadata. | ||
| 10 | |||
| 11 | Upstream-Status: Inactive-Upstream [lastcommit: 2023] | ||
| 12 | Signed-off-by: Li Zhou <li.zhou@windriver.com> | ||
| 13 | --- | ||
| 14 | ptr/__init__.py | 23 +++++++++++++---------- | ||
| 15 | 1 file changed, 13 insertions(+), 10 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/ptr/__init__.py b/ptr/__init__.py | ||
| 18 | index 41192fa..5186059 100644 | ||
| 19 | --- a/ptr/__init__.py | ||
| 20 | +++ b/ptr/__init__.py | ||
| 21 | @@ -10,10 +10,12 @@ import operator as _operator | ||
| 22 | import itertools as _itertools | ||
| 23 | import warnings as _warnings | ||
| 24 | |||
| 25 | -import pkg_resources | ||
| 26 | import setuptools.command.test as orig | ||
| 27 | from setuptools import Distribution | ||
| 28 | |||
| 29 | +from importlib.metadata import version | ||
| 30 | +from packaging.version import Version | ||
| 31 | +from packaging.markers import Marker, InvalidMarker | ||
| 32 | |||
| 33 | @_contextlib.contextmanager | ||
| 34 | def _save_argv(repl=None): | ||
| 35 | @@ -121,7 +123,8 @@ class PyTest(orig.test): | ||
| 36 | instead of declaring the dependency in the package | ||
| 37 | metadata, assert the requirement at run time. | ||
| 38 | """ | ||
| 39 | - pkg_resources.require('setuptools>=27.3') | ||
| 40 | + if Version(version('setuptools')) < Version('27.3'): | ||
| 41 | + raise RuntimeError("setuptools >= 27.3 is required") | ||
| 42 | |||
| 43 | def finalize_options(self): | ||
| 44 | if self.addopts: | ||
| 45 | @@ -133,11 +136,12 @@ class PyTest(orig.test): | ||
| 46 | Given an environment marker, return True if the marker is valid | ||
| 47 | and matches this environment. | ||
| 48 | """ | ||
| 49 | - return ( | ||
| 50 | - not marker | ||
| 51 | - or not pkg_resources.invalid_marker(marker) | ||
| 52 | - and pkg_resources.evaluate_marker(marker) | ||
| 53 | - ) | ||
| 54 | + if not marker: | ||
| 55 | + return True | ||
| 56 | + try: | ||
| 57 | + return Marker(marker).evaluate() | ||
| 58 | + except InvalidMarker: | ||
| 59 | + return False | ||
| 60 | |||
| 61 | def install_dists(self, dist): | ||
| 62 | """ | ||
| 63 | @@ -175,9 +179,8 @@ class PyTest(orig.test): | ||
| 64 | "please upgrade to setuptools 30.4 or later or pin to " | ||
| 65 | "pytest-runner < 5." | ||
| 66 | ) | ||
| 67 | - ver_str = pkg_resources.get_distribution('setuptools').version | ||
| 68 | - ver = pkg_resources.parse_version(ver_str) | ||
| 69 | - if ver < pkg_resources.parse_version('30.4'): | ||
| 70 | + ver = Version(version('setuptools')) | ||
| 71 | + if ver < Version('30.4'): | ||
| 72 | _warnings.warn(msg) | ||
| 73 | |||
| 74 | def run(self): | ||
| 75 | -- | ||
| 76 | 2.34.1 | ||
| 77 | |||
diff --git a/meta-python/recipes-devtools/python/python3-pytest-runner_6.0.1.bb b/meta-python/recipes-devtools/python/python3-pytest-runner_6.0.1.bb index e5e5e048bd..dd3a8d0234 100644 --- a/meta-python/recipes-devtools/python/python3-pytest-runner_6.0.1.bb +++ b/meta-python/recipes-devtools/python/python3-pytest-runner_6.0.1.bb | |||
| @@ -5,6 +5,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=7a7126e068206290f3fe9f8d6c713ea6" | |||
| 5 | 5 | ||
| 6 | SRC_URI[sha256sum] = "70d4739585a7008f37bf4933c013fdb327b8878a5a69fcbb3316c88882f0f49b" | 6 | SRC_URI[sha256sum] = "70d4739585a7008f37bf4933c013fdb327b8878a5a69fcbb3316c88882f0f49b" |
| 7 | 7 | ||
| 8 | SRC_URI += " \ | ||
| 9 | file://0001-Not-use-functions-from-pkg_resources-any-more.patch \ | ||
| 10 | " | ||
| 11 | |||
| 8 | inherit pypi python_setuptools_build_meta | 12 | inherit pypi python_setuptools_build_meta |
| 9 | 13 | ||
| 10 | DEPENDS += " \ | 14 | DEPENDS += " \ |
