-
Notifications
You must be signed in to change notification settings - Fork 19
/
setup.py
78 lines (68 loc) · 2.02 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
# SPDX-License-Identifier: (BSD-3)
# LLNL-CODE-805542
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
:author:
Andrea Chiang ([email protected]), 2020
"""
import codecs
import os
import re
from setuptools import find_packages, setup
NAME = "mttime"
PACKAGES = find_packages(where="src")
META_PATH = os.path.join("src", "mttime", "__init__.py")
KEYWORDS = ["seismology","inversion","source"]
CLASSIFIERS = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: LGPL License",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering :: Physics",
]
INSTALL_REQUIRES =[
"obspy >= 1.0",
"pandas >= 1.0",
]
ENTRY_POINTS = {
"console_scripts": [
"mttime-run = mttime.scripts.run:main",
]
}
HERE = os.path.abspath(os.path.dirname(__file__))
def read(*parts):
"""
Build an absolute path from *parts* and return the contents of the
resulting file. Assume UTF-8 encoding.
"""
with codecs.open(os.path.join(HERE, *parts), "rb", "utf-8") as f:
return f.read()
VERSION = "1.0.0"
if __name__ == "__main__":
setup(
name=NAME,
description="Time domain moment tensor inverse routine",
license="BSD License",
url="https://github.com/LLNL/mttime",
version=VERSION,
author="Andrea Chiang",
author_email="[email protected]",
keywords=KEYWORDS,
long_description_content_type="text/x-rst",
packages=PACKAGES,
package_dir={"": "src"},
entry_points=ENTRY_POINTS,
python_requires=">=3.7",
zip_safe=False,
classifiers=CLASSIFIERS,
install_requires=INSTALL_REQUIRES,
include_package_data=True,
options={"bdist_wheel": {"universal": "1"}},
)