Fix deprecation warnings in calc_release_version.py

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Gone away
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Not Needed
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Scope

      • Fix deprecation warnings in calc_release_version.py related to "distutils Version classes"

      Background & Motivation

      calc_release_version.py outputs deprecation warnings with Python 3.10.6:

      % cmake ..(...)-- Found PythonInterp: /Users/kevin.albertson/.venv-08212022/bin/python (found version "3.10.6") 
      /Users/kevin.albertson/review/mongo-c-driver-1105/build/calc_release_version.py:218: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
        version_loose = LooseVersion('0.0.0')
      /Users/kevin.albertson/review/mongo-c-driver-1105/build/calc_release_version.py:77: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
        version_loose = LooseVersion('0.0.0')
      

      Consider removing a dependency for version strings. mongo-c-driver-tools has a Version class that may be useful.

            Assignee:
            Unassigned
            Reporter:
            Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: