-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
106 lines (97 loc) · 3.12 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
# -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2014-2018 GEM Foundation
#
# OpenQuake is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# OpenQuake is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with OpenQuake. If not, see <http://www.gnu.org/licenses/>.
import re
import sys
from setuptools import setup, find_packages
URL = "https://github.com/GEMScienceTools/oq-mbtk"
README = """
Python and OpenQuake-based Toolkit for the construction of Seismic Source
Models
Copyright (C) 2017-2023 GEM Foundation
"""
README = """ Model Building Toolkit"""
def get_version():
version_re = r"^__version__\s+=\s+['\"]([^'\"]*)['\"]"
version = None
package_init = 'openquake/mbt/__init__.py'
for line in open(package_init, 'r'):
version_match = re.search(version_re, line, re.M)
if version_match:
version = version_match.group(1)
break
else:
sys.exit('__version__ variable not found in %s' % package_init)
return version
version = get_version()
setup(
name='openquake.mbt',
version=version,
description=README,
url=URL,
packages=find_packages(exclude=['tests', 'tests.*']),
# Minimal requirements, for a complete list see requirements-*.txt
# matplotlib is brought by the openquake engine
install_requires=[
'geopandas > 0.10.0',
'nbstripout >= 0.3.0',
'jupyter_client >= 5.0.0',
'ipykernel >= 4.8.0',
'ipython >= 6.2.0',
'notebook >= 5.0.0',
'pylint >= 2.1.1',
'tables >= 3.7.0',
'netCDF4 < 1.7.0',
'nbformat',
'pyproj',
'rtree',
'geojson',
'nbconvert',
'obspy',
'prettytable',
'tqdm',
'h3',
'reportlab',
'igraph',
# 'GDAL',
],
python_requires='>=3.10,<3.12',
author='GEM Foundation',
author_email='[email protected]',
maintainer='GEM Foundation',
maintainer_email='[email protected]',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering',
],
namespace_packages=['openquake'],
keywords="seismic hazard",
license="AGPL3",
platforms=["any"],
package_data={"openquake.mbt": [
"README.md", "LICENSE"]},
entry_points={
'console_scripts': ['oqm = openquake.mbi.__main__:oqm'],
},
include_package_data=True,
zip_safe=False,
)