Skip to content

Commit

Permalink
Merge pull request #443 from martinfleis/version
Browse files Browse the repository at this point in the history
MAINT: replace LooseVersion with packaging
  • Loading branch information
jGaboardi authored Jan 7, 2022
2 parents 7f66997 + 2503749 commit 0f03a31
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions ci/37.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ dependencies:
- geopandas>=0.7.0
- numba
- zstd
- packaging
2 changes: 1 addition & 1 deletion ci/38.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ dependencies:
- xarray
- joblib
- zstd
- packaging
# for docs build action (this env only)
- nbsphinx
- numpydoc
- sphinx>=1.4.3
- sphinxcontrib-bibtex<2.0.0
- sphinx_bootstrap_theme

2 changes: 1 addition & 1 deletion ci/39.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ dependencies:
- xarray
- joblib
- zstd
- packaging
# for docs build action (this env only)
- nbsphinx
- numpydoc
- sphinx>=1.4.3
- sphinxcontrib-bibtex<2.0.0
- sphinx_bootstrap_theme

1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ dependencies:
- pytest-cov
- descartes
- mapclassify
- packaging
4 changes: 2 additions & 2 deletions libpysal/weights/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
from collections import defaultdict
from itertools import tee
from ..common import requires
from distutils.version import LooseVersion
from packaging.version import Version

try:
import geopandas as gpd

GPD_08 = str(gpd.__version__) >= LooseVersion("0.8.0")
GPD_08 = Version(gpd.__version__) >= Version("0.8.0")
except ImportError:
warn("geopandas not available. Some functionality will be disabled.")

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ numpy>=1.3
pandas
requests
scipy>=0.11
packaging

0 comments on commit 0f03a31

Please sign in to comment.