Skip to content

Commit

Permalink
Merge pull request #58 from esmf-org/esmpy-feature-pip
Browse files Browse the repository at this point in the history
ESMPy pip install and test update
  • Loading branch information
rokuingh authored Sep 15, 2022
2 parents a56b63d + 08f639d commit ab3ac08
Show file tree
Hide file tree
Showing 117 changed files with 2,361 additions and 2,809 deletions.
18 changes: 4 additions & 14 deletions src/addon/ESMPy/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
###################
*.pyc

# Nose #
########
*.noseids
nosetests.xml

# Misc #
########
*~
Expand All @@ -19,21 +14,16 @@ PET*
*.vtk
*.csv

# Eclipse #
###########
*.project
*.pydevproject
*.settings

# ESMPy build and docs #
########################
build
dist
doc/esmpy_doc
src/ESMF/interface/esmfmkfile.py
src/ESMPy.egg-info
examples/data
src/ESMF/test/data
src/esmpy/test/data
examples/notebooks/ESMPy-data
src/ESMF/test/regrid_from_file/data
src/esmpy/test/regrid_from_file/data

# notebooks #
#############
Expand Down
63 changes: 63 additions & 0 deletions src/addon/ESMPy/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
.PHONY: clean install test test_int test_all uninstall

clean:
rm -rf build || :
rm -rf dist || :
find . -name "*.egg-info" -exec rm -rf {} \; || :
find . -name "*.pyc" -exec rm -f {} \; || :
find . -name "*.log" -exec rm -f {} \; || :
find . -name "*.vtk" -exec rm -f {} \; || :
find . -name "*.pytest_cache" -exec rm -rf {} \; || :
find . -name "*.python-version" -exec rm -f {} \; || :
find . -name "*__pycache__" -exec rm -rf {} \; || :
find . -name "*ESMF_LogFile*" -exec rm -f {} \; || :
find . -name "*.report.json" -exec rm -rf {} \; || :
find . -name "*.test" -exec rm -rf {} \; || :
rm -rf src/esmpy/test/regrid_from_file/data || :
rm -rf examples/data || :

dust:
find . -name "*ESMF_LogFile*" -exec rm -f {} \; || :
find . -name "*.report.json" -exec rm -rf {} \; || :
find . -name "*.test" -exec rm -rf {} \; || :

install:
python3 -m pip install .

download_examples:
python3 examples/test_examples_download.py

download_regrid_from_file:
python3 src/esmpy/test/regrid_from_file/test_regrid_from_file_download.py

download: download_examples download_regrid_from_file

test:
bash src/esmpy/test/test_all.bash

test_unit:
python3 -m pytest -vs

test_unit_parallel:
mpiexec -n 4 python3 -vs

test_examples:
python3 -m pytest -vs examples/test_examples.py

test_examples_parallel:
mpiexec -n 4 python3 -m pytest -vs examples/test_examples.py

test_regrid_from_file:
python3 -m pytest -vs src/esmpy/test/regrid_from_file/test_regrid_from_file.py

test_regrid_from_file_parallel:
mpiexec -n 4 python3 -m pytest -vs src/esmpy/test/regrid_from_file/test_regrid_from_file.py

test_serial: test_unit test_examples test_regrid_from_file

test_parallel: test_unit_parallel test_examples_parallel test_regrid_from_file_parallel

test_all: test_unit test_unit_parallel test_examples test_examples_parallel test_regrid_from_file test_regrid_from_file_parallel

uninstall:
python3 -m pip uninstall ESMPy
2 changes: 1 addition & 1 deletion src/addon/ESMPy/doc/CoordSys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
CoordSys
~~~~~~~~

.. autoclass:: ESMF.api.constants.CoordSys
.. autoclass:: esmpy.api.constants.CoordSys
:members:
:exclude-members: __new__
2 changes: 1 addition & 1 deletion src/addon/ESMPy/doc/ExtrapMethod.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
ExtrapMethod
~~~~~~~~~~~~

.. autoclass:: ESMF.api.constants.ExtrapMethod
.. autoclass:: esmpy.api.constants.ExtrapMethod
:members:
:exclude-members: __new__
2 changes: 1 addition & 1 deletion src/addon/ESMPy/doc/FileFormat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
FileFormat
~~~~~~~~~~

.. autoclass:: ESMF.api.constants.FileFormat
.. autoclass:: esmpy.api.constants.FileFormat
:members:
:exclude-members: __new__
2 changes: 1 addition & 1 deletion src/addon/ESMPy/doc/FileMode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
FileMode
~~~~~~~~

.. autoclass:: ESMF.api.constants.FileMode
.. autoclass:: esmpy.api.constants.FileMode
:members:
:exclude-members: __new__
2 changes: 1 addition & 1 deletion src/addon/ESMPy/doc/GridItem.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
GridItem
~~~~~~~~

.. autoclass:: ESMF.api.constants.GridItem
.. autoclass:: esmpy.api.constants.GridItem
:members:
:exclude-members: __new__
2 changes: 1 addition & 1 deletion src/addon/ESMPy/doc/LineType.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
LineType
~~~~~~~~

.. autoclass:: ESMF.api.constants.LineType
.. autoclass:: esmpy.api.constants.LineType
:members:
:exclude-members: __new__
2 changes: 1 addition & 1 deletion src/addon/ESMPy/doc/LogKind.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
LogKind
~~~~~~~

.. autoclass:: ESMF.api.constants.LogKind
.. autoclass:: esmpy.api.constants.LogKind
:members:
:exclude-members: __new__
2 changes: 1 addition & 1 deletion src/addon/ESMPy/doc/MeshElemType.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
MeshElemType
~~~~~~~~~~~~

.. autoclass:: ESMF.api.constants.MeshElemType
.. autoclass:: esmpy.api.constants.MeshElemType
:members:
:exclude-members: __new__
2 changes: 1 addition & 1 deletion src/addon/ESMPy/doc/MeshLoc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
MeshLoc
~~~~~~~

.. autoclass:: ESMF.api.constants.MeshLoc
.. autoclass:: esmpy.api.constants.MeshLoc
:members:
:exclude-members: __new__
2 changes: 1 addition & 1 deletion src/addon/ESMPy/doc/NormType.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
NormType
~~~~~~~~

.. autoclass:: ESMF.api.constants.NormType
.. autoclass:: esmpy.api.constants.NormType
:members:
:exclude-members: __new__
2 changes: 1 addition & 1 deletion src/addon/ESMPy/doc/PoleKind.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
PoleKind
~~~~~~~~

.. autoclass:: ESMF.api.constants.PoleKind
.. autoclass:: esmpy.api.constants.PoleKind
:members:
:exclude-members: __new__
2 changes: 1 addition & 1 deletion src/addon/ESMPy/doc/PoleMethod.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
PoleMethod
~~~~~~~~~~

.. autoclass:: ESMF.api.constants.PoleMethod
.. autoclass:: esmpy.api.constants.PoleMethod
:members:
:exclude-members: __new__
2 changes: 1 addition & 1 deletion src/addon/ESMPy/doc/Region.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
Region
~~~~~~

.. autoclass:: ESMF.api.constants.Region
.. autoclass:: esmpy.api.constants.Region
:members:
:exclude-members: __new__
2 changes: 1 addition & 1 deletion src/addon/ESMPy/doc/RegridMethod.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
RegridMethod
~~~~~~~~~~~~

.. autoclass:: ESMF.api.constants.RegridMethod
.. autoclass:: esmpy.api.constants.RegridMethod
:members:
:exclude-members: __new__
2 changes: 1 addition & 1 deletion src/addon/ESMPy/doc/StaggerLoc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
StaggerLoc
~~~~~~~~~~

.. autoclass:: ESMF.api.constants.StaggerLoc
.. autoclass:: esmpy.api.constants.StaggerLoc
:members:
:exclude-members: __new__
2 changes: 1 addition & 1 deletion src/addon/ESMPy/doc/TypeKind.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
TypeKind
~~~~~~~~

.. autoclass:: ESMF.api.constants.TypeKind
.. autoclass:: esmpy.api.constants.TypeKind
:members:
:exclude-members: __new__
2 changes: 1 addition & 1 deletion src/addon/ESMPy/doc/UnmappedAction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
UnmappedAction
~~~~~~~~~~~~~~

.. autoclass:: ESMF.api.constants.UnmappedAction
.. autoclass:: esmpy.api.constants.UnmappedAction
:members:
:exclude-members: __new__
Loading

0 comments on commit ab3ac08

Please sign in to comment.