-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathsetup.py
83 lines (61 loc) · 2.25 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
75
76
77
78
79
80
81
82
83
'''
A setuptools based setup module to install willowtree on your personal
computer.
How does it work?
-------------------------------------------------------------------------------
On Terminal (macOS) or Command Prompt (Windows), navigate through folder
'willowtree', then run ($ is the Terminal prompt):
$ python3 setup.py install
This command will generate three folders in the current directory:
build
dist
willowtree.egg-info
and one .egg file in the main package folder, for example, if third-party
extension Anaconda is installed, in 'anaconda/lib/python3.X/site-packages':
willowtree-X.X-py3.X.egg
where X.X refers to the most recent installed version of 'willowtree', e.g.
0.9, and py3.X to the latest installed Python version, e.g. 3.6.
It is now possible to import willowtree in a Python environment.
References
-------------------------------------------------------------------------------
https://pythonhosted.org/an_example_pypi_project/setuptools.html
https://github.com/pypa/sampleproject
'''
from setuptools import setup
# Look for module __version__.py in willowtree and import variable __version__
from willowtree.__version__ import __version__
# Assign the value of __version__ to variable version, then use it in setup()
version = __version__
setup(
name='willowtree',
version=version,
description='''Robust and flexible Python implementation of the willow
tree lattice for derivatives pricing.''',
url='https://github.com/federicomariamassari/willowtree',
author='Federico Maria Massari',
author_email='[email protected]',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Financial and Insurance Industry',
'Topic :: Scientific/Engineering :: Mathematics',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3'
],
keywords=[
'willow-tree',
'derivatives-pricing',
'standard-brownian-motion'
],
# The packages to install. There is only one folder, 'willowtree'
packages=[
'willowtree'
],
# Dependencies, the auxiliary libraries necessary to run 'willowtree'
install_requires=[
'numpy >= 1.13',
'scipy >= 0.19',
'matplotlib >= 2.0',
'seaborn >= 0.8'
],
)