Skip to content

Commit

Permalink
Merge pull request #1 from abravalheri/kwargs
Browse files Browse the repository at this point in the history
Suggestions for improvements over PR 3307
  • Loading branch information
ucodery committed May 6, 2022
2 parents 88e5784 + 1b8961f commit b485538
Show file tree
Hide file tree
Showing 8 changed files with 262 additions and 121 deletions.
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 b485538

Please sign in to comment.