more dynamic versioning stuff
Some checks failed
Python package / lint (push) Successful in 7s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Successful in 9s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been skipped
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Sign the Python 🐍 distribution 📦 with Sigstore and upload them to GitHub Release (push) Has been skipped
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to TestPyPI (push) Failing after 2s
Some checks failed
Python package / lint (push) Successful in 7s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Successful in 9s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been skipped
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Sign the Python 🐍 distribution 📦 with Sigstore and upload them to GitHub Release (push) Has been skipped
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to TestPyPI (push) Failing after 2s
This commit is contained in:
parent
f750ec9040
commit
b6f593fa4a
1
goat_monitor/_version.py
Normal file
1
goat_monitor/_version.py
Normal file
|
@ -0,0 +1 @@
|
|||
__version__ = "editable"
|
|
@ -9,7 +9,7 @@ import gotify
|
|||
import numpy as np
|
||||
import toml
|
||||
|
||||
from goat_monitor import __version__
|
||||
from goat_monitor._version import __version__
|
||||
|
||||
|
||||
# %% commands
|
||||
|
@ -37,7 +37,7 @@ def wrap(command: List[str], config: Path, retries: int, version):
|
|||
"""Wrap an arbitrary command with gotify notifications"""
|
||||
|
||||
if version:
|
||||
print(version)
|
||||
print(__version__)
|
||||
sys.exit(0)
|
||||
|
||||
# read settings first
|
||||
|
|
|
@ -20,6 +20,8 @@ homepage = "https://git.brendanhaines.com/brendanhaines/goat_monitor"
|
|||
[project.scripts]
|
||||
goat_monitor = "goat_monitor.goat_monitor:main"
|
||||
|
||||
[tool.setuptools_scm]
|
||||
version_file = "goat_monitor/_version.py"
|
||||
|
||||
[tool.black]
|
||||
line-length = 120
|
||||
|
|
Loading…
Reference in New Issue
Block a user