This repository has been archived by the owner on Feb 17, 2021. It is now read-only.
-
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.
- Loading branch information
staticdev
committed
Apr 6, 2020
1 parent
e0450d5
commit 3c710fc
Showing
3 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
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
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 +1,11 @@ | ||
__version__ = "0.1.0" | ||
"""The TOML validator.""" | ||
try: | ||
from importlib.metadata import version, PackageNotFoundError # type: ignore | ||
except ImportError: # pragma: no cover | ||
from importlib_metadata import version, PackageNotFoundError # type: ignore | ||
|
||
|
||
try: | ||
__version__ = version(__name__) | ||
except PackageNotFoundError: # pragma: no cover | ||
__version__ = "unknown" |