Skip to content

stop recommending deprecated pkg_resources namespace packages #1222

Closed

Description

@graingert

The recommendations here are now outdated because plg_resources is deprecated: https://packaging.python.org/en/latest/guides/packaging-namespace-packages/#creating-a-namespace-package

This method is recommended if you need compatibility with packages already using this method or if your package needs to be zip-safe.

https://packaging.python.org/en/latest/guides/packaging-namespace-packages/#pkg-resources-style-namespace-packages

If you are creating a new distribution within an existing namespace package that uses this method then it’s recommended to continue using this as the different methods are not cross-compatible and it’s not advisable to try to migrate an existing package.

Activity

  1. webknjaz commented on Mar 14, 2023

    @webknjaz
    Member

    I don't think it's recommended. Just pointing out that old namespaces kinda don't have a choice.

  2. graingert commented on Mar 14, 2023

    @graingert
    ContributorAuthor

    Maybe the text could be updated to remove the mention of the obsolete zip-safe and say:

    This method is deprecated and not recommended unless you need compatibility with packages already using this method.

    And then:

    Different methods are not cross-compatible to migrate an existing package all packages within the namespace must be migrated simultaneously.

  3. chrysle commented on Sep 21, 2023

    @chrysle
    Contributor

    I'm looking into an overhaul of the guide.

  4. added
    type: bug
    on Nov 5, 2023
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

    component: guidestype: bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions