Skip to content

API: Deprecate get_config_dir and get_cache_dir #19609

Open

Description

@pllim

This is a follow-up of #19575 (v8.0.0)

  • Deprecate get_config_dir in favor of get_config_dir_path
  • Deprecate get_cache_dir in favor of get_cache_dir_path

Do not do this before v9.0 at least.

Activity

  1. added
    API changePRs and issues that change an existing API, possibly requiring a deprecation period
    on Apr 28, 2026
  2. neutrinoceros commented on May 23, 2026

    @neutrinoceros
    Contributor

    marked this as a long term goal, part of a much longer plan in #19803

  3. astrofrog commented on May 23, 2026

    @astrofrog
    Member

    Just out of curiosity, do we have a feeling for how widely used the legacy API is in other packages?

  4. neutrinoceros commented on May 26, 2026

    @neutrinoceros
    Contributor

    Projects that have dependency metadata still look like they support astropy 5.x, while the replacement APIs were only introduced in 7.0.0 (#17118). It looks like too much of a leap to justify migrating them now.

  5. pllim commented on May 26, 2026

    @pllim
    MemberAuthor

    I agree. I wouldn't do it so soon. Maybe in 2-5 years... 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    API changePRs and issues that change an existing API, possibly requiring a deprecation periodconfig

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions