From c2b351c91d2a8ea618fb511540fe6761eaf1f4fc Mon Sep 17 00:00:00 2001 From: Rene Milk <rene.milk@wwu.de> Date: Thu, 10 Nov 2016 19:49:31 +0100 Subject: [PATCH] [py] adds directory stub (only used for depedency travking of travis script atm) --- CMakeLists.txt | 1 + python/.gitignore | 3 +++ python/MANIFEST.in | 1 + python/README | 0 python/dune/__init__.py | 1 + python/dune/gdt/__init__.py | 0 python/pytest.ini | 3 +++ python/scripts/__init__.py | 0 python/setup.py | 15 +++++++++++++++ python/wrapper/__init__.py | 0 10 files changed, 24 insertions(+) create mode 100644 python/.gitignore create mode 100644 python/MANIFEST.in create mode 100644 python/README create mode 100644 python/dune/__init__.py create mode 100644 python/dune/gdt/__init__.py create mode 100644 python/pytest.ini create mode 100644 python/scripts/__init__.py create mode 100644 python/setup.py create mode 100644 python/wrapper/__init__.py diff --git a/CMakeLists.txt b/CMakeLists.txt index 9eb44992a..4b1ab6d53 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -74,6 +74,7 @@ find_file(SPE10MODEL1DATA add_subdirectory(doc) add_subdirectory(dune) add_subdirectory(cmake/modules) +dune_install_python_package(PATH python) add_format(${CMAKE_CURRENT_SOURCE_DIR}) diff --git a/python/.gitignore b/python/.gitignore new file mode 100644 index 000000000..0910e5cca --- /dev/null +++ b/python/.gitignore @@ -0,0 +1,3 @@ +build/ +dist/ +dune.gdt.egg-info/ diff --git a/python/MANIFEST.in b/python/MANIFEST.in new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/python/MANIFEST.in @@ -0,0 +1 @@ + diff --git a/python/README b/python/README new file mode 100644 index 000000000..e69de29bb diff --git a/python/dune/__init__.py b/python/dune/__init__.py new file mode 100644 index 000000000..de40ea7ca --- /dev/null +++ b/python/dune/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/python/dune/gdt/__init__.py b/python/dune/gdt/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/python/pytest.ini b/python/pytest.ini new file mode 100644 index 000000000..6dc2e4a46 --- /dev/null +++ b/python/pytest.ini @@ -0,0 +1,3 @@ +[pytest] +pep8maxlinelength = 120 +pep8ignore = E221,E226,E241,E242 diff --git a/python/scripts/__init__.py b/python/scripts/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/python/setup.py b/python/setup.py new file mode 100644 index 000000000..4092a7804 --- /dev/null +++ b/python/setup.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python + +import sys +from setuptools import setup + +setup(name='dune.gdt', + version='2.4', + namespace_packages=['dune'], + description='Python for Dune-Gdt', + author='The dune-gdt devs', + author_email='dune-gdt-dev@listserv.uni-muenster.de', + url='https://github.com/dune-community/dune-gdt', + packages=['dune.gdt'], + install_requires=['jinja2'], + ) diff --git a/python/wrapper/__init__.py b/python/wrapper/__init__.py new file mode 100644 index 000000000..e69de29bb -- GitLab