Skip to content

Commit

Permalink
DEP: drop undeclared runtime dependency on setuptools
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Sep 23, 2024
1 parent b33c541 commit b0c1f81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 7 additions & 5 deletions mpl_scatter_density/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from .scatter_density_artist import * # noqa
from .scatter_density_axes import * # noqa

from pkg_resources import get_distribution, DistributionNotFound
import sys
if sys.version_info >= (3, 8):
from importlib.metadata import version
else:
from importlib_metadata import version

try:
__version__ = get_distribution('mpl-scatter-density').version
except DistributionNotFound:
__version__ = 'undefined'
__version__ = version("mpl-scatter-density")
del version, sys
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ install_requires =
numpy
matplotlib>=3.0
fast-histogram>=0.3
importlib_metadata>=1.4 ; python_version < '3.8'

[options.extras_require]
test =
Expand Down

0 comments on commit b0c1f81

Please sign in to comment.