Skip to content

Migrate from deprecated pkg_resources to importlib.metadata#363

Merged
GuillaumeSeren merged 1 commit intoafewmail:masterfrom
Mic92:setuptools
Nov 7, 2025
Merged

Migrate from deprecated pkg_resources to importlib.metadata#363
GuillaumeSeren merged 1 commit intoafewmail:masterfrom
Mic92:setuptools

Conversation

@Mic92
Copy link
Copy Markdown
Contributor

@Mic92 Mic92 commented Nov 4, 2025

The pkg_resources module is deprecated and slated for removal in setuptools 81 (as early as 2025-11-30). This change eliminates UserWarning messages during afew execution by using the modern importlib.metadata API, which has been available since Python 3.8.
Also adds python_requires='>=3.9' to formally declare the minimum version after dropping Python 3.8 support in commit 2a22e7f.

The pkg_resources module is deprecated and slated for removal in setuptools 81 (as early as 2025-11-30).
This change eliminates UserWarning messages during afew execution by using the modern importlib.metadata API,
which has been available since Python 3.8.
Also adds python_requires='>=3.9' to formally declare the minimum version after dropping Python 3.8 support in commit 2a22e7f.
@GuillaumeSeren
Copy link
Copy Markdown
Collaborator

Hey @Mic92
thank you for the patches

@GuillaumeSeren GuillaumeSeren merged commit 741a1d9 into afewmail:master Nov 7, 2025
5 checks passed
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