-
Notifications
You must be signed in to change notification settings - Fork 35
/
setup.py
52 lines (47 loc) · 2.13 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
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, encoding='utf-8') 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.")
# scripts = [str(x) for x in Path('Scripts').iterdir() if x.is_file()]
setup(
name='obstools',
version=find_version('obstools', '__init__.py'),
description='Python tools for ocean bottom seismic instruments',
author='Pascal Audet, Helen Janiszewski',
author_email='[email protected]',
maintainer='Pascal Audet, Helen Janiszewski',
maintainer_email='[email protected], [email protected]',
url='https://github.com/nfsi-canada/OBStools/archive/OBStools-0.1.2.tar.gz',
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', 'pandas'],
python_requires='>=3.6',
packages=setuptools.find_packages(),
include_package_data=True,
package_data={'': ['examples/meta/*.pkl', 'examples/event/*.pkl',
'examples/data/*.SAC', 'examples/event/*.SAC']},
# scripts=scripts)
entry_points={
'console_scripts':
['atacr_download_data=obstools.scripts.atacr_download_data:main',
'atacr_download_event=obstools.scripts.atacr_download_event:main',
'atacr_daily_spectra=obstools.scripts.atacr_daily_spectra:main',
'atacr_clean_spectra=obstools.scripts.atacr_clean_spectra:main',
'atacr_transfer_functions=obstools.scripts.atacr_transfer_functions:main',
'atacr_correct_event=obstools.scripts.atacr_correct_event:main',
'comply_calculate=obstools.scripts.comply_calculate:main']})