Skip to content

Commit

Permalink
Add deprecation notices to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed May 16, 2022
1 parent 5e40423 commit 269f3ac
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions docs/references/keywords.rst
Expand Up @@ -353,6 +353,11 @@ extensions).
.. _keyword/namespace_packages:

``namespace_packages``
.. warning::
``namespace_packages`` is deprecated in favor of native/implicit
namespaces (:pep:`420`). Check :doc:`the Python Packaging User Guide
<PyPUG:guides/packaging-namespace-packages>` for more information.

A list of strings naming the project's "namespace packages". A namespace
package is a package that may be split across multiple project
distributions. For example, Zope 3's ``zope`` package is a namespace
Expand Down
6 changes: 5 additions & 1 deletion docs/userguide/declarative_config.rst
Expand Up @@ -210,7 +210,7 @@ packages find:, find_namespace:, list-comma [#
package_dir dict
package_data section [#opt-1]_
exclude_package_data section
namespace_packages list-comma
namespace_packages list-comma [#opt-5]_
py_modules list-comma 34.4.0
data_files section 40.6.0 [#opt-4]_
======================= =================================== =============== =========
Expand Down Expand Up @@ -243,6 +243,10 @@ data_files section 40.6.0 [#
.. [#opt-4] ``data_files`` is deprecated and should be avoided.
Please check :doc:`/userguide/datafiles` for more information.
.. [#opt-5] ``namespace_packages`` is deprecated in favour of native/implicit
namespaces (:pep:`420`). Check :doc:`the Python Packaging User Guide
<PyPUG:guides/packaging-namespace-packages>` for more information.
Compatibility with other tools
==============================
Expand Down
2 changes: 1 addition & 1 deletion docs/userguide/pyproject_config.rst
Expand Up @@ -94,7 +94,7 @@ Key Value Type (TOML) Notes
``py-modules`` array See tip below
``packages`` array or ``find`` directive See tip below
``package-dir`` table/inline-table Used when explicitly listing ``packages``
``namespace-packages`` array Not necessary if you use :pep:`420`
``namespace-packages`` array **Deprecated** - Use implicit namespaces instead (:pep:`420`)
``package-data`` table/inline-table See :doc:`/userguide/datafiles`
``include-package-data`` boolean ``True`` by default
``exclude-package-data`` table/inline-table
Expand Down

0 comments on commit 269f3ac

Please sign in to comment.