This repository has been archived by the owner on Jun 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (44 loc) · 1.58 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
from setuptools import setup, find_packages
import os
import shutil
src_dir = 'main'
package_directory = 'orangecloud_client'
package_name = 'orangecloud-client'
__version__ = None
version_file = '%s/%s/__init__.py' % (src_dir, package_directory)
with open(version_file, 'r') as f:
for line in f.readlines():
if line.find('__version__') >= 0:
exec line
if __version__ is None:
raise AssertionError('Failed to load version from %s' % version_file)
def purge_sub_dir(path):
shutil.rmtree(os.path.join(os.path.dirname(__file__), path))
setup(name=package_name,
version=__version__,
zip_safe=False,
packages=find_packages(where=src_dir),
author='Benjamin Einaudi',
author_email='[email protected]',
description='A client library for Orange cloud',
long_description=open('README.rst').read(),
url='http://github.com/antechrestos/orangecloud-client',
classifiers=[
"Programming Language :: Python",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.7",
"Topic :: Communications",
],
entry_points={
'console_scripts': [
'orangecloud-client = %s.commands.main:main' % package_directory,
]
},
package_dir={package_directory: '%s/%s' % (src_dir, package_directory)},
install_requires=[requirement.rstrip(' \r\n') for requirement in open('requirements.txt').readlines()],
tests_require=[
'mock==2.0.0',
],
test_suite='test',
)