-
Notifications
You must be signed in to change notification settings - Fork 28
/
setup.py
44 lines (40 loc) · 1.51 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
import setuptools
import os.path
from os import listdir
import re
from numpy.distutils.core import setup
from pathlib import Path
def find_version(*paths):
fname = os.path.join(os.path.dirname(__file__), *paths)
with open(fname) as fp:
code = fp.read()
match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", code, re.M)
if match:
return match.group(1)
raise RuntimeError("Unable to find version string.")
setup(
name='rfpy',
version=find_version('rfpy', '__init__.py'),
description='Python Module for Teleseismic Receiver Functions',
author='Pascal Audet',
author_email='[email protected]',
maintainer='Pascal Audet',
maintainer_email='[email protected]',
url='https://github.com/paudetseis/RfPy',
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9'],
install_requires=['numpy', 'obspy', 'stdb>=0.2.0'],
python_requires='>=3.6',
packages=setuptools.find_packages(),
entry_points={'console_scripts':[
'rfpy_calc=rfpy.scripts.rfpy_calc:main',
'rfpy_recalc=rfpy.scripts.rfpy_recalc:main',
'rfpy_plot=rfpy.scripts.rfpy_plot:main',
'rfpy_harmonics=rfpy.scripts.rfpy_harmonics:main',
'rfpy_hk=rfpy.scripts.rfpy_hk:main',
'rfpy_ccp=rfpy.scripts.rfpy_ccp:main']})