Skip to content

Commit

Permalink
keras needs py >=3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnBe committed Mar 22, 2024
1 parent 7dda729 commit 3931d68
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 7 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Conda environment with Micromamba
if: matrix.python-version != '3.8'
uses: mamba-org/setup-micromamba@v1
with:
cache-downloads: true
Expand All @@ -38,6 +39,14 @@ jobs:
create-args: >-
python=${{ matrix.python-version }}
post-cleanup: 'all'
- name: Install py3.8 environment
if: matrix.python-version == '3.8'
uses: mamba-org/setup-micromamba@v1
with:
cache-downloads: true
cache-environment: true
environment-file: dev/env-py38.yaml
post-cleanup: 'all'
- name: additional setup
run: pip install --no-deps -e .
- name: pytest-spec-conda
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pip install bioimageio.core[onnx,pytorch]

### Set up Development Environment

To set up a development mamba environment run the following commands:
To set up a development conda environment run the following commands:

```console
mamba env create -f dev/env.yaml
Expand Down
36 changes: 36 additions & 0 deletions dev/env-py38.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# manipulated copy of env.yaml
name: core38
channels:
- conda-forge
- defaults
dependencies:
- bioimageio.spec>=0.5.1
- black
- crick
- filelock
- imageio>=2.5
# - keras>=3.0 # removed
- loguru
- numpy
- onnxruntime
- packaging>=17.0
- pip
- pre-commit
- psutil
- pydantic
- pydantic-settings
- pyright
- pytest
- pytest-xdist
- python-dotenv
- python=3.8 # changed
- pytorch>=2.1
- ruff
- ruyaml
- torchvision
- tqdm
- typer
- typing-extensions
- xarray
- pip:
- --no-deps -e ..
4 changes: 2 additions & 2 deletions dev/env-wo-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ dependencies:
- pytest
- pytest-xdist
- python-dotenv
# - python=3.8 # removed
- pytorch>=1.6
# - python=3.9 # removed
- pytorch>=2.1
- ruff
- ruyaml
- torchvision
Expand Down
4 changes: 2 additions & 2 deletions dev/env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ dependencies:
- pytest
- pytest-xdist
- python-dotenv
- python=3.8
- pytorch>=1.6
- python=3.9
- pytorch>=2.1
- ruff
- ruyaml
- torchvision
Expand Down
4 changes: 2 additions & 2 deletions dev/environment-tf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ dependencies:
- pytest
- pytest-xdist
- python-dotenv
- python=3.8
# - pytorch>=1.6 # removed
- python=3.9
# - pytorch>=2.1 # removed
- ruff
- ruyaml
- tensorflow>=2.16 # added
Expand Down

0 comments on commit 3931d68

Please sign in to comment.