-
Notifications
You must be signed in to change notification settings - Fork 7
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 retrieve the version. Reference 'scrunch' e…
…xplicitly.
- Loading branch information
Jason R. Coombs
committed
May 23, 2019
1 parent
f9e7b21
commit ddda349
Showing
2 changed files
with
4 additions
and
3 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,8 +1,8 @@ | ||
from pkg_resources import get_distribution, DistributionNotFound | ||
from importlib_metadata import version | ||
|
||
|
||
try: | ||
__version__ = get_distribution(__name__).version | ||
except DistributionNotFound: | ||
__version__ = version('scrunch') | ||
except Exception: | ||
# Package is installed from source. It's at least this version | ||
__version__ = '0.6.3-uninstalled' |
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 |
---|---|---|
|
@@ -37,6 +37,7 @@ | |
'requests', | ||
'six', | ||
'cr.cube', | ||
'importlib_metadata', | ||
], | ||
extras_require={ | ||
'testing': [ | ||
|