forked from lkilcher/dolfyn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
54 lines (46 loc) · 1.62 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
from setuptools import setup, find_packages
import os
import shutil
# Change this to True if you want to include the tests and test data
# in the distribution.
include_tests = False
try:
# This deals with a bug where the tests aren't excluded due to not
# rebuilding the files in this folder.
shutil.rmtree('dolfyn.egg-info')
except OSError:
pass
# Get the version info We do this to avoid importing __init__, which
# depends on other packages that may not yet be installed.
base_dir = os.path.abspath(os.path.dirname(__file__))
version = {}
with open(base_dir + "/dolfyn/_version.py") as fp:
exec(fp.read(), version)
config = dict(
name='dolfyn',
version=version['__version__'],
description='Doppler Ocean Library for pYthoN.',
author='DOLfYN Developers',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Topic :: Scientific/Engineering',
],
url='http://github.com/lkilcher/dolfyn',
packages=find_packages(exclude=['dolfyn.tests']),
package_data={},
install_requires=['numpy>=1.21',
'scipy>=1.7.0',
'xarray>=0.19.0',
'netCDF4',
'bottleneck'],
provides=['dolfyn'],
scripts=['scripts/motcorrect_vector.py', 'scripts/binary2mat.py'],
)
if include_tests:
config['packages'].append('dolfyn.tests')
config['package_data'].update({'dolfyn.tests': ['data/*']},)
setup(**config)