Newer
Older
# -*- coding: utf-8 -*-
"""
Setup file for PyWake
"""
import os
from git_utils import write_vers
from setuptools import setup, find_packages
repo = os.path.dirname(__file__)
version = write_vers(vers_file='py_wake/__init__.py', repo=repo, skip_chars=1)
try:
from pypandoc import convert_file
read_md = lambda f: convert_file(f, 'rst', format='md')
except ImportError:
print("warning: pypandoc module not found, could not convert Markdown to RST")
read_md = lambda f: open(f, 'r').read()
url='https://gitlab.windenergy.dtu.dk/TOPFARM/PyWake',
author='DTU Wind Energy',
author_email='mmpe@dtu.dk',
license='MIT',
package_data={
'py_wake': ['examples/data/iea37/*.yaml',
'tests/test_files/fuga/2MW/Z0=0.03000000Zi=00401Zeta0=0.00E+0/*.*'],
},
install_requires=[
'matplotlib', # for plotting
'numpy', # for numerical calculations
'pytest', # for testing
'pytest-cov', # for calculating coverage
'scipy', # constraints
'sphinx', # generating documentation
'sphinx_rtd_theme' # docs theme
],
zip_safe=True)