Skip to content

pkg_resources is deprecated #1155

@LourensVeen

Description

@LourensVeen

We seem to be using pkg_resources somewhere for something, and we've been getting warnings about it being deprecated for several years, but it seems like there's a deadline now:

../../../../../miniconda3/envs/test/lib/python3.12/site-packages/amuse/support/options.py:11
/Users/runner/miniconda3/envs/test/lib/python3.12/site-packages/amuse/support/options.py:11: 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.
import pkg_resources

We're now using hatchling instead of setuptools, although I'm not sure if that's relevant. At any rate, we should investigate what this is used for, whether we need that still, and if so, what the new way of doing that is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions