Skip to content

Commit

Permalink
Added version file
Browse files Browse the repository at this point in the history
  • Loading branch information
markqvist committed Sep 14, 2022
1 parent afe529f commit ff48661
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions LXMF/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
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')]
1 change: 1 addition & 0 deletions LXMF/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.1.7"
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
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="[email protected]",
description="Lightweight Extensible Message Format for Reticulum",
Expand Down

0 comments on commit ff48661

Please sign in to comment.