[CDRIVER-4475] Fix deprecation warnings in calc_release_version.py Created: 14/Sep/22  Updated: 10/Feb/23

Status: Backlog
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: CDRIVER-4577

 Description   

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.


Generated at Wed Feb 07 21:21:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.