Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1541

Use python_requires to enforce required Python versions at install time

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

      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@mongodb.com Bernie Hackett
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: