-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathsetup.py
71 lines (53 loc) · 1.74 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
from setuptools import setup, find_packages
MODULE_NAME = 'ocs_sdk'
def get_version():
with open(os.path.join(
os.path.dirname(__file__), MODULE_NAME, '__init__.py')
) as init:
for line in init.readlines():
res = re.match(r'__version__ *= *[\'"]([0-9\.]*)[\'"]$', line)
if res:
return res.group(1)
def get_long_description():
readme = os.path.join(os.path.dirname(__file__), 'README.rst')
changes = os.path.join(os.path.dirname(__file__), 'CHANGES.rst')
return open(readme).read() + '\n' + open(changes).read()
setup(
name='ocs-sdk',
version=get_version(),
description="Tools to query the REST APIs of Online.net's cloud services",
long_description=get_long_description(),
author='Online Labs',
author_email='opensource@labs.online.net',
url='http://github.com/online-labs/ocs-sdk',
license='BSD',
install_requires=[
'slumber >= 0.6.0',
],
packages=find_packages(),
tests_require=[
'httpretty >= 0.8.0',
],
test_suite=MODULE_NAME + '.tests',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet',
'Topic :: System :: Distributed Computing',
],
entry_points={
'console_scripts': [
]
}
)