Fix issues in naming and few other things

This commit is contained in:
ahmadbilalkhalid 2019-12-14 20:23:31 +05:00
commit 71279a968f
21 changed files with 274 additions and 281 deletions

View file

@ -8,8 +8,8 @@ try:
version = ucloud.version.VERSION
except:
import subprocess
c = subprocess.run(["git", "describe"], capture_output=True)
version = c.stdout.decode("utf-8")
c = subprocess.check_output(['git', 'describe'])
version = c.decode("utf-8").strip()
setup(name='ucloud',
@ -28,8 +28,7 @@ setup(name='ucloud',
packages=find_packages(),
install_requires=[
'requests',
'python-decouple',
'flask',
'Flask',
'flask-restful',
'bitmath',
'pyotp',
@ -37,8 +36,8 @@ setup(name='ucloud',
'sphinx',
'pynetbox',
'sphinx-rtd-theme',
'etcd3_wrapper @ https://code.ungleich.ch/ungleich-public/etcd3_wrapper/repository/master/archive.tar.gz#egg=etcd3_wrapper',
'etcd3 @ https://github.com/kragniz/python-etcd3/tarball/master#egg=etcd3',
],
scripts=['scripts/ucloud'],
data_files=[('/etc/ucloud/', ['conf/ucloud.conf'])],
zip_safe=False)