From 2fdb8c133c793ce57a821f592ae3bac878558b0a Mon Sep 17 00:00:00 2001 From: Mathis Kelm <mathis.kelm@iws.uni-stuttgart.de> Date: Fri, 3 Feb 2023 17:40:40 +0100 Subject: [PATCH] separate development python dependencies into requirements.txt --- .gitlab-ci/default.yml | 2 ++ dune.module | 2 +- requirements.txt | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 requirements.txt diff --git a/.gitlab-ci/default.yml b/.gitlab-ci/default.yml index 195b0c83d2..c95b331d99 100644 --- a/.gitlab-ci/default.yml +++ b/.gitlab-ci/default.yml @@ -35,6 +35,8 @@ configure: # cache state of the Dune virtual env for Python if it exists (Dune 2.9) - | if [ -d "/dune/modules/dune-common/build-cmake/dune-env" ]; then + source /dune/modules/dune-common/build-cmake/dune-env/bin/activate + python3 -m pip install -r requirements.txt cp -r /dune/modules/dune-common/build-cmake/dune-env build-cmake fi artifacts: diff --git a/dune.module b/dune.module index 0bfeac11b0..c2fcccbb05 100644 --- a/dune.module +++ b/dune.module @@ -6,5 +6,5 @@ Depends: dune-common (>=2.8) dune-grid (>=2.8) dune-localfunctions (>=2.8) dune- Suggests: dune-alugrid (>=2.8) dune-foamgrid (>=2.8) dune-uggrid (>=2.8) dune-functions (>=2.8) opm-common opm-grid dune-subgrid (>=2.8) dune-spgrid (>=2.8) dune-mmesh (>=1.2) Description: DuMux is a module for simulation of multi-phase multi-component flow transport in porous media URL: https://dumux.org -Python-Requires: flake8 pylint numpy +Python-Requires: numpy Whitespace-Hook: Yes diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000..49a563c66d --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +pylint~=2.14.0 +flake8~=6.0.0 +black~=22.0 +codespell~=2.2.2 +fieldcompare[all]~=0.1.0 -- GitLab