Skip to content

Commit

Permalink
Docs: Combine keyword documentation (#3307)
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed May 16, 2022
2 parents 1b25c06 + 63d1671 commit 508d61c
Show file tree
Hide file tree
Showing 9 changed files with 274 additions and 193 deletions.
4 changes: 4 additions & 0 deletions changelog.d/3307.doc.rst
@@ -0,0 +1,4 @@
Added introduction to references/keywords
Added deprecation tags to test kwargs
Moved userguide/keywords to deprecated section
Clarified in deprecated doc what keywords came from distutils and which were added or changed by setuptools
6 changes: 6 additions & 0 deletions docs/conf.py
Expand Up @@ -129,6 +129,12 @@
},
}

# Redirect old docs so links and references in the ecosystem don't break
extensions += ['sphinx_reredirects']
redirects = {
"userguide/keywords": "/deprecated/changed_keywords.html",
}

# Add support for inline tabs
extensions += ['sphinx_inline_tabs']

Expand Down
112 changes: 112 additions & 0 deletions docs/deprecated/changed_keywords.rst
@@ -0,0 +1,112 @@
New and Changed ``setup()`` Keywords
====================================

This document tracks historical differences between ``setuptools`` and
``distutils``.

Since ``distutils`` was scheduled for removal from the standard library in
Python 3.12, and ``setuptools`` started its adoption, these differences became less
relevant.
Please check :doc:`/references/keywords` for a complete list of keyword
arguments that can be passed to the ``setuptools.setup()`` function and
a their full description.

.. tab:: Supported by both ``distutils`` and ``setuptoools``

``name`` string

``version`` string

``description`` string

``long_description`` string

``long_description_content_type`` string

``author`` string

``author_email`` string

``maintainer`` string

``maintainer_email`` string

``url`` string

``download_url`` string

``packages`` list

``py_modules`` list

``scripts`` list

``ext_package`` string

``ext_modules`` list

``classifiers`` list

``distclass`` Distribution subclass

``script_name`` string

``script_args`` list

``options`` dictionary

``license`` string

``license_file`` string **deprecated**

``license_files`` list

``keywords`` string or list

``platforms`` list

``cmdclass`` dictionary

``data_files`` list **deprecated**

``package_dir`` dictionary

``requires`` string or list **deprecated**

``obsoletes`` list **deprecated**

``provides`` list

.. tab:: Added or changed by ``setuptoools``

``include_package_data`` bool

``exclude_package_data`` dictionary

``package_data`` dictionary

``zip_safe`` bool

``install_requires`` string or list

``entry_points`` dictionary

``extras_require`` dictionary

``python_requires`` string

``setup_requires`` string or list **deprecated**

``dependency_links`` list **deprecated**

``namespace_packages`` list

``test_suite`` string or function **deprecated**

``tests_require`` string or list **deprecated**

``test_loader`` class **deprecated**

``eager_resources`` list

``project_urls`` dictionary
1 change: 1 addition & 0 deletions docs/deprecated/index.rst
Expand Up @@ -13,6 +13,7 @@ objectives.
.. toctree::
:maxdepth: 1

changed_keywords
python_eggs
easy_install
distutils/index
Expand Down

0 comments on commit 508d61c

Please sign in to comment.