Skip to content

Commit

Permalink
use importlib, require python>=3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
johntruckenbrodt committed Apr 12, 2024
1 parent a258960 commit 08f8198
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions environment-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ channels:
- conda-forge
- defaults
dependencies:
- python>=3.8
- progressbar2
- pathos>=0.2
- numpy
Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ channels:
- conda-forge
- defaults
dependencies:
- python>=3.8
- progressbar2
- pathos>=0.2
- numpy
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2", "wheel"]
[project]
name = "spatialist"
description = "a Python module for spatial data handling"
requires-python = ">=3.5"
requires-python = ">=3.8"
license = { file = "LICENSE.txt" }
maintainers = [
{ name = "John Truckenbrodt", email = "[email protected]" }
Expand Down
8 changes: 2 additions & 6 deletions spatialist/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,5 @@
from .raster import Raster, stack, rasterize
from .sqlite_util import sqlite_setup, sqlite3

from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
pass
import importlib.metadata
__version__ = importlib.metadata.version(__name__)

0 comments on commit 08f8198

Please sign in to comment.