Added version to setup and sbeam
This commit is contained in:
parent
051a441a50
commit
423cd36fed
9
setup.py
9
setup.py
|
@ -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/',
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue