Skip to content

Commit 030e7bd

Browse files
committed
Revert "pkg_resources was deprecated in Python 3.12, switching to use packaging instead"
This reverts commit c53a996.
1 parent af268c2 commit 030e7bd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

release.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
from subprocess import CalledProcessError
66

7-
from packaging.version import parse
7+
from pkg_resources import parse_version
88

99
from async_subprocess import (
1010
call,
@@ -235,7 +235,7 @@ async def release(
235235
working_dir=working_dir,
236236
readonly=False,
237237
)
238-
if parse(old_version) >= parse(new_version):
238+
if parse_version(old_version) >= parse_version(new_version):
239239
raise ReleaseException(
240240
f"old version is {old_version} but the new version {new_version} is not newer"
241241
)

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ requests
44
sentry-sdk
55
tornado
66
virtualenv
7-
packaging

0 commit comments

Comments
 (0)