From b0ac79a82deb833e6e3ae11bff32bcd5ab8481f0 Mon Sep 17 00:00:00 2001 From: Datta Date: Tue, 27 Jan 2026 12:02:57 +0530 Subject: [PATCH 1/2] Adding library for packaging and version --- PyPowerStore/utils/helpers.py | 2 +- requirements.txt | 1 + setup.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/PyPowerStore/utils/helpers.py b/PyPowerStore/utils/helpers.py index c01c98e..8fd2a92 100644 --- a/PyPowerStore/utils/helpers.py +++ b/PyPowerStore/utils/helpers.py @@ -6,7 +6,7 @@ import logging -from pkg_resources import parse_version +from packaging.version import Version as parse_version from PyPowerStore.utils import constants diff --git a/requirements.txt b/requirements.txt index c1b50b4..a2921cc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ requests==2.32.3 urllib3==2.4.0 +packaging==26.0 diff --git a/setup.py b/setup.py index 9480a4d..2a3a06f 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ description="Python Library for Dell PowerStore", author="Ansible Team at Dell", author_email="ansible.team@dell.com", - install_requires=["urllib3>=1.26.7", "requests>=2.23.0"], + install_requires=["urllib3>=1.26.7", "requests>=2.23.0", "packaging>=26.0"], license_files=("LICENSE",), classifiers=["License :: OSI Approved :: Apache Software License"], url="https://github.com/dell/python-powerstore", From 72ee61106e95a8cdee4c436e5a0ced587273c7a9 Mon Sep 17 00:00:00 2001 From: Datta Date: Tue, 27 Jan 2026 13:41:44 +0530 Subject: [PATCH 2/2] Adding library for packaging and version --- requirements.txt | 1 + setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index a2921cc..98c1c10 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ requests==2.32.3 urllib3==2.4.0 packaging==26.0 +setuptools==80.10.2 diff --git a/setup.py b/setup.py index 2a3a06f..b045e7a 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ description="Python Library for Dell PowerStore", author="Ansible Team at Dell", author_email="ansible.team@dell.com", - install_requires=["urllib3>=1.26.7", "requests>=2.23.0", "packaging>=26.0"], + install_requires=["urllib3>=1.26.7", "requests>=2.23.0", "packaging>=26.0", "setuptools>=80.10.2"], license_files=("LICENSE",), classifiers=["License :: OSI Approved :: Apache Software License"], url="https://github.com/dell/python-powerstore",