You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update the default python 3 version to 3.11. Additionally, add a build
arg for PYTHON_VERSION and WATCHDOG_VERSION so make it easy for
developers to pin the python version that they need for their project.
The docs are updated with instructions about pinning the python version.
Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
Copy file name to clipboardExpand all lines: README.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,38 @@ The `witness` HTTP server is used along with Flask for all templates.
32
32
33
33
Are you referencing pip modules which require a native build toolchain? It's advisable to use the template with a `-debian` suffix in this case. The Debian images are larger, however they are usually more efficient for use with modules like `numpy` and `pandas`.
34
34
35
+
## Python Versioning
36
+
We try to keep the default Python 3 version up-to-date, however, you can specify a specific python version using the `PYTHON_VERSION` build argument.
37
+
38
+
The current stable version of python is 3.11, you might want to test the next pre-release using
39
+
40
+
```yaml
41
+
functions:
42
+
pgfn:
43
+
lang: python3-http-debian
44
+
handler: ./pgfn
45
+
image: pgfn:latest
46
+
build_args:
47
+
- PYTHON_VERSION=3.12
48
+
```
49
+
Or pin to a older version while you wait for your dependencies to be updated.
50
+
51
+
```yaml
52
+
functions:
53
+
pgfn:
54
+
lang: python3-http-debian
55
+
handler: ./pgfn
56
+
image: pgfn:latest
57
+
build_args:
58
+
- PYTHON_VERSION=3.10
59
+
```
60
+
61
+
This can also be set using the `--build-arg` flag.
0 commit comments