Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wiseplat
GitHub Repository: wiseplat/python-code
Path: blob/master/ invest-robot-contest_tinvest_robot-master/setup.py
5925 views
1
import setuptools
2
import os
3
4
__location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))
5
6
with open("README.md", "r") as fh:
7
long_description = fh.read()
8
9
10
def read_requirements():
11
reqs_path = os.path.join(__location__, 'requirements.txt')
12
with open(reqs_path, encoding='utf8') as f:
13
reqs = [line.strip() for line in f if not line.strip().startswith('#')]
14
15
names = []
16
for req in reqs:
17
names.append(req)
18
return {'install_requires': names}
19
20
21
setuptools.setup(
22
name="tinvest-robot-perevalov",
23
version="0.1.3",
24
author="Aleksandr Perevalov",
25
author_email="[email protected]",
26
description="A package that implements a news sentiment based strategy for trading using Tiknoff Invest API",
27
long_description=long_description,
28
long_description_content_type="text/markdown",
29
url="https://github.com/Perevalov/tinvest_robot",
30
packages=setuptools.find_packages(),
31
classifiers=[
32
"Programming Language :: Python",
33
"Programming Language :: Python :: 3.8",
34
"Programming Language :: Python :: 3.9",
35
"License :: OSI Approved :: MIT License",
36
"Operating System :: OS Independent",
37
],
38
python_requires='>=3.6',
39
**read_requirements()
40
)
41
42