diff --git a/AUTHORS.rst b/AUTHORS.rst new file mode 100644 index 0000000000000000000000000000000000000000..98c249faa4611e1412a91fb63fc5787a6df367d9 --- /dev/null +++ b/AUTHORS.rst @@ -0,0 +1,6 @@ +========== +Developers +========== + +* Mads Mølgaard Pedersen +* David Verelst diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..ebb177acaca4ed48110be63ab934c7138e879e3f --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,14 @@ +wetb is free software; you can redistribute it and/or modify it under the terms +of the GNU General Public License (GPL, http://www.gnu.org/copyleft/gpl.html) +as published by the Free Software Foundation; either version 3 of the License, +or (at your option) any later version. + +wetb is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A +PARTICULAR PURPOSE. + +See the GNU General Public License for more details http://www.gnu.org/licenses/ + +We encourage you to submit new code for possible inclusion in future versions of +wetb. + diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..d7a9c8a0d51b9287e879cd1bd9d206753472fc31 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +# Add your requirements here like: +six +numpy>=1.4 +scipy>=0.9 +matplotlib + diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000000000000000000000000000000000000..06ea063a672f6c0fdda7178b791200ca77face05 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,88 @@ +[metadata] +name = wetb +summary = Wind Energy Toolbox +author = DTU Wind Energy +author-email = none +license = GPLv3 +home-page = https://gitlab.windenergy.dtu.dk/toolbox/WindEnergyToolbox +description-file = README.md +# Add here all kinds of additional classifiers as defined under +# https://pypi.python.org/pypi?%3Aaction=list_classifiers +classifiers = Development Status :: 4 - Beta, + Programming Language :: Python, + Programming Language :: Python :: 2.7, + Programming Language :: Python :: 3, + Programming Language :: Python :: 3.3, + Programming Language :: Python :: 3.4, + Environment :: Console, + Intended Audience :: Education, + Intended Audience :: Science/Research, + License :: OSI Approved :: GPL License, + Operating System :: OS Independent, + Operating System :: POSIX :: Linux, + Operating System :: Unix, + Operating System :: MacOS, + Operating System :: Microsoft :: Windows + Topic :: Scientific/Engineering :: Mathematics + +[entry_points] +# Add here console scripts like: +# console_scripts = +# hello_world = wetb.module:function +# as well as other entry_points. + + +[files] +# Add here 'data_files', 'packages' or 'namespace_packages'. +# Additional data files are defined as key value pairs of source and target: +packages = + wetb +# data_files = +# share/wetb_docs = docs/* + +[extras] +# Add here additional requirements for extra features, like: +# PDF = +# ReportLab>=1.2 +# RXP + +[test] +# py.test options when running `python setup.py test` +addopts = + tests + +[pytest] +# Options for py.test: +# Specify command line options as you would do when invoking py.test directly. +# e.g. --cov-report html (or xml) for html/xml output or --junitxml junit.xml +# in order to write a coverage file that can be read by Jenkins. +addopts = + --cov wetb --cov-report term-missing + --verbose + +[aliases] +docs = build_sphinx + +[bdist_wheel] +# Use this option if your package is pure-python +universal = 0 + +[build_sphinx] +source_dir = docs +build_dir = docs/_build + +[pbr] +# Let pbr run sphinx-apidoc +autodoc_tree_index_modules = True +# autodoc_tree_excludes = ... +# Let pbr itself generate the apidoc +# autodoc_index_modules = True +# autodoc_exclude_modules = ... +# Convert warnings to errors +# warnerrors = True + +[devpi:upload] +# Options for the devpi: PyPI serer and packaging tool +# VCS export must be deactivated since we are using setuptools-scm +no-vcs = 1 +format = bdist_wheel diff --git a/setup.py b/setup.py new file mode 100644 index 0000000000000000000000000000000000000000..80db354b615451125ae76f7a5f0e5c728c3b271b --- /dev/null +++ b/setup.py @@ -0,0 +1,32 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +""" + Setup file for wafo. + + This file was generated with PyScaffold 2.4.2, a tool that easily + puts up a scaffold for your new Python project. Learn more under: + http://pyscaffold.readthedocs.org/ +""" + +from __future__ import division, absolute_import, print_function + +# numpy.distutils will figure out if setuptools is available when imported +# this allows us to combine setuptools use_pyscaffold=True and f2py extensions +import setuptools +from numpy.distutils.core import setup +#from numpy.distutils.misc_util import Configuration + +import sys + + +def setup_package_pyscaffold(): + + needs_sphinx = {'build_sphinx', 'upload_docs'}.intersection(sys.argv) + sphinx = ['sphinx'] if needs_sphinx else [] + setup(setup_requires=['six', 'pyscaffold>=2.4rc1,<2.5a0'] + sphinx, + tests_require=['pytest_cov', 'pytest'], + use_pyscaffold=True) + + +if __name__ == "__main__": + setup_package_pyscaffold()