forked from hashABCD/opstrat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
83 lines (73 loc) · 2.56 KB
/
setup.py
File metadata and controls
83 lines (73 loc) · 2.56 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
from codecs import open
import os
from setuptools import setup, find_packages
#import pypandoc
with open('README.md') as readme_file:
README = readme_file.read()
'''
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
'''
'''
try:
long_description = pypandoc.convert('README.md', 'rst')
long_description = long_description.replace("\r","") # Do not forget this line
except OSError:
print("Pandoc not found. Long_description conversion failure.")
import io
# pandoc is not installed, fallback to using raw contents
with io.open('README.md', encoding="utf-8") as f:
long_description = f.read()
'''
'''
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
'''
VERSION = '0.1.2'
DESCRIPTION = 'Option stategy visualizer'
#LONG_DESCRIPTION = DESCRIPTION
URL = 'https://github.com/abhijith-git/opstrat'
# Setting up
setup(
name="opstrat",
version=VERSION,
author="Abhijith Chandradas",
author_email="<abhijith.chandradas@gmail.com>",
description=DESCRIPTION,
long_description_content_type='text/markdown',
long_description=README,
url=URL,
license='MIT',
packages=find_packages(exclude=["tests", "*.tests", "*.tests.*", "tests.*"]),
install_requires=['matplotlib',
'pandas',
'numpy',
'seaborn',
'yfinance'],
keywords=['python',
'options',
'finance',
'opstrat',
'data visualization',
'stock market'],
classifiers=[
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Intended Audience :: Financial and Insurance Industry",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Visualization",
'Topic :: Scientific/Engineering :: Information Analysis',
"Topic :: Office/Business :: Financial :: Investment",
"Topic :: Office/Business :: Financial",
"Programming Language :: Python :: 3"]
)
#Display README.md in PYPI
#https://stackoverflow.com/questions/26737222/how-to-make-pypi-description-markdown-work