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

@@ -1,10 +1,16 @@
"""vppcfg setuptools setup.py for pip and deb pkg installations"""
import os
from setuptools import setup
# Read version from _version.py
version_file = os.path.join(os.path.dirname(__file__), "vppcfg", "_version.py")
with open(version_file) as f:
exec(f.read())
setup(
name="vppcfg",
version="1.0.2",
version=__version__,
install_requires=[
"requests",
'importlib-metadata; python_version >= "3.8"',