Skip to content

Add python_requires to setup.py #537

@pganssle

Description

@pganssle

Right now we're just using the trove classifiers, so I think people may end up doing some complicated pinning, which is less than ideal (see #536 and #526). What we need is the Requires-Python: metadata in pip. I think this is added through setup.py. Here are some examples of people using it:

@Carreau gave this talk at PyBay (link goes to the relevant time - 11 minutes in) where he discusses the python_requires option (slides are here), probably best to listen to what he's talking about and avoid or document the pitfalls here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions