This repository has been archived by the owner on Apr 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
/
setup.py
74 lines (60 loc) · 1.72 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
72
73
74
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass into pytest")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = '-n auto'
def run_tests(self):
import shlex
import pytest
errno = pytest.main(shlex.split(self.pytest_args))
sys.exit(errno)
version_contents = {}
with open("fast_arrow/version.py", "r", encoding='utf-8') as f:
exec(f.read(), version_contents)
with open("README.md", "r") as f:
long_description = f.read()
deps = [
'datetime',
'deprecation',
'pathlib2',
'requests>=2.20.0',
'pandas>=0.23.2',
'numpy',
'yarl',
'urllib3>=1.24.2'
]
test_deps = [
'pipenv',
'pytest',
'pytest-cov',
'detox',
'flake8',
'vcrpy'
]
setup(name='fast_arrow',
version=version_contents['VERSION'],
description='A simple yet robust API client for Robinhood',
long_description=long_description,
long_description_content_type="text/markdown",
author='Weston Platter',
author_email='[email protected]',
url='https://github.com/westonplatter/fast_arrow/',
license='MIT License',
python_requires=">=3.5",
packages=[
'fast_arrow',
'fast_arrow.resources',
'fast_arrow.option_strategies'
],
package_data={'fast_arrow': ['ssl_certs/certs.pem']},
install_requires=deps,
tests_require=test_deps,
cmdclass={'test': PyTest},
project_urls={
'Issue Tracker': 'https://github.com/westonplatter/fast_arrow/issues',
'Source Code': 'https://github.com/westonplatter/fast_arrow',
}
)