2019-12-22 07:26:48 +00:00
|
|
|
import os
|
|
|
|
|
2019-12-03 10:40:41 +00:00
|
|
|
from setuptools import setup, find_packages
|
|
|
|
|
|
|
|
with open("README.md", "r") as fh:
|
|
|
|
long_description = fh.read()
|
|
|
|
|
2019-12-07 13:01:44 +00:00
|
|
|
try:
|
|
|
|
import ucloud.version
|
|
|
|
version = ucloud.version.VERSION
|
|
|
|
except:
|
|
|
|
import subprocess
|
2019-12-14 15:23:31 +00:00
|
|
|
c = subprocess.check_output(['git', 'describe'])
|
|
|
|
version = c.decode("utf-8").strip()
|
2019-12-07 13:01:44 +00:00
|
|
|
|
|
|
|
|
2019-12-03 10:40:41 +00:00
|
|
|
setup(name='ucloud',
|
2019-12-07 13:01:44 +00:00
|
|
|
version=version,
|
2019-12-03 10:40:41 +00:00
|
|
|
description='All ucloud server components.',
|
|
|
|
url='https://code.ungleich.ch/ucloud/ucloud',
|
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type='text/markdown',
|
|
|
|
classifiers=[
|
|
|
|
'Development Status :: 3 - Alpha',
|
|
|
|
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
|
|
|
|
'Programming Language :: Python :: 3'
|
|
|
|
],
|
|
|
|
author='ungleich',
|
|
|
|
author_email='technik@ungleich.ch',
|
|
|
|
packages=find_packages(),
|
|
|
|
install_requires=[
|
|
|
|
'requests',
|
2019-12-22 07:33:59 +00:00
|
|
|
'Flask>=1.1.1',
|
2019-12-03 10:40:41 +00:00
|
|
|
'flask-restful',
|
|
|
|
'bitmath',
|
|
|
|
'pyotp',
|
|
|
|
'sshtunnel',
|
|
|
|
'sphinx',
|
|
|
|
'pynetbox',
|
2019-12-22 08:47:16 +00:00
|
|
|
'colorama',
|
2019-12-03 10:40:41 +00:00
|
|
|
'sphinx-rtd-theme',
|
|
|
|
'etcd3 @ https://github.com/kragniz/python-etcd3/tarball/master#egg=etcd3',
|
2019-12-23 07:58:04 +00:00
|
|
|
'werkzeug'
|
2019-12-03 10:40:41 +00:00
|
|
|
],
|
2019-12-07 12:23:48 +00:00
|
|
|
scripts=['scripts/ucloud'],
|
2019-12-22 07:26:48 +00:00
|
|
|
data_files=[(os.path.expanduser('~/ucloud/'), ['conf/ucloud.conf'])],
|
2019-12-07 12:23:48 +00:00
|
|
|
zip_safe=False)
|