Skip to content

Commit c61c4df

Browse files
authored
switch to pkg_resources (#4216)
1 parent 8b33cfe commit c61c4df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/should_deploy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import subprocess
1919
import sys
2020

21-
from packaging import version
21+
from pkg_resources import parse_version
2222

2323
PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
2424

@@ -77,5 +77,5 @@ def read_version_of_local_package(version_file_path: str) -> str:
7777
remote_version = read_version_of_remote_package(args.name)
7878
local_version = read_version_of_local_package(local_version_file)
7979

80-
should_deploy = str(version.parse(remote_version) < version.parse(local_version)).lower()
80+
should_deploy = str(parse_version(remote_version) < parse_version(local_version)).lower()
8181
print(f"should_deploy={should_deploy}")

0 commit comments

Comments
 (0)