From ff48661f60df3deab26029b3d45ff2e2a96cae5e Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 14 Sep 2022 16:30:42 +0200 Subject: [PATCH] Added version file --- LXMF/__init__.py | 2 ++ LXMF/_version.py | 1 + setup.py | 4 +++- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 LXMF/_version.py diff --git a/LXMF/__init__.py b/LXMF/__init__.py index e0924fe..dc0abbb 100644 --- a/LXMF/__init__.py +++ b/LXMF/__init__.py @@ -3,5 +3,7 @@ import glob from .LXMessage import LXMessage from .LXMRouter import LXMRouter +from ._version import __version__ + modules = glob.glob(os.path.dirname(__file__)+"/*.py") __all__ = [ os.path.basename(f)[:-3] for f in modules if not f.endswith('__init__.py')] \ No newline at end of file diff --git a/LXMF/_version.py b/LXMF/_version.py new file mode 100644 index 0000000..283b03a --- /dev/null +++ b/LXMF/_version.py @@ -0,0 +1 @@ +__version__ = "0.1.7" \ No newline at end of file diff --git a/setup.py b/setup.py index 449ec5f..5695c2a 100644 --- a/setup.py +++ b/setup.py @@ -3,9 +3,11 @@ import setuptools with open("README.md", "r") as fh: long_description = fh.read() +exec(open("LXMF/_version.py", "r").read()) + setuptools.setup( name="lxmf", - version="0.1.7", + version=__version__, author="Mark Qvist", author_email="mark@unsigned.io", description="Lightweight Extensible Message Format for Reticulum",