Skip to content

Commit

Permalink
Merge pull request #2746 from graingert/patch-1
Browse files Browse the repository at this point in the history
add python_requires example
  • Loading branch information
jaraco authored Sep 4, 2021
2 parents 41df8fe + 60e3e22 commit 234550d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/2746.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add python_requires example
23 changes: 22 additions & 1 deletion docs/userguide/dependency_management.rst
Original file line number Diff line number Diff line change
Expand Up @@ -341,4 +341,25 @@ In some cases, you might need to specify the minimum required python version.
This is handled with the ``python_requires`` keyword supplied to ``setup.cfg``
or ``setup.py``.

Example WIP

.. tab:: setup.cfg

.. code-block:: ini
[metadata]
name = Project-B
#...
[options]
#...
python_requires = >=3.6
.. tab:: setup.py

.. code-block:: python
setup(
name="Project-B",
python_requires=[">=3.6"],
...,
)

0 comments on commit 234550d

Please sign in to comment.