forked from openearth/aeolis-python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
68 lines (64 loc) · 2.34 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
import sys
from setuptools import setup, find_packages
# update Git hash
if len(sys.argv) > 1:
if sys.argv[1] == 'bdist_wheel':
try:
import git
repo = git.Repo(search_parent_directories=True)
sha = repo.head.object.hexsha
open('aeolis/GITVERSION', 'w').write(sha)
except ImportError:
print('*' * 70)
print('WARNING: Cannot update Git hash, because package "git" is not')
print(' installed. Continue packaging...')
print('*' * 70)
setup(
name='AeoLiS',
version=open('aeolis/VERSION').read().strip(),
author='Bas Hoonhout',
author_email='[email protected]',
url='http://aeolis.readthedocs.io/',
license='GNU GPLv3',
description='A process-based model for simulating supply-limited aeolian sediment transport',
long_description=open('README.rst').read(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Scientific/Engineering :: Physics',
],
keywords=['aeolian sediment transport coastal model deltares tudelft'],
packages=find_packages(exclude=['docs', 'examples', 'tests']),
install_requires=[
'docopt==0.6.1',
'bmi-python',
'scipy',
'numpy',
],
python_requires='>=2.7, <4',
tests_require=[
'nose'
],
test_suite='nose.collector',
entry_points={'console_scripts': [
'aeolis = aeolis.console:aeolis',
'aeolis-wind = aeolis.console:wind',
]},
include_package_data=True,
)