Skip to content
Snippets Groups Projects
Commit 42cd970f authored by David Verelst's avatar David Verelst
Browse files

updated PyScaffold configuration

parent 2a4f8014
No related branches found
No related tags found
No related merge requests found
...@@ -45,11 +45,13 @@ packages = ...@@ -45,11 +45,13 @@ packages =
# PDF = # PDF =
# ReportLab>=1.2 # ReportLab>=1.2
# RXP # RXP
#ALL =
# django
# cookiecutter
[test] [test]
# py.test options when running `python setup.py test` # py.test options when running `python setup.py test`
addopts = addopts = tests
tests
[pytest] [pytest]
# Options for py.test: # Options for py.test:
...@@ -68,6 +70,7 @@ docs = build_sphinx ...@@ -68,6 +70,7 @@ docs = build_sphinx
universal = 0 universal = 0
[build_sphinx] [build_sphinx]
# Options for Sphinx build
source_dir = docs source_dir = docs
build_dir = docs/_build build_dir = docs/_build
...@@ -85,4 +88,4 @@ autodoc_tree_index_modules = True ...@@ -85,4 +88,4 @@ autodoc_tree_index_modules = True
# Options for the devpi: PyPI serer and packaging tool # Options for the devpi: PyPI serer and packaging tool
# VCS export must be deactivated since we are using setuptools-scm # VCS export must be deactivated since we are using setuptools-scm
no-vcs = 1 no-vcs = 1
format = bdist_wheel formats = bdist_wheel
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
Setup file for wafo. Setup file for wetb.
This file was generated with PyScaffold 2.4.2, a tool that easily This file was generated with PyScaffold 2.5, a tool that easily
puts up a scaffold for your new Python project. Learn more under: puts up a scaffold for your new Python project. Learn more under:
http://pyscaffold.readthedocs.org/ 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 import sys
from setuptools import setup
def setup_package_pyscaffold(): def setup_package():
needs_sphinx = {'build_sphinx', 'upload_docs'}.intersection(sys.argv) needs_sphinx = {'build_sphinx', 'upload_docs'}.intersection(sys.argv)
sphinx = ['sphinx'] if needs_sphinx else [] sphinx = ['sphinx'] if needs_sphinx else []
setup(setup_requires=['six', 'pyscaffold>=2.4rc1,<2.5a0'] + sphinx, setup(setup_requires=['six', 'pyscaffold>=2.5a0,<2.6a0'] + sphinx,
tests_require=['pytest_cov', 'pytest'],
use_pyscaffold=True) use_pyscaffold=True)
if __name__ == "__main__": if __name__ == "__main__":
setup_package_pyscaffold() setup_package()
import pkg_resources
try:
__version__ = pkg_resources.get_distribution(__name__).version
except:
__version__ = 'unknown'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment