-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from deprecated pkg_resources to importlib.metadata
- Loading branch information
1 parent
e387fe5
commit 647c9d1
Showing
3 changed files
with
11 additions
and
15 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
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,8 @@ | ||
"""A template repository for a Python package created by Catalyst Cooperative.""" | ||
|
||
import importlib.metadata | ||
import logging | ||
|
||
import pkg_resources | ||
|
||
# In order for the package modules to be available when you import the package, | ||
# they need to be imported here somehow. Not sure if this is best practice though. | ||
import cheshire.cli | ||
|
@@ -14,7 +13,7 @@ | |
__maintainer__ = "Cheshire Cat" | ||
__license__ = "MIT License" | ||
__maintainer_email__ = "[email protected]" | ||
__version__ = pkg_resources.get_distribution("catalystcoop.cheshire").version | ||
__version__ = importlib.metadata.version("catalystcoop.cheshire") | ||
__docformat__ = "restructuredtext en" | ||
__description__ = "A template for Python package repositories." | ||
__long_description__ = """ | ||
|
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