Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add python_requires example #2746

Merged
merged 2 commits into from
Sep 4, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this went in as WIP here fdf51a0#diff-d8e87bebd32b21394e170d3e1c0b80f4ab7760f535056951676be88b2d9994d9R49

I'm not sure if you had an example in progress you wanted here instead, @alvyjudy


.. 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"],
...,
)