This repository has been archived by the owner on Oct 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use importlib.metadata to dynamically populate module metadata
- Loading branch information
1 parent
8d19b03
commit db3480b
Showing
2 changed files
with
15 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
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 |
---|---|---|
|
@@ -10,15 +10,22 @@ | |
'__version_info__', | ||
] | ||
|
||
__title__ = 'google-music-scripts' | ||
__summary__ = 'A collection of scripts to interact with Google Music.' | ||
__url__ = 'https://github.com/thebigmunch/google-music-scripts' | ||
try: | ||
from importlib.metadata import metadata | ||
except ImportError: | ||
from importlib_metadata import metadata | ||
|
||
__version__ = '4.2.0' | ||
meta = metadata('google-music-scripts') | ||
|
||
__title__ = meta['Name'] | ||
__summary__ = meta['Summary'] | ||
__url__ = meta['Home-page'] | ||
|
||
__version__ = meta['Version'] | ||
__version_info__ = tuple(int(i) for i in __version__.split('.') if i.isdigit()) | ||
|
||
__author__ = 'thebigmunch' | ||
__author_email__ = '[email protected]' | ||
__author__ = meta['Author'] | ||
__author_email__ = meta['Author-email'] | ||
|
||
__license__ = 'MIT' | ||
__license__ = meta['License'] | ||
__copyright__ = f'2018-2020 {__author__} <{__author_email__}>' |