-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
70 lines (53 loc) · 1.82 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
# -*- coding: utf-8 -*-
"""
Setup of VaR Package
====================
*Created on 28.06.2021 by bari_is*
*For COPYING and LICENSE details, please refer to the LICENSE file*
"""
from setuptools import find_packages
from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README_PYPI.md', 'rst')
except(IOError, ImportError):
long_description = open('README_PYPI.md').read()
def get_packages():
find_packages(exclude=['docs']),
return find_packages()
# ------------------------------------------------------------------------------------------------------------
# Environmental Functions
# ------------------------------------------------------------------------------------------------------------
def get_version():
"""
Function to get the version.
Returns
-------
out : str
"""
version = dict()
with open("optionpy/__version__.py") as fp:
exec(fp.read(), version)
return version['__version__']
with open('requirements.txt') as f:
required = f.read().splitlines()
setup(name='optionpy',
version=get_version(),
description='Calculation of option price, greeks and implied volatility',
packages=get_packages(),
author="Ismail Baris",
maintainer='Ismail Baris',
author_email='[email protected]',
url='https://github.com/ibaris/optionpy',
long_description=long_description,
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: End Users/Desktop',
'Programming Language :: Python :: 3.7',
'Operating System :: Microsoft',
],
include_package_data=True,
)