forked from GenericMappingTools/pygmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace pkg_resources with importlib.metadata (GenericMappingTools#1674)
Use `importlib.metadata` from the standard library (added in Python 3.8) to retrieve the package version at runtime. A bit faster than using the `pkg_resources` which adds some overhead and sets a runtime dependency on `setuptools`. * rename version variables in __init__.py Co-authored-by: TIAN Dongdong <[email protected]>
- Loading branch information
1 parent
63f41da
commit e6a19b9
Showing
1 changed file
with
4 additions
and
7 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