-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
48 lines (44 loc) · 1.47 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
from setuptools import setup
import re
# borrowed from Agile Scientific bruges tools
verstr = 'unknown'
VERSIONFILE = "rivers2stratigraphy/_version.py"
with open(VERSIONFILE, "r") as f:
verstrline = f.read().strip()
pattern = re.compile(r"__version__ = ['\"](.*)['\"]")
mo = pattern.search(verstrline)
if mo:
verstr = mo.group(1)
print("Version "+verstr)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
setup(
name='rivers2stratigraphy',
version=verstr,
author='Andrew J. Moodie',
author_email='amoodie@rice.edu',
packages=['rivers2stratigraphy'],
url='https://github.com/sededu/rivers2stratigraphy',
license='LICENSE.txt',
description='educational activity for teaching how rivers become stratigraphy',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
python_requires='>=3',
install_requires=[
'scipy',
'numpy',
'matplotlib',
'shapely'],
include_package_data=True,
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Education',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Science/Research',
'Topic :: Education'],
project_urls={
'Bug Reports': 'https://github.com/sededu/rivers2stratigraphy/issues',
'Source': 'https://github.com/sededu/rivers2stratigraphy',
},
)