Skip to content

Use looseversion instead of deprecated distutils #1391

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions etc/make_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

import textwrap
import re
from distutils.version import LooseVersion
from looseversion import LooseVersion
import os
import glob
import subprocess
Expand Down Expand Up @@ -621,7 +621,7 @@ def read_github_creds(github_token_file):
Read the GitHub token from the specified file and return it as a string.
"""

token_re = re.compile('^(?:Token - )?(?P<tok>\w{40}).*$')
token_re = re.compile(r'^(?:Token - )?(?P<tok>\w{40}).*$')
github_token = None

with open(github_token_file, 'rb') as token_stream:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mongo-cxx-driver"
version = "0.1.0"
description = "For development only."
requires-python = ">=3.10,<3.12"
requires-python = ">=3.10"
dependencies = []

[dependency-groups]
Expand Down Expand Up @@ -35,7 +35,7 @@ config_generator = [
]

make_release = [
# etc/make_release.py (requires python<3.12)
# etc/make_release.py
"click>=6.0",
"gitpython>=3.1",
"jira>=3.1",
Expand Down
Loading