[MONGOCRYPT-566] 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: Libmongocrypt
Component/s: Build
Affects Version/s: None
Fix Version/s: 1.9.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:
Related
is related to CDRIVER-4603 Replace usage of deprecated distutils... Closed
is related to CXX-2694 Replace usage of deprecated distutils... Closed
Binding Changes: Not Needed

 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': 'Roberto C. Sánchez', 'email': 'roberto@connexer.com', 'username': 'rcsanchez97'}

Message: MONGOCRYPT-566 Apply fallback for packaging -> pkg_resources -> distu… (#655)

  • MONGOCRYPT-566 Apply fallback for packaging -> pkg_resources -> distutils

Based on mongodb/mongo-c-driver@c35519cc5fb0

Comment by Cloud GitHub Webhooks [ 01/Jun/23 ]

rcsanchez97 merged a pull request (MONGOCRYPT-566 Apply fallback for packaging -> pkg_resources -> distu…) into the following branch:
master: 835c72c974f241632570abe4f0cf9e7fbbd20fd8

Comment by Githook User [ 30/May/23 ]

Author:

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

Message: MONGOCRYPT-566 use setuptools rather than distutils (deprecated) for version calc (#651)
Branch: master
https://github.com/mongodb/libmongocrypt/commit/64d5a7dc6385f6efd78ee967460b492ad6ba23eb

Comment by Cloud GitHub Webhooks [ 30/May/23 ]

rcsanchez97 merged a pull request (MONGOCRYPT-566 use setuptools rather than distutils (deprecated) for version calc) into the following branch:
master: 64d5a7dc6385f6efd78ee967460b492ad6ba23eb

Comment by Roberto Sanchez [ 25/May/23 ]

https://github.com/mongodb/libmongocrypt/pull/651

Generated at Thu Feb 08 09:08:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.