Added version to setup and sbeam

This commit is contained in:
jpk 2019-09-01 19:09:18 +02:00
parent 051a441a50
commit 423cd36fed
2 changed files with 11 additions and 2 deletions

View File

@ -1,10 +1,15 @@
from setuptools import setup, find_namespace_packages
from distutils.util import convert_path
main_ns = {}
ver_path = convert_path('src/sbeam.py')
with open(ver_path) as ver_file:
exec(ver_file.read(), main_ns)
setup(
name="sbeam",
description="",
version="0.3",
description="SuperBeam CLI Client",
version=main_ns['__VERSION__'],
author="JayPiKay",
author_email="jpk+python@goatpr0n.de",
url='https://git.goatpr0n.de/',

View File

@ -31,7 +31,11 @@ import requests
import SuperBeam
__VERSION__ = '0.4'
@click.group()
@click.version_option(version=__VERSION__, prog_name='SuperBeam CLI')
def cli():
pass