mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-12 17:12:37 +01:00
https://github.com/pypa/packaging/releases/tag/24.2 The release adds "PEP 639: Implement License-Expression and License-File", and upgrading resolves `ModuleNotFoundError` when another package attempts to import `packaging.licenses`. ``` Traceback (most recent call last): File "/usr/bin/gpep517", line 6, in <module> sys.exit(main()) ^^^^^^ File "/usr/lib/python3.12/site-packages/gpep517/__main__.py", line 439, in main return func(args) ^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/gpep517/__main__.py", line 229, in build_wheel print(build_wheel_impl(args, args.wheel_dir), file=out) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/gpep517/__main__.py", line 221, in build_wheel_impl wheel_name = backend.build_wheel(str(wheel_dir), args.config_json) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/hatchling/build.py", line 58, in build_wheel return os.path.basename(next(builder.build(directory=wheel_directory, versions=['standard']))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/hatchling/builders/plugin/interface.py", line 90, in build self.metadata.validate_fields() File "/usr/lib/python3.12/site-packages/hatchling/metadata/core.py", line 266, in validate_fields self.core.validate_fields() File "/usr/lib/python3.12/site-packages/hatchling/metadata/core.py", line 1363, in validate_fields getattr(self, attribute) File "/usr/lib/python3.12/site-packages/hatchling/metadata/core.py", line 677, in license from packaging.licenses import canonicalize_license_expression ModuleNotFoundError: No module named 'packaging.licenses' ```