Skip to content
Snippets Groups Projects
Commit 46d1b93b authored by Tin Kei Cheng's avatar Tin Kei Cheng :speech_balloon:
Browse files

Add `install_requires` to `setup.cfg` to fix #1. Add dummy `setup.py`.

Remove unneeded `mpi4py` requirement.
Rename `test` -> `tests` and update `.gitlab-ci.yml`.
parent 611f3782
No related branches found
No related tags found
No related merge requests found
Pipeline #153930 failed
......@@ -45,8 +45,8 @@ pages:
# - apt-get -qq insall -y texlive-latex-recommended texlive-fonts-recommended tex-gyre texlive-latex-extra latexmk texlive-lang-cyrillic texlive-lang-greek cm-super texlive-xetex texlive-luatex fonts-freefont-otf xindy graphviz
- python -m venv ipp-env
- source ipp-env/bin/activate
- pip install -U pip build wheel pytest coverage
- pip install -r requirements.txt
- pip install -U pip build wheel pytest coverage sphinx sphinx_rtd_theme
# - pip install -r requirements.txt
# Print directory structure, but exclude virtual environment directory.
- tree -I 'ipp-env'
......@@ -63,12 +63,12 @@ pages:
# - make latexpdf LATEXMKOPTS="-xelatex -silent"
# - cd ..
# Build: make pyccel, build python package, install package.
# Build: build python package, install package.
- echo "Run python build:"
- python -m build
- ls -lah dist
- echo "Install dist:"
- pip install -U dist/gvec_to_python-*.whl --force-reinstall
- pip install -U dist/gvec_to_python-*.whl # --force-reinstall
# Test: run pytest and coverage report.
- echo "Run pytest and coverage report:"
......
......@@ -16,7 +16,7 @@ echo "Run python build:"
python -m build
ls -lah dist
echo "Install dist:"
pip install -U dist/gvec_to_python-*.whl --force-reinstall
pip install -U dist/gvec_to_python-*.whl # --force-reinstall
# Test: run pytest.
echo "Run pytest:"
......
h5py>=3.3.0
matplotlib>=3.3.3
mpi4py>=3.0.3
numba>=0.53.1
numpy>=1.19.5
pandas>=1.2.1
......
......@@ -6,6 +6,7 @@ author_email = tinkei.cheng@tum.de
description = Converts GVEC output to STRUPHY input
long_description = file: README.md
long_description_content_type = text/markdown
keywords = plasma, mhd, equilibrium, discrete differential forms, gvec
url = https://gitlab.mpcdf.mpg.de/spossann/gvec_to_python
project_urls =
Bug Tracker = https://gitlab.mpcdf.mpg.de/spossann/gvec_to_python/-/issues
......@@ -19,6 +20,21 @@ package_dir =
= src
packages = find:
python_requires = >=3.6
install_requires =
h5py>=3.3.0
matplotlib>=3.3.3
numba>=0.53.1
numpy>=1.19.5
pandas>=1.2.1
psutil>=5.8.0
pytz>=2021.1
regex>=2021.8.3
scipy>=1.6.0
sphinx>=4.2.0
sphinx_rtd_theme>=1.0.0
tqdm>=4.56.0
vtk>=9.0.3
[options.packages.find]
where = src
......
setup.py 0 → 100644
from setuptools import setup, find_packages
if __name__ == "__main__":
setup(
# name="gvec_to_python",
# version="0.1.2",
# packages=find_packages(),
# install_requires=[
# 'h5py>=3.3.0'
# 'matplotlib>=3.3.3'
# 'numba>=0.53.1'
# 'numpy>=1.19.5'
# 'pandas>=1.2.1'
# 'psutil>=5.8.0'
# 'pytz>=2021.1'
# 'regex>=2021.8.3'
# 'scipy>=1.6.0'
# 'sphinx>=4.2.0'
# 'sphinx_rtd_theme>=1.0.0'
# 'tqdm>=4.56.0'
# 'vtk>=9.0.3'
# ],
# author="Tin Kei Cheng",
# author_email="tinkei.cheng@tum.de",
# description="",
# license="",
# keywords="plasma, mhd, equilibrium, discrete differential forms, gvec",
# url="https://gitlab.mpcdf.mpg.de/spossann/gvec_to_python",
)
# Specify __all__ variable to enable `from gvec_to_python import *`.
# Source: https://docs.python.org/3/tutorial/modules.html#importing-from-a-package
__all__ = [
'test_greville_and_element_boundaries',
'test_iota_eq_dchi_dphi',
'test_paraview',
]
'test_greville_and_element_boundaries',
'test_GVEC_class',
'test_gvec_spline',
'test_implementations_of_dphi',
'test_iota_eq_dchi_dphi',
'test_nested_maps_and_jacobians_with_meshgrid',
'test_paraview',
]
File moved
File moved
File moved
File moved
File moved
File moved
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