From da6f50f0640a8efe1587d23d83437d72934efeac Mon Sep 17 00:00:00 2001 From: Kristof Van Tricht Date: Thu, 10 Oct 2024 14:17:36 +0200 Subject: [PATCH] Updated requirements and configs --- .github/workflows/ci.yaml | 12 ++++++------ pyproject.toml | 7 +++---- tests/pre_test_script.sh | 23 +++++++++++++++++------ 3 files changed, 26 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 852356ee..159c5f36 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,12 +18,12 @@ jobs: with: python-version: 3.9 cache: 'pip' - - name: Install openEO-GFMAP from source - run: | - git clone https://github.com/Open-EO/openeo-gfmap.git - cd openeo-gfmap - pip install . - cd .. + # - name: Install openEO-GFMAP from source + # run: | + # git clone https://github.com/Open-EO/openeo-gfmap.git + # cd openeo-gfmap + # pip install . + # cd .. - name: Install Presto from source run: | git clone -b croptype https://github.com/WorldCereal/presto-worldcereal.git diff --git a/pyproject.toml b/pyproject.toml index 11c58046..434f366a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,12 +42,10 @@ dependencies = [ "loguru>=0.7.2", "netcdf4<=1.6.4", "numpy<2.0.0", - "openeo>=0.22.0", - "openeo>=0.31.0", - "openeo-gfmap", + "openeo==0.31.0", + "openeo-gfmap==0.2.0", "pyarrow", "pydantic>=2.6", - "pytest-depends", "rioxarray>=0.13.0", "scipy", "xarray>=2022.3.0" @@ -60,6 +58,7 @@ dependencies = [ [project.optional-dependencies] dev = [ "pytest>=7.4.0", + "pytest-depends", "matplotlib>=3.3.0" ] train = [ diff --git a/tests/pre_test_script.sh b/tests/pre_test_script.sh index b009dbda..0681eb9d 100644 --- a/tests/pre_test_script.sh +++ b/tests/pre_test_script.sh @@ -3,17 +3,28 @@ # Install git dnf install git -y -# Install openeo-gfmap and presto-worldcereal +# # Install openeo-gfmap and presto-worldcereal +# dir=$(pwd) +# GFMAP_URL="https://github.com/Open-EO/openeo-gfmap.git" +# PRESTO_URL="https://github.com/WorldCereal/presto-worldcereal.git" + +# su - jenkins -c "cd $dir && \ +# source venv310/bin/activate && \ +# git clone $GFMAP_URL && \ +# cd openeo-gfmap || { echo 'Directory not found! Exiting...'; exit 1; } && \ +# pip install . && \ +# cd .. +# git clone -b croptype $PRESTO_URL && \ +# cd presto-worldcereal || { echo 'Directory not found! Exiting...'; exit 1; } && \ +# pip install . +# " + +# For now only presto-worldcereal as gfmap is up to date on pypi dir=$(pwd) -GFMAP_URL="https://github.com/Open-EO/openeo-gfmap.git" PRESTO_URL="https://github.com/WorldCereal/presto-worldcereal.git" su - jenkins -c "cd $dir && \ source venv310/bin/activate && \ - git clone $GFMAP_URL && \ - cd openeo-gfmap || { echo 'Directory not found! Exiting...'; exit 1; } && \ - pip install . && \ - cd .. git clone -b croptype $PRESTO_URL && \ cd presto-worldcereal || { echo 'Directory not found! Exiting...'; exit 1; } && \ pip install .