diff mbox series

[6/6] python3-setuptools-scm: upgrade 8.3.1 -> 9.2.0

Message ID 20250919164803.3174518-6-tgamblin@baylibre.com
State New
Headers show
Series [1/6] maintainers.inc: add self for python recipes | expand

Commit Message

Trevor Gamblin Sept. 19, 2025, 4:48 p.m. UTC
Release notes (https://github.com/pypa/setuptools-scm/releases):

v9.2.0:

- reiterate version inference by RonnyPfannschmidt in #1202
- simple activation now requires a extra instead of setting up many
  pre-existing projects for failure/error

Note that there were several v9.2.x releases yanked upstream before this
one was added on August 16th.

Add python3-tomllib to the RDEPENDS list so that the module imports OK.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
---
 ...setuptools-scm_8.3.1.bb => python3-setuptools-scm_9.2.0.bb} | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
 rename meta/recipes-devtools/python/{python3-setuptools-scm_8.3.1.bb => python3-setuptools-scm_9.2.0.bb} (87%)

Comments

Mathieu Dubois-Briand Sept. 21, 2025, 7:40 a.m. UTC | #1
On Fri Sep 19, 2025 at 6:48 PM CEST, Trevor Gamblin wrote:
> Release notes (https://github.com/pypa/setuptools-scm/releases):
>
> v9.2.0:
>
> - reiterate version inference by RonnyPfannschmidt in #1202
> - simple activation now requires a extra instead of setting up many
>   pre-existing projects for failure/error
>
> Note that there were several v9.2.x releases yanked upstream before this
> one was added on August 16th.
>
> Add python3-tomllib to the RDEPENDS list so that the module imports OK.
>
> Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
> ---

Hi Trevor,

Thanks for your patch.

It looks like this is breaking the build of some package:

ERROR: Logfile of failure stored in: /srv/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/python3-dbusmock/0.33.0/temp/log.do_compile.2316634
Log data follows:
| DEBUG: Executing shell function do_compile
| * Getting build dependencies for wheel...
| /srv/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/python3-dbusmock/0.33.0/recipe-sysroot-native/usr/lib/python3.13/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
| !!
| 
|         ********************************************************************************
|         Please consider removing the following classifiers in favor of a SPDX license expression:
| 
|         License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
| 
|         See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
|         ********************************************************************************
| 
| !!
|   self._finalize_license_expression()
| /srv/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/python3-dbusmock/0.33.0/recipe-sysroot-native/usr/lib/python3.13/site-packages/setuptools_scm/_integration/version_inference.py:51: UserWarning: version of python-dbusmock already set
|   warnings.warn(self.message)
| Traceback (most recent call last):
|   File "/srv/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/python3-dbusmock/0.33.0/recipe-sysroot-native/usr/lib/python3.13/site-packages/setuptools/config/expand.py", line 71, in __getattr__
|     return next(
|         ast.literal_eval(value)
|         for target, value in self._find_assignments()
|         if isinstance(target, ast.Name) and target.id == attr
|     )
| StopIteration
| 
| The above exception was the direct cause of the following exception:
| 
| Traceback (most recent call last):
|   File "/srv/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/python3-dbusmock/0.33.0/recipe-sysroot-native/usr/lib/python3.13/site-packages/setuptools/config/expand.py", line 185, in read_attr
|     value = getattr(StaticModule(module_name, spec), attr_name)
|   File "/srv/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/python3-dbusmock/0.33.0/recipe-sysroot-native/usr/lib/python3.13/site-packages/setuptools/config/expand.py", line 77, in __getattr__
|     raise AttributeError(f"{self.name} has no attribute {attr}") from e
| AttributeError: dbusmock has no attribute __version__
| 

https://autobuilder.yoctoproject.org/valkyrie/#/builders/2/builds/2434

Can you have a look at this issue please?

Thanks,
Mathieu
Trevor Gamblin Sept. 21, 2025, 2:09 p.m. UTC | #2
On 2025-09-21 03:40, Mathieu Dubois-Briand wrote:
> On Fri Sep 19, 2025 at 6:48 PM CEST, Trevor Gamblin wrote:
>> Release notes (https://github.com/pypa/setuptools-scm/releases):
>>
>> v9.2.0:
>>
>> - reiterate version inference by RonnyPfannschmidt in #1202
>> - simple activation now requires a extra instead of setting up many
>>    pre-existing projects for failure/error
>>
>> Note that there were several v9.2.x releases yanked upstream before this
>> one was added on August 16th.
>>
>> Add python3-tomllib to the RDEPENDS list so that the module imports OK.
>>
>> Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
>> ---
> Hi Trevor,
>
> Thanks for your patch.
>
> It looks like this is breaking the build of some package:
>
> ERROR: Logfile of failure stored in: /srv/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/python3-dbusmock/0.33.0/temp/log.do_compile.2316634
> Log data follows:
> | DEBUG: Executing shell function do_compile
> | * Getting build dependencies for wheel...
> | /srv/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/python3-dbusmock/0.33.0/recipe-sysroot-native/usr/lib/python3.13/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
> | !!
> |
> |         ********************************************************************************
> |         Please consider removing the following classifiers in favor of a SPDX license expression:
> |
> |         License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
> |
> |         See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
> |         ********************************************************************************
> |
> | !!
> |   self._finalize_license_expression()
> | /srv/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/python3-dbusmock/0.33.0/recipe-sysroot-native/usr/lib/python3.13/site-packages/setuptools_scm/_integration/version_inference.py:51: UserWarning: version of python-dbusmock already set
> |   warnings.warn(self.message)
> | Traceback (most recent call last):
> |   File "/srv/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/python3-dbusmock/0.33.0/recipe-sysroot-native/usr/lib/python3.13/site-packages/setuptools/config/expand.py", line 71, in __getattr__
> |     return next(
> |         ast.literal_eval(value)
> |         for target, value in self._find_assignments()
> |         if isinstance(target, ast.Name) and target.id == attr
> |     )
> | StopIteration
> |
> | The above exception was the direct cause of the following exception:
> |
> | Traceback (most recent call last):
> |   File "/srv/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/python3-dbusmock/0.33.0/recipe-sysroot-native/usr/lib/python3.13/site-packages/setuptools/config/expand.py", line 185, in read_attr
> |     value = getattr(StaticModule(module_name, spec), attr_name)
> |   File "/srv/pokybuild/yocto-worker/beaglebone/build/build/tmp/work/cortexa8hf-neon-poky-linux-gnueabi/python3-dbusmock/0.33.0/recipe-sysroot-native/usr/lib/python3.13/site-packages/setuptools/config/expand.py", line 77, in __getattr__
> |     raise AttributeError(f"{self.name} has no attribute {attr}") from e
> | AttributeError: dbusmock has no attribute __version__
> |
>
> https://autobuilder.yoctoproject.org/valkyrie/#/builders/2/builds/2434
>
> Can you have a look at this issue please?

Seems to be fixed with an upgrade to python3-dbusmock - they recently 
changed the build configurations upstream. I've sent a patch to do that 
upgrade and CC'd you.

- Trevor

>
> Thanks,
> Mathieu
>
Mathieu Dubois-Briand Sept. 22, 2025, 8:06 a.m. UTC | #3
On Sun Sep 21, 2025 at 4:09 PM CEST, Trevor Gamblin wrote:
>
> Seems to be fixed with an upgrade to python3-dbusmock - they recently 
> changed the build configurations upstream. I've sent a patch to do that 
> upgrade and CC'd you.
>
> - Trevor
>
>>
>> Thanks,
>> Mathieu
>>

Thanks! It's better, but now we have an issue with urllib:

ERROR: python3-urllib3-2.5.0-r0 do_compile: Execution of '/srv/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/x86-64-v3-poky-linux-musl/python3-urllib3/2.5.0/temp/run.do_compile.1714719' failed with exit code 1
...
ERROR: Logfile of failure stored in: /srv/pokybuild/yocto-worker/musl-qemux86-64/build/build/tmp/work/x86-64-v3-poky-linux-musl/python3-urllib3/2.5.0/temp/log.do_compile.1714719
Log data follows:
| DEBUG: Executing shell function do_compile
| * Getting build dependencies for wheel...
|
| ERROR Missing dependencies:
| 	setuptools-scm<9,>=8

https://autobuilder.yoctoproject.org/valkyrie/#/builders/3/builds/2486

Thanks,
Mathieu
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3-setuptools-scm_8.3.1.bb b/meta/recipes-devtools/python/python3-setuptools-scm_9.2.0.bb
similarity index 87%
rename from meta/recipes-devtools/python/python3-setuptools-scm_8.3.1.bb
rename to meta/recipes-devtools/python/python3-setuptools-scm_9.2.0.bb
index 81e04ddea5..322bb1fe6c 100644
--- a/meta/recipes-devtools/python/python3-setuptools-scm_8.3.1.bb
+++ b/meta/recipes-devtools/python/python3-setuptools-scm_9.2.0.bb
@@ -6,7 +6,7 @@  argument or in a SCM managed file."
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=838c366f69b72c5df05c96dff79b35f2"
 
-SRC_URI[sha256sum] = "3d555e92b75dacd037d32bafdf94f97af51ea29ae8c7b234cf94b7a5bd242a63"
+SRC_URI[sha256sum] = "6662c9b9497b6c9bf13bead9d7a9084756f68238302c5ed089fb4dbd29d102d7"
 
 PYPI_PACKAGE = "setuptools_scm"
 UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
@@ -18,6 +18,7 @@  DEPENDS += "python3-packaging-native"
 RDEPENDS:${PN} = "\
     python3-packaging \
     python3-setuptools \
+    python3-tomllib \
 "
 
 RDEPENDS:${PN}:append:class-target = " \