aports/testing/py3-pyroma/fix-test-complete.patch
mio d604d96922 testing/py3-pyroma: rebuild against python 3.14
Fix `ModuleNotFoundError: No module named 'pkg_resources'` error when
building with setuptools 82. Also update the sample data for the
`test_complete` tests.

A patch available in an upstream pull request requires docutils >=0.22.
The patch can be switched to the upstream one when docutils is upgraded.

Upstream PR: https://github.com/regebro/pyroma/pull/123

Ref: https://gitlab.alpinelinux.org/alpine/aports/-/issues/18025
2026-04-01 02:20:22 +00:00

33 lines
1020 B
Diff

diff -rupN a/pyroma/tests.py b/pyroma/tests.py
--- a/pyroma/tests.py 2023-02-25 12:57:28.000000000 +0000
+++ b/pyroma/tests.py 2026-03-31 23:01:10.830000000 +0000
@@ -16,7 +16,7 @@ if not isinstance(long_description, str)
long_description = io.StringIO(long_description, newline=None).read()
COMPLETE = {
- "metadata_version": "2.1",
+ "metadata_version": "2.4",
"name": "complete",
"version": "1.0.dev1",
"description": "This is a test package for pyroma.",
@@ -31,6 +31,19 @@ COMPLETE = {
"Programming Language :: Python :: 3.3",
"License :: OSI Approved :: MIT License",
],
+ "dynamic": [
+ "author",
+ "author-email",
+ "classifier",
+ "description",
+ "home-page",
+ "keywords",
+ "license",
+ "project-url",
+ "requires-dist",
+ "requires-python",
+ "summary",
+ ],
"keywords": "pypi,quality,example",
"author": "Lennart Regebro",
"author_email": "regebro@gmail.com",