-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (42 loc) · 1.4 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
# -*- coding: utf-8 -*-
"""
Setup file for EDWIN
"""
import os
from setuptools import setup, find_packages
import pkg_resources
repo = os.path.dirname(__file__)
try:
from git_utils import write_vers
version = write_vers(vers_file='ed_win/__init__.py', repo=repo, skip_chars=1)
except Exception:
version = '999'
try:
from pypandoc import convert_file
def read_md(f): return convert_file(f, 'rst', format='md')
except ImportError:
print("warning: pypandoc module not found, could not convert Markdown to RST")
def read_md(f): return open(f, 'r').read()
setup(name='ed_win',
version=version,
description='EDWIN an optimization and design package for electrical networks in windfarms',
long_description=read_md('README.md'),
url='https://gitlab.windenergy.dtu.dk/TOPFARM/EDWIN',
author='DTU Wind Energy',
author_email='[email protected]',
license='MIT',
packages=find_packages(),
install_requires=[
'matplotlib', # for plotting
'numpy', # for numerical calculations
'xarray', # for WaspGridSite data storage
'scipy', # constraints
],
extras_require={
'test': [
'pytest', # for testing
'pytest-cov', # for calculating coverage
'sphinx', # generating documentation
'sphinx_rtd_theme', # docs theme
]},
zip_safe=True)