Skip to contentSkip to conversation

python3-semver: upgrade 2.13.0 -> 3.0.1

PATCH New Trevor Gamblin 1 participant 5 messages Jul 25, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 python3-semver: upgrade 2.13.0 -> 3.0.1

- Update to point at the proper license file with correct checksum. Previously it was pointing at a subset of a PKG-INFO file, which was a legacy output from distutils
- Update build backend and include python3-setuptools-scm-native in DEPENDS
- Modify ptest installation and run-ptest script since the tests have been moved into their own folder

Changelog: https://github.com/python-semver/python-semver/releases

---
 .../python/python3-semver/run-ptest           |  2 +-
 .../python/python3-semver_2.13.0.bb           | 24 -----------------
 .../python/python3-semver_3.0.1.bb            | 26 +++++++++++++++++++
 3 files changed, 27 insertions(+), 25 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-semver_2.13.0.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-semver_3.0.1.bb
meta-python/recipes-devtools/python/python3-semver/run-ptest +1 -1
index 43c03b594b..cd2bc8537c 100644
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-pytest -o log_cli=true -o log_cli_level=INFO test_semver.py --disable-warnings| sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
+pytest -o log_cli=true -o log_cli_level=INFO tests/test_semver.py --disable-warnings| sed -e 's/\[...%\]//g'| sed -e 's/PASSED/PASS/g'| sed -e 's/FAILED/FAIL/g'|sed -e 's/SKIPPED/SKIP/g'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS"){printf "%s: %s\n", $NF, $0}else{print}}'| awk '{if ($NF=="PASS" || $NF=="FAIL" || $NF=="SKIP" || $NF=="XFAIL" || $NF=="XPASS") {$NF="";print $0}else{print}}'
meta-python/recipes-devtools/python/python3-semver_2.13.0.bb deleted +0 -24
deleted file mode 100644
index b47bcae008..0000000000
@@ -1,24 +0,0 @@
-DESCRIPTION = "Python module for Semantic Versioning"
-HOMEPAGE = "https://github.com/k-bx/python-semver"
-BUGTRACKER = "https://github.com/k-bx/python-semver/issues"
-LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=e910b35b0ef4e1f665b9a75d6afb7709"
-
-SRC_URI[md5sum] = "e98b5fb283ea84daa5195087de83ebf1"
-SRC_URI[sha256sum] = "fa0fe2722ee1c3f57eac478820c3a5ae2f624af8264cbdf9000c980ff7f75e3f"
-
-inherit pypi setuptools3 ptest
-
-BBCLASSEXTEND = "native nativesdk"
-
-SRC_URI += " \
-        file://run-ptest \
-"
-
-RDEPENDS:${PN}-ptest += " \
-        ${PYTHON_PN}-pytest \
-"
-
-do_install_ptest() {
-        cp -f ${S}/test_semver.py ${D}${PTEST_PATH}/
-}
meta-python/recipes-devtools/python/python3-semver_3.0.1.bb new file +26 -0
new file mode 100644
index 0000000000..2d85d789c7
@@ -0,0 +1,26 @@
+DESCRIPTION = "Python module for Semantic Versioning"
+HOMEPAGE = "https://github.com/python-semver/python-semver"
+BUGTRACKER = "https://github.com/python-semver/python-semver"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=d9da679db3bdce30a1b4328d5c474f98"
+
+SRC_URI[md5sum] = "b7502c12ce325ffffeab694fed52f6f5"
+SRC_URI[sha256sum] = "9ec78c5447883c67b97f98c3b6212796708191d22e4ad30f4570f840171cbce1"
+
+inherit pypi python_setuptools_build_meta ptest
+
+BBCLASSEXTEND = "native nativesdk"
+
+SRC_URI += " \
+        file://run-ptest \
+"
+
+DEPENDS += " python3-setuptools-scm-native"
+
+RDEPENDS:${PN}-ptest += " \
+        ${PYTHON_PN}-pytest \
+"
+
+do_install_ptest() {
+        cp -rf ${S}/tests ${D}${PTEST_PATH}/
+}
Signature · 1 line
2.41.0
#1 lore raw

PATCH 2/5 python3-send2trash: upgrade 1.8.0 -> 1.8.2

- Update build backend since they use a pyproject.toml file now.
- Add python3-io to RDEPENDS so that the module can be imported.

Changelog (https://github.com/arsenetar/send2trash/releases):

1.8.2

- Add fallback to HOMETRASH when cross device errors happen in plat_other (#26, #41, #63)
- win/legacy: tiny logic simplification by @BoboTiG in #77
- TravisCI is not used anymore by @sobolevn in #73
- fix(ci): Update to latest actions, fix python versions by @arsenetar in #78

1.8.1b0

- Add fallback to HOMETRASH when cross device errors happen in plat_other (#26, #41, #63)

---
 ...3-send2trash_1.8.0.bb => python3-send2trash_1.8.2.bb} | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
 rename meta-python/recipes-extended/send2trash/{python3-send2trash_1.8.0.bb => python3-send2trash_1.8.2.bb} (51%)
meta-python/recipes-extended/send2trash/python3-send2trash_1.8.2.bb renamed from meta-python/recipes-extended/send2trash/python3-send2trash_1.8.0.bb +6 -3
similarity index 51%
rename from meta-python/recipes-extended/send2trash/python3-send2trash_1.8.0.bb
rename to meta-python/recipes-extended/send2trash/python3-send2trash_1.8.2.bb
index a20b0194f8..eac89e6297 100644
@@ -2,10 +2,13 @@ SUMMARY = "Send file to trash natively under Mac OS X, Windows and Linux"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=a02659c2d5f4cc626e4dcf6504b865eb"
 
-inherit pypi setuptools3
+inherit pypi python_setuptools_build_meta
 
-SRC_URI[sha256sum] = "d2c24762fd3759860a0aff155e45871447ea58d2be6bdd39b5c8f966a0c99c2d"
+SRC_URI[sha256sum] = "c132d59fa44b9ca2b1699af5c86f57ce9f4c5eb56629d5d55fbb7a35f84e2312"
 
 PYPI_PACKAGE = "Send2Trash"
 
-RDEPENDS:${PN} += "python3-datetime"
+RDEPENDS:${PN} += "\
+    python3-io \
+    python3-datetime \
+"
Signature · 1 line
2.41.0
#2 lore raw

PATCH 3/5 python3-sh: upgrade 1.14.3 -> 2.0.4

In reply to Trevor Gamblin

- The project uses poetry now, so inherit python_poetry_core
- Add python3-asyncio and python3-compression to RDEPENDS

Changelog (https://github.com/amoffat/sh/blob/develop/CHANGELOG.md):

2.0.4 - 5/13/22

- Allow ok_code to be used with fg #665
- Make sure new_group never creates a new session #675

2.0.2 / 2.0.3 (misversioned) - 2/13/22

- Performance regression when using a generator with _in #650
- Adding test support for python 3.11

2.0.0 - 2/9/22

- Executed commands now return a unicode string by default
- Removed magical module-like execution contexts #636
- Added basic asyncio support via _async
- Dropped support for Python < 3.8
- Bumped default tty size to more standard (24, 80)
- First argument being a RunningCommand no longer automatically passes it as stdin
- RunningCommand.__eq__ no longer has the side effect of executing the command #518
- _tee now supports both "err" and "out" #215
- Removed the builtin override cd link
- Altered process launching model to behave more expectedly #495
- Bugfix where _no_out isn't allowed with _iter="err" #638
- Allow keyword arguments to have a list of values #529

---
 .../python/{python3-sh_1.14.3.bb => python3-sh_2.0.4.bb}    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-sh_1.14.3.bb => python3-sh_2.0.4.bb} (73%)
meta-python/recipes-devtools/python/python3-sh_2.0.4.bb renamed from meta-python/recipes-devtools/python/python3-sh_1.14.3.bb +4 -2
similarity index 73%
rename from meta-python/recipes-devtools/python/python3-sh_1.14.3.bb
rename to meta-python/recipes-devtools/python/python3-sh_2.0.4.bb
index 317f648dcd..fa9f97a8f9 100644
@@ -3,14 +3,16 @@ HOMEPAGE = "https://github.com/amoffat/sh"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=5317094292296f03405f59ae5f6544b6"
 
-SRC_URI[sha256sum] = "e4045b6c732d9ce75d571c79f5ac2234edd9ae4f5fa9d59b09705082bdca18c7"
+SRC_URI[sha256sum] = "a18920f0839991bc9dfddb6dcc006c360b1064ba96257359f0ea356e9fa75a60"
 
 PYPI_PACKAGE = "sh"
 
-inherit pypi setuptools3
+inherit pypi python_poetry_core
 
 RDEPENDS:${PN} += " \
+    ${PYTHON_PN}-asyncio \
     ${PYTHON_PN}-codecs \
+    ${PYTHON_PN}-compression \
     ${PYTHON_PN}-core \
     ${PYTHON_PN}-io \
     ${PYTHON_PN}-logging \
Signature · 1 line
2.41.0
#3 lore raw

PATCH 4/5 python3-snagboot: upgrade 1.0 -> 1.1

In reply to Trevor Gamblin

The udev file was updated and renamed in 1.1 to 50-snagboot.rules.

Changelog (https://github.com/bootlin/snagboot/releases/tag/v1.1):

- udev: use uaccess tags instead of group assignments
- fix and test i.MX8QM and i.MX93 supports
- homogenize i.MX firmware configuration interfaces
- don't require contributors to modify license headers
- fix README links on PyPI

---
 .../{python3-snagboot_1.0.bb => python3-snagboot_1.1.bb}      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-snagboot_1.0.bb => python3-snagboot_1.1.bb} (69%)
meta-python/recipes-devtools/python/python3-snagboot_1.1.bb renamed from meta-python/recipes-devtools/python/python3-snagboot_1.0.bb +2 -2
similarity index 69%
rename from meta-python/recipes-devtools/python/python3-snagboot_1.0.bb
rename to meta-python/recipes-devtools/python/python3-snagboot_1.1.bb
index 1853596b46..e6f3148ce0 100644
@@ -3,7 +3,7 @@ SUMMARY = "Snagboot intends to be an open-source replacement vendor-specific too
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
-SRC_URI[sha256sum] = "c2d21cadddecfd97dd62a8b66b6f88bd56272627b9b71272e9dda6f868ee8715"
+SRC_URI[sha256sum] = "40b045e6225f3544080558e4bd604d116d4cffceea80cb84307579d914e4e498"
 
 inherit pypi python_setuptools_build_meta
 
@@ -17,5 +17,5 @@ RDEPENDS:${PN} += " \
 "
 
 do_install:append() {
-    install -D -m 0644 ${S}/src/snagrecover/80-snagboot.rules ${D}${sysconfdir}/udev/rules.d/80-snagboot.rules
+    install -D -m 0644 ${S}/src/snagrecover/50-snagboot.rules ${D}${sysconfdir}/udev/rules.d/50-snagboot.rules
 }
Signature · 1 line
2.41.0
#4 lore raw

PATCH 5/5 python3-werkzeug: upgrade 2.2.3 -> 2.3.6

In reply to Trevor Gamblin

Upstream states that the build backend is now flit, but inheriting python_flit_core alone still causes the following error:

| ModuleNotFoundError: No module named 'setuptools'
|
| ERROR Backend 'setuptools.build_meta' is not available.

Instead, inherit python_setuptools_build_meta, which works OK.

Changelog: https://github.com/pallets/werkzeug/blob/main/CHANGES.rst

---
 .../{python3-werkzeug_2.2.3.bb => python3-werkzeug_2.3.6.bb}  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-werkzeug_2.2.3.bb => python3-werkzeug_2.3.6.bb} (90%)
meta-python/recipes-devtools/python/python3-werkzeug_2.3.6.bb renamed from meta-python/recipes-devtools/python/python3-werkzeug_2.2.3.bb +2 -2
similarity index 90%
rename from meta-python/recipes-devtools/python/python3-werkzeug_2.2.3.bb
rename to meta-python/recipes-devtools/python/python3-werkzeug_2.3.6.bb
index 5565fb4ead..11441fca2b 100644
@@ -12,9 +12,9 @@ LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=5dc88300786f1c214c1e9827a5229462"
 
 PYPI_PACKAGE = "Werkzeug"
 
-SRC_URI[sha256sum] = "2e1ccc9417d4da358b9de6f174e3ac094391ea1d4fbef2d667865d819dfd0afe"
+SRC_URI[sha256sum] = "98c774df2f91b05550078891dee5f0eb0cb797a522c757a2452b9cee5b202330"
 
-inherit pypi setuptools3
+inherit pypi python_setuptools_build_meta
 
 CLEANBROKEN = "1"
 
Signature · 1 line
2.41.0