Skip to content

Commit b2d83eb

Browse files
Avoid usage of packaging in non-test code (#318)
1 parent f0c82b6 commit b2d83eb

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 0.7.1 (2023-10-26)
4+
5+
- Fix unspecified dependency on ``packaging`` (#318).
6+
37
## 0.7.0 (2023-10-25)
48

59
### Improvements

pyogrio/util.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from packaging.version import Version
21
import re
32
import sys
43
from urllib.parse import urlparse
@@ -188,7 +187,7 @@ def _mask_to_wkb(mask):
188187
try:
189188
import shapely
190189

191-
if Version(shapely.__version__) < Version("2.0.0"):
190+
if int(shapely.__version__.split(".")[0]) < 2:
192191
shapely = None
193192
except ImportError:
194193
shapely = None

0 commit comments

Comments
 (0)