Skip to content

Comments

Fix warnings from docutils and pkg_resources#123

Open
hugovk wants to merge 2 commits intoregebro:masterfrom
hugovk:fix-warnings
Open

Fix warnings from docutils and pkg_resources#123
hugovk wants to merge 2 commits intoregebro:masterfrom
hugovk:fix-warnings

Conversation

@hugovk
Copy link
Collaborator

@hugovk hugovk commented Dec 10, 2025

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
Copy link
Collaborator Author

hugovk commented Feb 15, 2026

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

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.

1 participant