Skip to content

Commit 77d2aaa

Browse files
committed
Remove unneeded packaging dependency
1 parent e68203d commit 77d2aaa

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

poetry.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proxygen_cli/lib/version.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
from packaging.version import parse
2-
31
from proxygen_cli.lib import proxygen_api
42
from proxygen_cli import __version__ as proxygen_cli_version
53

6-
74
def validate_cli_version():
85
status = proxygen_api.status()
9-
required_cli_version = parse(status["proxygen_cli"]["min_version"])
10-
current_cli_version = parse(proxygen_cli_version)
11-
if current_cli_version < required_cli_version:
12-
raise RuntimeError(f"This version proxygen-cli is out-of-date. Please update to {required_cli_version}")
6+
required = tuple(int(x) for x in status["proxygen_cli"]["min_version"].split("."))
7+
current = tuple(int(x) for x in proxygen_cli_version.split("."))
8+
if current < required:
9+
raise RuntimeError(f"This version proxygen-cli is out-of-date. Please update to {status['proxygen_cli']['min_version']}")

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "proxygen-cli"
3-
version = "3.0.0"
3+
version = "3.0.1" # Versions must be x.y.z integers for version comparisons
44
description = "CLI for interacting with NHSD APIM's proxygen service"
55
authors = ["Ben Strutt <ben.strutt1@nhs.net>"]
66
readme = "README.md"
@@ -21,7 +21,6 @@ cryptography = "44.0.1"
2121
pyyaml = "^6.0.3"
2222
yaspin = "^3.2.0"
2323
tabulate = "^0.9.0"
24-
packaging = "^24.2"
2524
cffi = "^1.17.1"
2625

2726
[tool.poetry.group.dev.dependencies]

0 commit comments

Comments
 (0)