[CDRIVER-4603] Replace usage of deprecated distutils module in calc_release_version.py Created: 05/Apr/23  Updated: 28/Oct/23  Resolved: 30/May/23

Status: Closed
Project: C Driver
Component/s: Build
Affects Version/s: None
Fix Version/s: 1.24.0

Type: Task Priority: Unknown
Reporter: Jeremy Mikola Assignee: Roberto Sanchez
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
is cloned by CXX-2694 Replace usage of deprecated distutils... Closed
Related
related to MONGOCRYPT-566 Replace usage of deprecated distutils... Closed

 Description   

calc_release_version.py imports distutils.version.LooseVersion. The distutils module was deprecated in Python 3.10 and will be removed in Python 3.12. PEP 632 suggests setuptools as the modern alternative. PEP 386 also has some discussion about version parsing, which could be relevant.

Some related PRs migrating away from distutils:



 Comments   
Comment by Githook User [ 01/Jun/23 ]

Author:

{'name': 'Ezra Chung', 'email': '88335979+eramongodb@users.noreply.github.com', 'username': 'eramongodb'}

Message: CDRIVER-4603 Apply fallback for packaging -> pkg_resources -> distutils (#1290)

  • Ensure pipefails detection in fetch-source
  • Avoid printing Python binary in fetch-source
Comment by Githook User [ 30/May/23 ]

Author:

{'name': 'Roberto C. Sánchez', 'email': 'roberto@connexer.com', 'username': 'rcsanchez97'}

Message: CDRIVER-4603 use setuptools rather than distutils (deprecated) for version calc (#1281)
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/d9569499eaccd304f0f96766717729123c6b3428

Comment by Roberto Sanchez [ 25/May/23 ]

https://github.com/mongodb/mongo-c-driver/pull/1281

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