mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 08:54:42 +00:00
ci/cd
This commit is contained in:
1 parent
6ff864cb9e
commit
c202f6b219
3 files changed
+63
-33
No files matched your search
@@ -0,0 +1,10 @@
|
||||
import os
|
||||
from importlib import metadata as importlib_metadata
|
||||
|
||||
try:
|
||||
__version__ = importlib_metadata.version("swingmusic")
|
||||
except importlib_metadata.PackageNotFoundError:
|
||||
# fallback to version.txt
|
||||
version_file = os.path.join(os.path.dirname(__file__), "..", "..", "version.txt")
|
||||
with open(version_file, "r") as f:
|
||||
__version__ = f.read().strip()
|
||||
Reference in new issue
Block a user