Skip to content
Snippets Groups Projects
Commit be54af0d authored by Stefan Possanner's avatar Stefan Possanner
Browse files

Build form pyproject.toml now, removed binary, added console scripts.

parent a4df1979
Branches
Tags
1 merge request!12Version 1.1.1
Copyright 2023 (c) T.K. Cheng, F. Hindenlang, S. Possanner | Max Planck Institute for Plasma Physics
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute,
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software
is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The above copyright notice and this permission notice shall be included in all copies
or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
#!/bin/bash -e
# Python interpreter
PYTHON=python3
# Struphy installation path
cd ~
INSTALL_PATH=$($PYTHON -c "import gvec_to_python as _; print(_.__path__[0])")
echo "Makefile: $INSTALL_PATH/Makefile"
command make -f $INSTALL_PATH/Makefile install_path=$INSTALL_PATH
\ No newline at end of file
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "gvec-to-python"
version = "1.1.0"
readme = "README.md"
requires-python = ">=3.7"
license = {file = "LICENSE"}
authors = [
{ name = "Tin Kei Cheng"},
{ name = "Florian Hindenlang"},
{ name = "Stefan Possanner"},
{ email = "stefan.possanner@ipp.mpg.de"},
{ email = "florian.hindenlang@ipp.mpg.de"}
]
description = "Parse GVEC output in Python"
keywords = ["plasma physics", "fusion", "numerical modeling", "mhd equilibrium"]
classifiers = [
"Programming Language :: Python :: 3",
]
dependencies = [
'matplotlib>=3.3.3',
'numpy>=1.19.5',
'pandas>=1.2.1',
'pyccel',
'scipy>=1.6.0',
'tqdm>=4.56.0',
'vtk>=9.0.3',
]
[project.urls]
homepage = "https://gitlab.mpcdf.mpg.de/spossann/gvec_to_python"
documentation = "https://readthedocs.org"
repository = "https://github.com/me/spam.git"
changelog = "https://github.com/me/spam/blob/master/CHANGELOG.md"
"Bug Tracker" = "https://github.com/pypa/sampleproject/issues"
[project.scripts]
compile-gvec-tp = "gvec_to_python.console.compile:compile_gvec_to_python"
[tool.setuptools.package-data]
'gvec_to_python.testcases' = [
'circ_tok/*.dat',
'circ_tok/*.ini',
'ellipstell/newBC_E1D6_M6N6/*.dat',
'ellipstell/newBC_E1D6_M6N6/*.ini',
'ellipstell/newBC_E4D6_M6N6/*.dat',
'ellipstell/newBC_E4D6_M6N6/*.ini',
'ellipstell_v2/newBC_E1D6_M6N6/*.dat',
'ellipstell_v2/newBC_E1D6_M6N6/*.ini',
'ellipstell_v2/newBC_E4D6_M6N6/*.dat',
'ellipstell_v2/newBC_E4D6_M6N6/*.ini',
'ellipstell_v2/oldBC_E40D5M6N6/*.dat',
'ellipstell_v2/oldBC_E40D5M6N6/*.ini',
]
gvec_to_python = ['Makefile']
def compile_gvec_to_python():
import subprocess
import os
import gvec_to_python
libpath = gvec_to_python.__path__[0]
print('\nCompiling gvec-to-python kernels ...')
subprocess.run(['make',
'-f',
os.path.join(libpath, 'Makefile'),
'install_path=' + libpath,
], check=True, cwd=libpath)
print('Done.')
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment