-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
84 lines (71 loc) · 2.61 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
# -*- coding: utf-8 -*-
"""
PRISM Setup
===========
Contains the setup script required for installing the *PRISM* package.
This can be ran directly by using::
pip install .
or anything equivalent.
"""
# %% IMPORTS
# Built-in imports
from codecs import open
import re
# Package imports
from setuptools import find_packages, setup
# %% SETUP DEFINITION
# Get the long description from the README file
with open('README.rst', 'r') as f:
long_description = f.read()
# Get the requirements list
with open('requirements.txt', 'r') as f:
requirements = f.read().splitlines()
# Read the __version__.py file
with open('prism/__version__.py', 'r') as f:
vf = f.read()
# Obtain version from read-in __version__.py file
version = re.search(r"^_*version_* = ['\"]([^'\"]*)['\"]", vf, re.M).group(1)
# Setup function declaration
setup(name='prism',
version=version,
author="Ellert van der Velden",
author_email="[email protected]",
maintainer="1313e",
description="PRISM: An alternative to MCMC for rapid analysis of models",
long_description=long_description,
download_url=("https://github.com/1313e/PRISM/archive/v%s.zip"
% (version)),
url="https://prism-tool.readthedocs.io/en/latest",
project_urls={
'Documentation': ("https://prism-tool.readthedocs.io/en/v%s"
% (version)),
'Method Paper': "https://arxiv.org/abs/1901.08725",
'Source Code': "https://github.com/1313e/PRISM/tree/v%s" % (version)
},
license='BSD-3',
platforms=['Windows', 'Mac OS-X', 'Linux', 'Unix'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Scientific/Engineering',
'Topic :: Software Development'
],
keywords=('prism model analysis emulator regression mcmc optimization'),
python_requires='>=3.6, <4',
packages=find_packages(),
package_dir={'prism': "prism"},
include_package_data=True,
install_requires=requirements,
zip_safe=False,
)