Commit 1441dc7a authored by Lukas Riedel's avatar Lukas Riedel

Move all Python packages into single package called 'dorie'.

* Merge all setup.py scripts
* Adapt .gitignore
parent 56d5f506
......@@ -2,9 +2,8 @@
build-cmake/
# Exclude generated files
python/parfield/wrapper/pf_from_file.py
python/testtools/wrapper/test_dorie.py
python/testtools/wrapper/test_dorie_pfg.py
python/dorie/wrapper/pf_from_file.py
python/dorie/wrapper/test_dorie.py
# Ignore temporary and auto-generated files #
*~
......
# install the following modules in editable mode: 'pip -e'
set(DUNE_PYTHON_INSTALL_EDITABLE TRUE)
# install required python modules
dune_python_install_package(PATH utilities)
dune_python_install_package(PATH parscraper)
add_subdirectory(parfield/wrapper)
dune_python_install_package(PATH parfield)
# install testing module
if(dune-testtools_FOUND)
add_subdirectory(testtools/wrapper)
dune_python_install_package(PATH testtools)
endif()
# install Python package
add_subdirectory(dorie/wrapper)
dune_python_install_package(PATH dorie)
# set cache variable
set(DORIE_PYTHON_MODULES ${python_paths} CACHE PATH "Paths to the python modules")
#!/usr/bin/env python3
from setuptools import setup, find_packages
setup(name='dorie',
version='0.1',
namespace_packages=['dorie'],
description='Python package providing the DORiE parameter scraper',
author='Lukas Riedel',
author_email='dorieteam@iup.uni-heidelberg.de',
url='https://ts-gitlab.iup.uni-heidelberg.de/dorie/dorie',
packages=find_packages(),
install_requires= ['cycler',
'configparser',
'h5py',
'matplotlib',
'numpy',
'Pillow',
'pyparsing',
'python-dateutil',
'pytz',
'scipy',
'six',
'wheel'
],
scripts=[
'wrapper/pf_from_file.py',
'wrapper/plot_vtk.py',
'wrapper/scrape_folder.py',
'wrapper/test_dorie.py'
]
)
configure_file(pf_from_file.py.in ${CMAKE_CURRENT_SOURCE_DIR}/pf_from_file.py)
configure_file(test_dorie.py.in ${CMAKE_CURRENT_SOURCE_DIR}/test_dorie.py)
\ No newline at end of file
recursive-include dorie/parscraper *.py
#!/usr/bin/env python3
import sys
from setuptools import setup
def randomfield_scripts():
return ['wrapper/pf_from_file.py']
setup(name='dorie.parfield',
version='0.1',
namespace_packages=['dorie'],
description='Python package providing the DORiE parameter field tools',
author='Dion Häfner <mail@dionhaefner.de>',
author_email='dorieteam@iup.uni-heidelberg.de',
url='',
install_requires=['dorie.utilities',
'h5py',
'Pillow',
'configparser'],
packages = ['dorie.parfield',
'dorie.parfield.converter',
'dorie.parfield.parameterization'],
scripts=randomfield_scripts()
)
recursive-include dorie/parscraper *.py
__import__('pkg_resources').declare_namespace(__name__)
#!/usr/bin/env python3
import sys
from setuptools import setup
def dorie_parscraper_scripts():
return ['./wrapper/scrape_folder.py']
setup(name='dorie.parscraper',
version='0.1',
namespace_packages=['dorie'],
description='Python package providing the DORiE parameter scraper',
author='Dion Häfner <mail@dionhaefner.de>',
author_email='dorieteam@iup.uni-heidelberg.de',
url='',
packages= ['dorie.parscraper',
'dorie.parscraper.wrapper',
'dorie.parscraper.writers',
'dorie.parscraper.readers'],
install_requires= ['cycler',
'matplotlib',
'numpy',
'pyparsing',
'python-dateutil',
'pytz',
'scipy',
'six',
'wheel'
],
scripts=dorie_parscraper_scripts()
)
recursive-include dorie/testtools *.py
__import__('pkg_resources').declare_namespace(__name__)
#!/usr/bin/env python3
import sys
from setuptools import setup
def dorie_testtools_scripts():
return ['./wrapper/test_dorie.py']
setup(name='dorie.testtools',
version='0.1',
namespace_packages=['dorie'],
description='Python modules for testing DORiE, powered by dune-testtools',
author='Dion Häfner <mail@dionhaefner.de>',
author_email='dorieteam@iup.uni-heidelberg.de',
url='',
packages=['dorie.testtools',
'dorie.testtools.dorie_create',
'dorie.testtools.dorie_pfg',
'dorie.testtools.dorie_plot',
'dorie.testtools.dorie_run',
'dorie.testtools.utilities',
'dorie.testtools.wrapper'
],
install_requires=['dune.testtools',
'cycler',
'matplotlib',
'numpy',
'pyparsing',
'python-dateutil',
'pytz',
'scipy',
'six',
'wheel'],
scripts=dorie_testtools_scripts())
configure_file(test_dorie.py.in ${CMAKE_CURRENT_SOURCE_DIR}/test_dorie.py)
recursive-include dorie/testtools *.py
__import__('pkg_resources').declare_namespace(__name__)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
from setuptools import setup
def dorie_utilities_scripts():
return ["wrapper/plot_vtk.py"]
setup(name='dorie.utilities',
version='0.1',
namespace_packages=['dorie'],
description='Multipurpose utilities used by the other DORiE python extensions',
author='Dion Häfner <mail@dionhaefner.de>',
author_email='dorieteam@iup.uni-heidelberg.de',
url='',
packages=['dorie.utilities',
'dorie.utilities.vtktools'],
install_requires=['cycler',
'matplotlib',
'numpy',
'pyparsing',
'python-dateutil',
'pytz',
'scipy',
'six',
'wheel'],
scripts=dorie_utilities_scripts()
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment