-
Notifications
You must be signed in to change notification settings - Fork 0
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
Niko Heikkilä
committed
Jan 30, 2022
1 parent
fafd8f9
commit db13bcf
Showing
3 changed files
with
25 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 |
---|---|---|
|
@@ -15,4 +15,5 @@ for wheel in dist/*.whl; do | |
done | ||
|
||
echo "Testing executable" | ||
publicator --version | ||
publicator --help |
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" | ||
from importlib import metadata | ||
|
||
name = "publicator" | ||
|
||
|
||
def display_name() -> str: | ||
return name.capitalize() | ||
|
||
|
||
def version() -> str: | ||
return f"{display_name()} v{metadata.version(name)}" |
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