Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix warnings from docutils and pkg_resources#123

Merged
regebro merged 2 commits into
regebro:masterfrom
hugovk:fix-warnings
Jun 11, 2026
Merged

Fix warnings from docutils and pkg_resources#123
regebro merged 2 commits into
regebro:masterfrom
hugovk:fix-warnings

Conversation

@hugovk

@hugovk hugovk commented Dec 10, 2025

Copy link
Copy Markdown
Collaborator
pyroma/tests.py:8
  /Users/hugo/github/pyroma/pyroma/tests.py:8: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
    from pkg_resources import resource_filename, resource_string

pyroma/tests.py: 11 warnings
  /Users/hugo/github/pyroma/pyroma/ratings.py:426: PendingDeprecationWarning: Argument "writer_name" will be removed in Docutils 2.0.  Specify writer name in the "writer" argument.
    publish_parts(source=source, writer_name="html4css1", settings_overrides=settings)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

PendingDeprecationWarning: Argument "writer_name" will be removed in Docutils 2.0. Specify writer name in the "writer" argument.
UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
@hugovk

hugovk commented Feb 15, 2026

Copy link
Copy Markdown
Collaborator Author

Setuptools has now removed pkg_resources and main master is now failing:

algitbot pushed a commit to alpinelinux/aports that referenced this pull request Apr 1, 2026
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: regebro/pyroma#123

Ref: https://gitlab.alpinelinux.org/alpine/aports/-/issues/18025
@regebro regebro merged commit 732eba9 into regebro:master Jun 11, 2026
10 checks passed
@hugovk hugovk deleted the fix-warnings branch June 11, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants