-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
90 lines (76 loc) · 2.35 KB
/
setup.py
File metadata and controls
90 lines (76 loc) · 2.35 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Licensed to Alpine Data, Inc.
# Copyright 2017 Alpine Data All Rights reserved.
from __future__ import print_function
import os
version_major = 1
version_minor = 0
version_build = 0
# For jenkins packaging to pass version number.
# Adding the following step in jenkins for the build number
# echo $BUILD_NUMBER > build.info
def __path(filename):
return os.path.join(os.path.dirname(__file__),
filename)
if os.path.exists(__path('build.info')):
build = open(__path('build.info')).read().strip()
if os.path.exists(__path('build.info')):
version_build = open(__path('build.info')).read().strip()
# -----
try:
from setuptools import setup, find_packages
extra = {}
except ImportError:
from distutils.core import setup
extra = {}
import sys
if sys.version_info <= (2, 6):
error = "ERROR: alpine requires Python Version 2.7 or above...exiting."
print(error, file=sys.stderr)
sys.exit(1)
# TBD
install_requires = [
'requests >= 2.13.0',
'pytz',
]
def readme():
with open("README.rst") as f:
return f.read()
setup(
name="alpine",
version='{0}.{1}.{2}'.format(version_major, version_minor, version_build),
description="Alpine Web API Client",
long_description=readme(),
author="Alpine Data, Inc.",
author_email="ggao@alpinenow.com",
keywords='alpine api sdk chorus',
url="https://github.com/AlpineNow/python-alpine-api",
packages=find_packages(exclude=['future', 'doc', "examples", 'tests*']),
package_data={
"alpine": ["logging.json"],
},
package_dir = {
'alpine': 'alpine',
},
install_requires=install_requires,
license="MIT License",
platforms="Linux; MacOS X; Windows",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Internet",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
],
include_package_data=True,
zip_safe=False,
test_suite='tests.api',
tests_require=['nose'],
**extra
)