Skip to content

Conversation

@abravalheri
Copy link
Contributor

Motivation

The docs in https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
and https://packaging.python.org/en/latest/guides/packaging-namespace-packages/
seem to suggest that using namespace_packages is a deprecated practice.

Summary of changes

  • Add warnings for namespace_packages
  • Use SetuptoolsDeprecationWarning for the other deprecations in setup.cfg (SetuptoolsDeprecationWarning is used broadly instead of DeprecationWarning in the code base to make sure the warning message is not accidentally silenced.

Closes

Pull Request Checklist

@abravalheri abravalheri force-pushed the deprecate-namespace-packages branch from 60b0e67 to 6c881c2 Compare April 11, 2022 22:24
@abravalheri abravalheri marked this pull request as ready for review April 12, 2022 08:53
@abravalheri abravalheri changed the title Add deprecation messages for namespace_packages. Add deprecation messages for namespace_packages Apr 12, 2022
@abravalheri abravalheri force-pushed the deprecate-namespace-packages branch from 6c881c2 to 269f3ac Compare May 16, 2022 12:42
@abravalheri abravalheri merged commit 73bc126 into pypa:main May 16, 2022
@abravalheri abravalheri deleted the deprecate-namespace-packages branch May 16, 2022 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant