forked from rosette-api/python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·50 lines (43 loc) · 1.42 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
#!/usr/bin/env python
"""setup.py"""
import os
import io
from setuptools import setup
import rosette
NAME = "rosette_api"
DESCRIPTION = "Rosette API Python client SDK"
AUTHOR = "Basis Technology Corp."
AUTHOR_EMAIL = "[email protected]"
HOMEPAGE = "https://developer.rosette.com"
VERSION = rosette.__version__
HERE = os.path.abspath(os.path.dirname(__file__))
def read(*filenames, **kwargs):
"""read function"""
encoding = kwargs.get('encoding', 'utf-8')
sep = kwargs.get('sep', '\n')
buf = []
for filename in filenames:
with io.open(filename, encoding=encoding) as the_file:
buf.append(the_file.read())
return sep.join(buf)
LONG_DESCRIPTION = read('README.md')
setup(name=NAME,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
description=DESCRIPTION,
license='Apache License',
long_description=LONG_DESCRIPTION,
packages=['rosette'],
install_requires=['requests'],
platforms='any',
url=HOMEPAGE,
version=VERSION,
classifiers=[
'Programming Language :: Python',
'Development Status :: 4 - Beta',
'Natural Language :: English',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules'])