Repository: snek5000/snek5000 (language: python)

Issue:
Use pymech 1.5.0 when available
Could be done together with fluidsim-core 0.7.0 in https://github.com/snek5000/snek5000/pull/209


Discussion / hints:

Fix patch:
diff --git a/CITATION.cff b/CITATION.cff
index f2923f2b..6d836d4e 100644
--- a/CITATION.cff
+++ b/CITATION.cff
@@ -7,7 +7,7 @@ abstract: |
   for the simulations on the Fortran CFD code Nek5000. With a Snek5000-Fluidsim
   solver, it becomes very easy to (i) launch/restart simulations with Python scripts
   and (ii) load simulations, read the associated parameters/data and
-  produce nice figures/movies"
+  produce nice figures/movies."
 authors:
   - family-names: Mohanan
     given-names: Ashwin Vishnu
diff --git a/requirements/dev.txt b/requirements/dev.txt
index f7b56c5a..27b53a24 100644
--- a/requirements/dev.txt
+++ b/requirements/dev.txt
@@ -165,9 +165,12 @@ imagesize==1.4.1
     # via sphinx
 importlib-metadata==5.0.0
     # via
+    #   fluidsim-core
     #   jupyter-cache
     #   keyring
     #   myst-nb
+    #   nbconvert
+    #   sphinx
     #   twine
 inflection==0.5.1
     # via
@@ -297,6 +300,7 @@ numpy==1.23.4
     #   h5py
     #   matplotlib
     #   pandas
+    #   pymech
     #   scipy
     #   xarray
 packaging==21.3
@@ -378,9 +382,8 @@ pygments==2.13.0
     #   rich
     #   snek5000 (setup.cfg)
     #   sphinx
-pymech @ git+https://github.com/eX-Mech/pymech.git
+pymech==1.5.0
     # via
-    #   -r requirements/vcs_packages.in
     #   snek5000
     #   snek5000 (setup.cfg)
 pyparsing==3.0.9
diff --git a/requirements/docs.txt b/requirements/docs.txt
index 7ef44a79..b954e4cf 100644
--- a/requirements/docs.txt
+++ b/requirements/docs.txt
@@ -133,8 +133,6 @@ importlib-metadata==5.0.0
     #   myst-nb
     #   nbconvert
     #   sphinx
-importlib-resources==5.10.0
-    # via jsonschema
 inflection==0.5.1
     # via
     #   snek5000
@@ -244,6 +242,7 @@ numpy==1.23.4
     #   h5py
     #   matplotlib
     #   pandas
+    #   pymech
     #   scipy
     #   xarray
 packaging==21.3
@@ -272,8 +271,6 @@ pickleshare==0.7.5
     # via ipython
 pillow==9.3.0
     # via matplotlib
-pkgutil-resolve-name==1.3.10
-    # via jsonschema
 plac==1.3.5
     # via yte
 platformdirs==2.5.3
@@ -305,9 +302,8 @@ pygments==2.13.0
     #   nbdime
     #   snek5000 (setup.cfg)
     #   sphinx
-pymech @ git+https://github.com/eX-Mech/pymech.git
+pymech==1.5.0
     # via
-    #   -r requirements/vcs_packages.in
     #   snek5000
     #   snek5000 (setup.cfg)
 pyparsing==3.0.9
@@ -472,9 +468,7 @@ xarray==2022.11.0
 yte==1.5.1
     # via snakemake
 zipp==3.10.0
-    # via
-    #   importlib-metadata
-    #   importlib-resources
+    # via importlib-metadata
 
 # The following packages are considered to be unsafe in a requirements file:
 # setuptools
diff --git a/requirements/main.txt b/requirements/main.txt
index f41d213d..e0c04431 100644
--- a/requirements/main.txt
+++ b/requirements/main.txt
@@ -1,5 +1,5 @@
 #
-# This file is autogenerated by pip-compile with python 3.8
+# This file is autogenerated by pip-compile with python 3.9
 # To update, run:
 #
 #    pip-compile --output-file=requirements/main.txt --resolver=backtracking setup.cfg
@@ -7,7 +7,9 @@
 appdirs==1.4.4
     # via snakemake
 attrs==22.1.0
-    # via jsonschema
+    # via
+    #   jsonschema
+    #   pymech
 certifi==2022.9.24
     # via requests
 charset-normalizer==2.1.1
@@ -54,8 +56,6 @@ idna==3.4
     # via requests
 importlib-metadata==5.0.0
     # via fluidsim-core
-importlib-resources==5.10.0
-    # via jsonschema
 inflection==0.5.1
     # via snek5000 (setup.cfg)
 jinja2==3.1.2
@@ -83,6 +83,7 @@ numpy==1.23.4
     #   h5py
     #   matplotlib
     #   pandas
+    #   pymech
     #   xarray
 packaging==21.3
     # via
@@ -96,8 +97,6 @@ pandas==1.5.1
     #   xarray
 pillow==9.3.0
     # via matplotlib
-pkgutil-resolve-name==1.3.10
-    # via jsonschema
 plac==1.3.5
     # via yte
 platformdirs==2.5.3
@@ -108,7 +107,7 @@ psutil==5.9.4
     #   snakemake
 pulp==2.7.0
     # via snakemake
-pymech==1.4.1
+pymech==1.5.0
     # via snek5000 (setup.cfg)
 pyparsing==3.0.9
     # via
@@ -162,6 +161,4 @@ xarray==2022.11.0
 yte==1.5.1
     # via snakemake
 zipp==3.10.0
-    # via
-    #   importlib-metadata
-    #   importlib-resources
+    # via importlib-metadata
diff --git a/requirements/vcs_packages.in b/requirements/vcs_packages.in
index 4f6be3fc..ef5dbb81 100644
--- a/requirements/vcs_packages.in
+++ b/requirements/vcs_packages.in
@@ -3,6 +3,6 @@
 -e ./docs/examples/snek5000-tgv
 snek5000-phill @ git+https://github.com/snek5000/snek5000-phill.git@fix/package-name
 snek5000-cbox @ git+https://github.com/snek5000/snek5000-cbox.git@stable
-# TODO: comment out when fluidsim-core and pymech are released
+# TODO before releases: comment out these 2 lines
 # fluidsim-core @ hg+https://foss.heptapod.net/fluiddyn/fluidsim#subdirectory=lib
-pymech @ git+https://github.com/eX-Mech/pymech.git
+# pymech @ git+https://github.com/eX-Mech/pymech.git
diff --git a/setup.cfg b/setup.cfg
index 90fdbdc1..c584f604 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -32,7 +32,7 @@ install_requires =
     snakemake >= 7.15.2
     fluiddyn >= 0.4.0
     fluidsim-core >= 0.7.0rc0
-    pymech >= 1.4.1
+    pymech >= 1.5.0
     pandas
     jinja2
     inflection


Test patch:
diff --git a/requirements/tests-editable.txt b/requirements/tests-editable.txt
index 44bba976..67844d0f 100644
--- a/requirements/tests-editable.txt
+++ b/requirements/tests-editable.txt
@@ -1,5 +1,5 @@
 #
-# This file is autogenerated by pip-compile with python 3.8
+# This file is autogenerated by pip-compile with python 3.9
 # To update, run:
 #
 #    pip-compile --extra=tests --output-file=requirements/tests.txt --resolver=backtracking requirements/vcs_packages.in setup.cfg
@@ -94,8 +94,6 @@ idna==3.4
     # via requests
 importlib-metadata==5.0.0
     # via fluidsim-core
-importlib-resources==5.10.0
-    # via jsonschema
 inflection==0.5.1
     # via
     #   snek5000
@@ -136,6 +134,7 @@ numpy==1.23.4
     #   h5py
     #   matplotlib
     #   pandas
+    #   pymech
     #   xarray
 packaging==21.3
     # via
@@ -158,8 +157,6 @@ pickleshare==0.7.5
     # via ipython
 pillow==9.3.0
     # via matplotlib
-pkgutil-resolve-name==1.3.10
-    # via jsonschema
 plac==1.3.5
     # via yte
 platformdirs==2.5.3
@@ -184,9 +181,8 @@ py==1.11.0
     # via nox
 pygments==2.13.0
     # via ipython
-pymech @ git+https://github.com/eX-Mech/pymech.git
+pymech==1.5.0
     # via
-    #   -r requirements/vcs_packages.in
     #   snek5000
     #   snek5000 (setup.cfg)
 pyparsing==3.0.9
@@ -274,6 +270,4 @@ xarray==2022.11.0
 yte==1.5.1
     # via snakemake
 zipp==3.10.0
-    # via
-    #   importlib-metadata
-    #   importlib-resources
+    # via importlib-metadata
diff --git a/requirements/tests.txt b/requirements/tests.txt
index c7118e58..1fc326d5 100644
--- a/requirements/tests.txt
+++ b/requirements/tests.txt
@@ -1,5 +1,5 @@
 #
-# This file is autogenerated by pip-compile with python 3.8
+# This file is autogenerated by pip-compile with python 3.9
 # To update, run:
 #
 #    pip-compile --extra=tests --output-file=requirements/tests.txt --resolver=backtracking requirements/vcs_packages.in setup.cfg
@@ -94,8 +94,6 @@ idna==3.4
     # via requests
 importlib-metadata==5.0.0
     # via fluidsim-core
-importlib-resources==5.10.0
-    # via jsonschema
 inflection==0.5.1
     # via
     #   snek5000
@@ -136,6 +134,7 @@ numpy==1.23.4
     #   h5py
     #   matplotlib
     #   pandas
+    #   pymech
     #   xarray
 packaging==21.3
     # via
@@ -158,8 +157,6 @@ pickleshare==0.7.5
     # via ipython
 pillow==9.3.0
     # via matplotlib
-pkgutil-resolve-name==1.3.10
-    # via jsonschema
 plac==1.3.5
     # via yte
 platformdirs==2.5.3
@@ -184,9 +181,8 @@ py==1.11.0
     # via nox
 pygments==2.13.0
     # via ipython
-pymech @ git+https://github.com/eX-Mech/pymech.git
+pymech==1.5.0
     # via
-    #   -r requirements/vcs_packages.in
     #   snek5000
     #   snek5000 (setup.cfg)
 pyparsing==3.0.9
@@ -274,6 +270,4 @@ xarray==2022.11.0
 yte==1.5.1
     # via snakemake
 zipp==3.10.0
-    # via
-    #   importlib-metadata
-    #   importlib-resources
+    # via importlib-metadata