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 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(
|
setup(
|
||||||
name="sbeam",
|
name="sbeam",
|
||||||
description="",
|
description="SuperBeam CLI Client",
|
||||||
version="0.3",
|
version=main_ns['__VERSION__'],
|
||||||
author="JayPiKay",
|
author="JayPiKay",
|
||||||
author_email="jpk+python@goatpr0n.de",
|
author_email="jpk+python@goatpr0n.de",
|
||||||
url='https://git.goatpr0n.de/',
|
url='https://git.goatpr0n.de/',
|
||||||
|
|
|
@ -31,7 +31,11 @@ import requests
|
||||||
import SuperBeam
|
import SuperBeam
|
||||||
|
|
||||||
|
|
||||||
|
__VERSION__ = '0.4'
|
||||||
|
|
||||||
|
|
||||||
@click.group()
|
@click.group()
|
||||||
|
@click.version_option(version=__VERSION__, prog_name='SuperBeam CLI')
|
||||||
def cli():
|
def cli():
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue