forked from faucetsdn/forch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (46 loc) · 1.28 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import os
import setuptools
import sys
def get_http_files():
file_list = []
for file in os.listdir('public'):
file_list.append(os.path.join('public', file))
return file_list
data_files = []
data_files.append(('lib/forch/public', get_http_files()))
with open("README.md", "r") as fh:
long_description = fh.read()
version = os.popen('git describe').read().strip()
version_content = f'''"""Forch version file"""
__version__ = '{version}'
'''
with open('forch/__version__.py', 'w+') as version_file:
version_file.write(version_content)
setuptools.setup(
name="forch",
description="Faucet orchestrator",
long_description=long_description,
long_description_content_type="text/markdown",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: Debian",
],
python_requires='>=3.6',
install_requires=[
'grpcio',
'pbr>=1.9',
'prometheus_client',
'protobuf',
'psutil',
'pyyaml',
'requests',
'setuptools>=17.1',
'watchdog',
'wheel',
],
setup_requires=['pbr>=1.9', 'setuptools>=17.1'],
data_files=data_files,
pbr=True
)