Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65c70db
commit 01ba81f
Showing
4 changed files
with
50 additions
and
75 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,12 +1,14 @@ | ||
"""Package for Gitman.""" | ||
|
||
from pkg_resources import DistributionNotFound, get_distribution | ||
from importlib.metadata import PackageNotFoundError, version | ||
|
||
from .commands import delete as uninstall | ||
from .commands import display as list | ||
from .commands import init, install, lock, update | ||
|
||
try: | ||
__version__ = get_distribution("gitman").version | ||
except DistributionNotFound: | ||
__version__ = "???" | ||
__version__ = version("gitman") | ||
except PackageNotFoundError: | ||
__version__ = "(local)" | ||
|
||
|
||
del PackageNotFoundError | ||
del version |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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