-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy pathsetup.py
More file actions
59 lines (50 loc) · 1.76 KB
/
setup.py
File metadata and controls
59 lines (50 loc) · 1.76 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
# ----------------------------------------------------------------------
# setup.py -- v20 setup script
#
# Copyright (C) 2016, OANDA Corporation.
# ----------------------------------------------------------------------
import os
import codecs
from setuptools import setup
HERE = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
"""
Build an absolute path from *parts* and and return the contents of the
resulting file. Assume UTF-8 encoding.
"""
with codecs.open(os.path.join(HERE, *parts), "rb", "utf-8") as f:
return f.read()
def main():
# setup dictionary
setup_options = {
"name": "v20",
"version": "3.0.25.1",
"description": "OANDA v20 bindings for Python",
"long_description": read("README.rst"),
"author": "OANDA Corporation",
"author_email": "api@oanda.com",
"url": "https://github.com/oanda/v20-python",
"license": "MIT",
"install_requires": ['requests', 'ujson'],
"packages": ["v20"],
"data_files": [('', ['LICENSE.txt', 'ChangeLog'])],
"platforms": ["any"],
"zip_safe": True,
"classifiers": [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: Other/Proprietary License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Topic :: Software Development',
'Topic :: Software Development :: Libraries',
'Topic :: Utilities'
]
}
# Run the setup
setup(**setup_options)
if __name__ == '__main__':
main()