Skip to content

Commit

Permalink
Update examples to use Python 3.9 (#330)
Browse files Browse the repository at this point in the history
Add array-api-compat to dependencies for Modal

Add modal-gcp to extras
  • Loading branch information
tomwhite authored Nov 23, 2023
1 parent e87671d commit 25db50b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions cubed/runtime/executors/modal.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
else:
aws_image = modal.Image.debian_slim().pip_install(
[
"array-api-compat",
"fsspec",
"mypy_extensions", # for rechunker
"networkx",
Expand All @@ -38,6 +39,7 @@
)
gcp_image = modal.Image.debian_slim().pip_install(
[
"array-api-compat",
"fsspec",
"mypy_extensions", # for rechunker
"networkx",
Expand Down
2 changes: 1 addition & 1 deletion examples/lithops/aws-lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
1. Install a Python environment with the basic package requirements:

```shell
conda create --name cubed-lithops-aws-examples -y python=3.8
conda create --name cubed-lithops-aws-examples -y python=3.9
conda activate cubed-lithops-aws-examples
pip install -r requirements.txt # use requirements file from same directory as this readme
```
Expand Down
4 changes: 2 additions & 2 deletions examples/lithops/aws-lambda/docker/Dockerfile_aws_lambda
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
#FROM python:3.7-slim-buster

# Python 3.8
FROM python:3.8-slim-buster
#FROM python:3.8-slim-buster

# Python 3.9
#FROM python:3.9-slim-buster
FROM python:3.9-slim-buster

# Python 3.10
# FROM python:3.10-slim-buster
Expand Down
2 changes: 1 addition & 1 deletion examples/lithops/gcf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

```shell
# from this directory
conda create --name cubed-lithops-gcf-examples -y python=3.8
conda create --name cubed-lithops-gcf-examples -y python=3.9
conda activate cubed-lithops-gcf-examples
pip install -r requirements.txt # use requirements file from same directory as this readme
```
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ modal = [
"modal-client",
"s3fs",
]
modal-gcp = [
"cubed[diagnostics]",
"modal-client",
"gcsfs",
]
coiled = [
"cubed[diagnostics]",
"coiled",
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# https://help.github.com/en/github/visualizing-repository-data-with-graphs/listing-the-packages-that-a-repository-depends-on

aiostream
array-api-compat
fsspec
mypy_extensions # for rechunker
networkx < 2.8.3
Expand Down

0 comments on commit 25db50b

Please sign in to comment.