We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pkg_resources
packaging
1 parent b2e0c6f commit 3fb44dcCopy full SHA for 3fb44dc
release.py
@@ -4,7 +4,7 @@
4
import os
5
from subprocess import CalledProcessError
6
7
-from pkg_resources import parse_version
+from packaging.version import parse
8
9
from async_subprocess import (
10
call,
@@ -235,7 +235,7 @@ async def release(
235
working_dir=working_dir,
236
readonly=False,
237
)
238
- if parse_version(old_version) >= parse_version(new_version):
+ if parse(old_version) >= parse(new_version):
239
raise ReleaseException(
240
f"old version is {old_version} but the new version {new_version} is not newer"
241
requirements.txt
@@ -4,3 +4,4 @@ requests
sentry-sdk
tornado
virtualenv
+packaging
0 commit comments