forked from QuantEcon/QuantEcon.py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
123 lines (95 loc) · 3.96 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# Use setuptools in preference to distutils
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
#-Write Versions File-#
#~~~~~~~~~~~~~~~~~~~~~#
VERSION = '0.4.3'
def write_version_py(filename=None):
"""
This constructs a version file for the project
"""
doc = "\"\"\"\nThis is a VERSION file and should NOT be manually altered\n\"\"\""
doc += "\nversion = '%s'" % VERSION
if not filename:
filename = os.path.join(os.path.dirname(__file__), 'quantecon', 'version.py')
fl = open(filename, 'w')
try:
fl.write(doc)
finally:
fl.close()
write_version_py() # This is a file used to control the qe.__version__ attribute
#-Meta Information-#
#~~~~~~~~~~~~~~~~~~#
DESCRIPTION = "QuantEcon is a package to support all forms of quantitative economic modelling." #'Core package of the QuantEcon library'
LONG_DESCRIPTION = """
**QuantEcon** is an organization run by economists for economists with the aim of coordinating
distributed development of high quality open source code for all forms of quantitative economic modelling.
The project website is located at `http://quantecon.org/ <http://quantecon.org/>`_. This website provides
more information with regards to the **quantecon** library, documentation, in addition to some resources
in regards to how you can use and/or contribute to the package.
The **quantecon** Package
-------------------------
The `repository <https://github.com/QuantEcon/QuantEcon.py>`_ includes the Python package ``quantecon``
Assuming you have `pip <https://pypi.python.org/pypi/pip>`_ on your computer --- as will be the case if you've `installed Anaconda <http://quant-econ.net/getting_started.html#installing-anaconda>`_ --- you can install the latest stable release of ``quantecon`` by typing
pip install quantecon
at a terminal prompt
Repository
----------
The main repository is hosted on Github `QuantEcon.py <https://github.com/QuantEcon/QuantEcon.py>`_
**Note:** There is also a Julia version available for Julia users `QuantEcon.jl <https://github.com/QuantEcon/QuantEcon.jl>`_
Current Build and Coverage Status
---------------------------------
|Build Status| |Coverage Status|
.. |Build Status| image:: https://travis-ci.org/QuantEcon/QuantEcon.py.svg?branch=master
:target: https://travis-ci.org/QuantEcon/QuantEcon.py
.. |Coverage Status| image:: https://coveralls.io/repos/QuantEcon/QuantEcon.py/badge.png
:target: https://coveralls.io/r/QuantEcon/QuantEcon.py
Additional Links
----------------
1. `QuantEcon Course Website <http://quant-econ.net>`_
"""
LICENSE = "BSD"
#-Classifier Strings-#
#-https://pypi.python.org/pypi?%3Aaction=list_classifiers-#
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Topic :: Scientific/Engineering',
]
#-Setup-#
#~~~~~~~#
setup(name='quantecon',
packages=['quantecon',
'quantecon.game_theory',
'quantecon.game_theory.game_generators',
'quantecon.markov',
'quantecon.optimize',
'quantecon.random',
'quantecon.tests',
'quantecon.util',
],
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
license=LICENSE,
classifiers=CLASSIFIERS,
author='Thomas J. Sargent and John Stachurski (Project coordinators)',
author_email='john.stachurski@gmail.com',
url='https://github.com/QuantEcon/QuantEcon.py', # URL to the repo
download_url='https://github.com/QuantEcon/QuantEcon.py/tarball/' + VERSION,
keywords=['quantitative', 'economics'],
install_requires=[
'numba>=0.38',
'numpy',
'requests',
'scipy>=1.0.0',
'sympy',
]
)