8000 Issue291/pkg resources by perrito666 · Pull Request #5 · Shiphero/sqlalchemy-redshift · GitHub
[go: up one dir, main page]

Skip to content

Issue291/pkg resources #5

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

Merged
merged 3 commits into from
Apr 15, 2025
Merged

Issue291/pkg resources #5

merged 3 commits into from
Apr 15, 2025

Conversation

perrito666
Copy link
Collaborator

This commit removes pkg_resources requirements as they are deprecated with more recent versions of Python.

importlib.metadata.distribution is used in place of pkg_resources.get_distribution importlib.metadata.version is used in place of pkg_resources.version ModuleNotFoundError is used instead of pkg_resources.DistributionNotFound

Port of sqlalchemy-redshift#294

ndmlny-qs and others added 3 commits November 13, 2023 16:29
This commit removes `pkg_resources` requirements as they are deprecated
with more recent versions of Python.

- `importlib.metadata.distribution` is used in place of
  `pkg_resources.get_distribution`
- `importlib.metadata.version` is used in place of
  `pkg_resources.version`
- `ModuleNotFoundError` is used instead of
  `pkg_resources.DistributionNotFound`
This commit removes all references to `pkg_resources`.

- Bumped version numbers for found in `requirements-docs` in order to
  build the documentation using `tox`.
- Removed all references to `pkg_resources` in
  `sqlalchemy_redshift/__init__.py` and
  `sqlalchemy_redshift/dialect.py`.
- Updated the `tests/test_default_ssl.py` to no longer use
  `pkg_resources`.
… with more recent versions of Python.

importlib.metadata.distribution is used in place of pkg_resources.get_distribution importlib.metadata.version is used in place of pkg_resources.version ModuleNotFoundError is used instead of pkg_resources.DistributionNotFound

Port of sqlalchemy-redshift#294
@perrito666 perrito666 merged commit 71e058e into main Apr 15, 2025
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
0