-
Notifications
You must be signed in to change notification settings - Fork 24
/
setup.py
67 lines (63 loc) · 1.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
import re
from setuptools import setup, find_packages
def get_version():
VERSIONFILE = "csep/_version.py"
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
return verstr
with open("README.md",'r') as fh:
long_description = fh.read()
setup(
name='pycsep',
version=get_version(),
author='William Savran',
author_email='[email protected]',
packages=find_packages(),
license='LICENSE',
description='Python tools from the Collaboratory for the Study of Earthquake Predictability',
long_description=long_description,
long_description_content_type='text/markdown',
install_requires=[
'numpy',
'scipy',
'pandas',
'matplotlib',
'cartopy',
'obspy',
'pyproj',
'python-dateutil',
'mercantile',
'shapely'
],
extras_require = {
'test': [
'pytest',
'vcrpy',
'pytest-cov'
],
'dev': [
'sphinx',
'sphinx-gallery',
'sphinx-rtd-theme',
'pillow'
],
'all': [
'pytest',
'vcrpy',
'pytest-cov',
'sphinx',
'sphinx-gallery',
'sphinx-rtd-theme',
'pillow'
]
},
include_package_data=True,
python_requires=">=3.7",
zip_safe=False,
url='https://github.com/SCECCode/pycsep'
)