-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEP: drop undeclared runtime dependency on setuptools
- Loading branch information
1 parent
b33c541
commit b0c1f81
Showing
2 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters