Move version to single place; Move 'build' to User Guide; Add 'make publish'

This commit is contained in:
Pim van Pelt
2025-11-09 04:37:38 +01:00
parent 67df74968b
commit 04258ad46d
7 changed files with 48 additions and 31 deletions

View File

@@ -24,9 +24,11 @@ import yaml
# Ensure the paths are correct when we execute from the source tree
try:
from vppcfg.config import Validator
from vppcfg._version import __version__
except ModuleNotFoundError:
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from vppcfg.config import Validator
from vppcfg._version import __version__
from vppcfg.vpp.reconciler import Reconciler
from vppcfg.vpp.dumper import Dumper
@@ -211,6 +213,7 @@ def main():
logging.basicConfig(
format="[%(levelname)-8s] %(name)s.%(funcName)s: %(message)s", level=level
)
logging.info(f"vppcfg version {__version__}")
opt_kwargs = {}
if "vpp_json_dir" in args and args.vpp_json_dir is not None: