From 8bb2931eb1575dabb38a2e79519efce547b3f120 Mon Sep 17 00:00:00 2001 From: Mat Kelly Date: Wed, 8 Nov 2023 15:16:48 -0500 Subject: [PATCH] Use packaging module to compare versions for #814 --- ipwb/util.py | 2 +- requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ipwb/util.py b/ipwb/util.py index 02e9cea0..1ebf6d96 100644 --- a/ipwb/util.py +++ b/ipwb/util.py @@ -24,7 +24,7 @@ from ipfshttpclient.exceptions import ConnectionError, AddressError from multiaddr.exceptions import StringParseError -from pkg_resources import parse_version +from packaging.version import parse as parse_version from .exceptions import IPFSDaemonNotAvailable diff --git a/requirements.txt b/requirements.txt index ae88d1df..e2cad882 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,3 +6,4 @@ requests>=2.19.1 beautifulsoup4>=4.6.3 surt>=0.3.0 multiaddr >= 0.0.9 +packaging==23.0