Use python_requires to enforce required Python versions at install time

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Trivial - P5
    • 3.8
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We should use the python_requires setup option to enforce supported Python versions at install time. This will have to wait for us to drop support for pypy3.2. The syntax once pypy3.2 and python 2.6 are dropped should look like this:

      python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*'
      

      Note that we'll have to build wheels using at least setuptools 24.2.0 for this to work (which shouldn't be a problem anywhere), and versions of pip older than 9.0.0 completely ignore this.

            Assignee:
            Bernie Hackett
            Reporter:
            Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: