-
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.
NASA-AMMOS/slim#46: Move required versioning tooling into its own imp…
…ort for ease of reuse. ...
- Loading branch information
1 parent
372ca4d
commit f45ade4
Showing
3 changed files
with
12 additions
and
9 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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import importlib_metadata as metadata | ||
import version as v | ||
|
||
try: | ||
version = metadata.version(__name__) | ||
except metadata.PackageNotFoundError: | ||
# package is not installed, try reading from slim_sample_project script | ||
version = v.__version__ if v.__version__ else "unset" | ||
pass |