Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-635

typing module requirement clobbers standard library version

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.5.8
    • 2.5.7
    • library
    • None

    Description

      As part of the setup script for the library, the typing module is specified as a requirement.

      This didn't used to be part of the standard library but has been since 3.5.
      I believe that we need the backport of certain features for the SDK to work correctly with its type hints.
      All of these are part of the standard library version as of Python 3.7, so we should not install the external dependency if the python version is 3.7 or greater.

      This is already done in 3.x (https://github.com/couchbase/couchbase-python-client/blob/master/requirements.txt#L5) but still affects the existing the 2.5.x branch.

      This means that anyone who wants to install the Python SDK has to accept clobbering their standard library typing module and many build systems will actively prevent this, blocking upgrade and adoption for some users.

      Attachments

        For Gerrit Dashboard: PYCBC-635
        # Subject Branch Project Status CR V

        Activity

          People

            matt.carabine Matt Carabine (Inactive)
            matt.carabine Matt Carabine (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty