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

Fixes to work with Python 3.12+ #254

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Fixes to work with Python 3.12+ #254

wants to merge 1 commit into from

Conversation

bje-
Copy link

@bje- bje- commented Jun 21, 2024

This patch removes the dependence on pkg_resources which is not available by default in Python 3.12 and beyond. It switches from pkg_resources.iter_entry_points to import_metadata.entry_points. import_metadata is available in all supported versions of Python.

The other change removes the use of parse_requirements and just hardcodes the package dependencies in setup.py, which is arguably good practice anyway since not all developer-installed packages are required by the installation.

Finally, setuptools is added to requirements.txt since it is also no longer installed by default with Python 3.12.

- Eliminate the use of pkg_resources which is no longer installed with
  Python 3.12 and greater.

- Add setuptools to requirements.txt which is no longer included in
  Python distributions (>= 3.12).
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.

None yet

1 participant