Skip to content

Commit

Permalink
Upgrade Python environment dependencies (#383)
Browse files Browse the repository at this point in the history
* Upgrade Python environment dependencies

Signed-off-by: Md Soharab Ansari <[email protected]>

* Flask 2.1.1 does not support werkzeug 3.0.3

Signed-off-by: Md Soharab Ansari <[email protected]>

---------

Signed-off-by: Md Soharab Ansari <[email protected]>
  • Loading branch information
soharab-ic authored Sep 4, 2024
1 parent 747905e commit e9e8e95
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions python/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG PY_BASE_IMG
ARG PY_BASE_IMG=3.11-alpine

FROM python:${PY_BASE_IMG}

Expand All @@ -11,6 +11,6 @@ RUN pip3 install -r requirements.txt

COPY *.py /app/

ENV PYTHONUNBUFFERED 1
ENV PYTHONUNBUFFERED=1
ENTRYPOINT ["python3"]
CMD ["server.py"]
4 changes: 2 additions & 2 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ It's a Docker image containing a Python 3.5 runtime, along with a
dynamic loader. A few common dependencies are included in the
requirements.txt file.

Looking for ready-to-run examples? See the [Python examples directory](../../examples/python).
Looking for ready-to-run examples? See the [Python examples directory](./examples).

## Customizing this image

Expand All @@ -25,7 +25,7 @@ gcr.io, quay.io, etc. Let's assume you're using a docker hub account
called USER. Build and push the image to the the registry:

```
docker build -t USER/python-env . && docker push USER/python-env
docker build -t USER/python-env --build-arg PY_BASE_IMG=3.11-alpine . && docker push USER/python-env
```

## Using the image in fission
Expand Down
2 changes: 1 addition & 1 deletion python/builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG BUILDER_IMAGE=fission/builder
ARG PY_BASE_IMG
ARG PY_BASE_IMG=3.11-alpine

FROM ${BUILDER_IMAGE}
FROM python:${PY_BASE_IMG}
Expand Down
2 changes: 1 addition & 1 deletion python/envconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"runtimeVersion": "3.11",
"shortDescription": "Fission Python environment based on Flask framework.",
"status": "stable",
"version": "1.34.1"
"version": "1.34.2"
}
]
18 changes: 9 additions & 9 deletions python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
bjoern==3.2.1
blinker==1.4
certifi==2021.10.8
certifi==2024.7.4
chardet==4.0.0
charset-normalizer==2.0.7
click==8.0.3
Expand All @@ -10,19 +10,19 @@ gevent-ws==2.1.0
greenlet==3.0.2
hiredis==2.0.0
httplib2==0.20.1
idna==3.3
idna==3.7
importlib-metadata==4.11.3
itsdangerous==2.0.1
Jinja2==3.0.2
MarkupSafe==2.0.1
Jinja2==3.1.4
MarkupSafe==2.1.4
pyparsing==2.4.7
python-dateutil==2.8.2
redis==3.5.3
requests==2.26.0
sentry-sdk==1.5.10
requests==2.32.2
sentry-sdk==2.8.0
six==1.16.0
urllib3==1.26.7
Werkzeug==2.0.2
zipp==3.8.0
urllib3==1.26.19
Werkzeug==2.2.2
zipp==3.19.1
zope.event==4.5.0
zope.interface==5.4.0

0 comments on commit e9e8e95

Please sign in to comment.