forked from rosette-api/python
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
executable file
·59 lines (52 loc) · 1.7 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·59 lines (52 loc) · 1.7 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
#!/usr/bin/env python
"""setup.py"""
importos
importio
fromsetuptoolsimportsetup
importrosette
NAME="rosette_api"
DESCRIPTION="Rosette API Python client SDK"
AUTHOR="Basis Technology Corp."
AUTHOR_EMAIL="support@rosette.com"
HOMEPAGE="https://github.com/rosette-api/python"
VERSION=rosette.__version__
HERE=os.path.abspath(os.path.dirname(__file__))
defread(*filenames, **kwargs):
"""read function"""
encoding=kwargs.get('encoding', 'utf-8')
sep=kwargs.get('sep', '\n')
buf= []
forfilenameinfilenames:
withio.open(filename, encoding=encoding) asthe_file:
buf.append(the_file.read())
returnsep.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,
long_description_content_type='text/markdown',
packages=['rosette'],
install_requires=['requests'],
platforms='any',
url=HOMEPAGE,
version=VERSION,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)