Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch dynamic version handling from pkg_resources (in setuptools) to packaging #229

Merged

Conversation

noritada
Copy link
Contributor

@noritada noritada commented Jan 9, 2024

This PR fixes ModuleNotFoundError resulting from missing dependency on setuptools.

In the executable code of pygrib, setuptools is only used for version comparison purposes, and since setuptools is larger than necessary, this commit replaces it with packaging, which is a more compact module containing reusable core utilities for Python packaging compliant with recent PEPs.

Closes #228.

… packaging

This fixes following `ModuleNotFoundError` resulting from missing
dependency on setuptools:

    % rye add pygrib --path /path/to/repo
    % rye sync
    % rye run python -c 'import pygrib'
    ModuleNotFoundError: No module named 'pkg_resources'

In the executable code of pygrib, setuptools is only used for version
comparison purposes, and since setuptools is larger than necessary, this
commit replaces it with packaging, which is a more compact module
containing reusable core utilities for Python packaging compliant with
recent PEPs.
@jswhit jswhit merged commit 4b842c2 into jswhit:master Jan 16, 2024
31 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.

Missing dependency on setuptools resulting in ModuleNotFoundError
2 participants