[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: |
|
||||||||||||
| 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:
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: |
| Comment by Githook User [ 30/May/23 ] |
|
Author: {'name': 'Roberto C. Sánchez', 'email': 'roberto@connexer.com', 'username': 'rcsanchez97'}Message: |
| 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: |
| Comment by Roberto Sanchez [ 25/May/23 ] |