-
Notifications
You must be signed in to change notification settings - Fork 3
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
ea353a6
commit 977a07e
Showing
4 changed files
with
17 additions
and
11 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,6 +1,6 @@ | ||
[project] | ||
name = "chrisomatic" | ||
version = "0.9.0" | ||
version = "0.0.0" # version is set by `rye version` in .github/workflows/build.yml | ||
description = "ChRIS backend provisioner" | ||
authors = [ | ||
{ name = "Jennings Zhang", email = "[email protected]" } | ||
|
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 @@ | ||
from importlib.metadata import Distribution, PackageNotFoundError | ||
|
||
|
||
try: | ||
_pkg = Distribution.from_name(__package__) | ||
__version__ = _pkg.version | ||
except PackageNotFoundError: | ||
__version__ = "unknown" | ||
from __version__ import __version__ |
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,4 @@ | ||
from pathlib import Path | ||
|
||
__file = Path(__file__).parent / "version.txt" | ||
__version__ = __file.read_text() if __file.exists() else "0.0.0-unknown" |