-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
43 lines (39 loc) · 1.29 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
import os
import time
try:
import yaml
except:
pass
from setuptools import setup, find_packages
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
if os.path.exists("./VERSION"):
with open("./VERSION", "r") as f:
AVI_PIP_VERSION = f.readline()
else:
ct = time.gmtime()
date = "%d%02d%02d%02d%02d" % (ct.tm_year, ct.tm_mon, ct.tm_mday, ct.tm_hour, ct.tm_min)
AVI_PIP_VERSION = '18.2.dev' + date
with open("./VERSION", "w+") as f:
f.write("%s" % AVI_PIP_VERSION)
setup(
name = 'aviheat',
version = AVI_PIP_VERSION,
packages = find_packages(),
description = 'Avi Heat Resources.',
url = 'http://avinetworks.com/',
author = 'Avi Networks',
author_email = '[email protected]',
classifiers = [
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
],
include_package_data=True,
install_requires = [''],
package_data={'avi': ['*.cfg', '*.conf', '*.crt', '*.json', '*.key',
'*.pem', '*.xml', '*.yaml']},
data_files = [('', ['VERSION'])],
)