Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit f646a29

Browse files
authored
Remove python:3.7. (#280)
- Remove build and test of python:3.7 runtime as this runtime is deprecated. The code actually remains in the repo for reference. It might be removed at a later time.
1 parent 881999f commit f646a29

File tree

5 files changed

+22
-32
lines changed

5 files changed

+22
-32
lines changed

README.md

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
- The runtime provides [python v3.11](python3.11/) with a set of [python packages](python3.11/requirements.txt), see [python3.11/CHANGELOG.md](python3.11/CHANGELOG.md)
44
- The runtime provides [python v3.9](python3.9/) with a set of [python packages](python3.9/requirements.txt), see [python3.9/CHANGELOG.md](python3.9/CHANGELOG.md)
5-
- The runtime provides [python v3.7](python3.7/) with a set of [python packages](python3.7/requirements.txt), see [python3.7/CHANGELOG.md](python3.7/CHANGELOG.md)
6-
- The runtime provides [python v3.6](python3.6/) with a set of [python packages](python3.6/requirements.txt), see [python3.6/CHANGELOG.md](python3.6/CHANGELOG.md)
75

86
Some of the python packages are to be used on [IBM Cloud](https://cloud.ibm.com):
97
- IBM DB2/DashDB and IBM Informix - Python SDK [ibm_db](https://pypi.python.org/pypi/ibm_db)
@@ -27,13 +25,13 @@ def main(args):
2725
### IBM Cloud Functions (based on Apache OpenWhisk)
2826
To use as a python kind action
2927
```
30-
bx wsk action update helloPython hello.py --kind python:3.7
28+
bx wsk action update helloPython hello.py --kind python:3.11
3129
```
3230

3331
### How to use as a docker Action locally
3432
To use as a docker action
3533
```
36-
bx wsk action update helloPython hello.py --docker ibmfunctions/action-python-v3.7
34+
bx wsk action update helloPython hello.py --docker ibmfunctions/action-python-v3.11
3735
```
3836
This works on any deployment of Apache OpenWhisk or IBM Cloud Functions
3937

@@ -45,12 +43,12 @@ Prerequisite: *Export* OPENWHISK_HOME to point to your `openwhisk` cloned direct
4543
```
4644
./gradlew python3:distDocker
4745
```
48-
This will produce the image `whisk/action-python-v3.7`
46+
This will produce the image `whisk/action-python-v3.11`
4947

5048
Build and Push image
5149
```
5250
docker login
53-
./gradlew python3.7:distDocker -PdockerImagePrefix=$prefix-user -PdockerRegistry=docker.io
51+
./gradlew python3.11:distDocker -PdockerImagePrefix=$prefix-user -PdockerRegistry=docker.io
5452
```
5553

5654
Deploy OpenWhisk using ansible environment that adds the new king `python:3`
@@ -115,38 +113,38 @@ The `$user_prefix` is usually your dockerhub user id.
115113

116114
## Maintenance Tasks
117115

118-
### Updating Python 3.7 runtime
119-
- Check if there is a new version for Python 3.7 [python:3.7-stretch](https://hub.docker.com/_/python/).
120-
- If there is a new version check that the tag used in [python3.7/Dockerfile](python3.7/Dockerfile) is using the latest tag for [openwhisk/actionloop-python-v3.7](https://hub.docker.com/r/openwhisk/actionloop-python-v3.7/tags)
121-
- Update the ibm image [python3.7/Dockerfile](python3.7/Dockerfile) FROM usign the new upstream tag
116+
### Updating Python 3.11 runtime
117+
- Check if there is a new version for Python 3.11 [python:3.11-stretch](https://hub.docker.com/_/python/).
118+
- If there is a new version check that the tag used in [python3.11/Dockerfile](python3.11/Dockerfile) is using the latest tag for [openwhisk/actionloop-python-v3.11](https://hub.docker.com/r/openwhisk/actionloop-python-v3.11/tags)
119+
- Update the ibm image [python3.11/Dockerfile](python3.11/Dockerfile) FROM usign the new upstream tag
122120
- Check if there are new pip packages available
123121
- Use the latest released image to check the outdated pip packages
124122
```
125-
docker run --rm -it ibmfunctions/action-python-v3.7:1.6.0 sh -c "pip list --outdated"
123+
docker run --rm -it ibmfunctions/action-python-v3.11:1.4.0 sh -c "pip list --outdated"
126124
```
127-
- Update [python3.7/requirements.txt](python3.7/requirements.txt)
125+
- Update [python3.11/requirements.txt](python3.11/requirements.txt)
128126
- Update [python3.7/CHANGELOG.md](python3.7/CHANGELOG.md)
129127

130-
### Updating Python 3.6 runtime
128+
### Updating Python 3.9 runtime
131129
- Check if there are new pip packages available
132130
- Use the latest released image to check the outdated pip packages
133131
```
134-
docker run --rm -it ibmfunctions/action-python-v3.6:1.17.0 sh -c "pip list --outdated"
132+
docker run --rm -it ibmfunctions/action-python-v3.9:1.1.0 sh -c "pip list --outdated"
135133
```
136-
- Update [python3.6/requirements.txt](python3.6/requirements.txt) only minor and patch levels.
137-
- Update [python3.6/CHANGELOG.md](python3.6/CHANGELOG.md)
134+
- Update [python3.9/requirements.txt](python3.9/requirements.txt) only minor and patch levels.
135+
- Update [python3.9/CHANGELOG.md](python3.9/CHANGELOG.md)
138136

139137
### Pushing new versions for runtimes
140138
- After the PR is merged and the master pass the build, checkout master.
141139
- Create tag for each runtime and push upstream
142140
```
143-
git tag 3.7@<new version>
144-
git push upstream 3.7@<new version>
141+
git tag 3.11@<new version>
142+
git push upstream 3.11@<new version>
145143
```
146144
- After the image is deployed to production update the `latest` tag for each runtime.
147145
```
148-
git tag 3.7@latest -f
149-
git push upstream 3.7@latest -f
146+
git tag 3.11@latest -f
147+
git push upstream 3.11@latest -f
150148
```
151149

152150

ansible/environments/local/group_vars/all

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,13 @@ runtimes_manifest:
3535
name: "nodejs6action"
3636
deprecated: false
3737
python:
38-
- kind: "python:3.7"
39-
default: false
40-
image:
41-
name: "action-python-v3.7"
42-
deprecated: false
4338
- kind: "python:3.9"
44-
default: true
39+
default: false
4540
image:
4641
name: "action-python-v3.9"
4742
deprecated: false
4843
- kind: "python:3.11"
49-
default: false
44+
default: true
5045
image:
5146
name: "action-python-v3.11"
5247
deprecated: false

settings.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
include 'tests'
22

3-
include 'python3.7'
43
include 'python3.9'
54
include 'python3.11'
65

tests/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ tasks.withType(Test) {
1616
}
1717
outputs.upToDateWhen { false } // force tests to run every time
1818

19-
// We only test the python:3.7 and python:3.9 runtimes.
19+
// We only test the python:3.9 and python:3.11 runtimes.
2020
// The default python:3.6 is deprecated (it reached end of support).
21-
include '**/*IBMPython37*'
21+
// include '**/*IBMPython37*'
2222
include '**/*IBMPython39*'
2323
include '**/*IBMPython311*'
2424
}

tools/travis/test.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ export OPENWHISK_HOME=$WHISKDIR
1313
WHISK_CLI="${WHISKDIR}/bin/wsk -i"
1414

1515
# Run a simple action using the kind
16-
${WHISK_CLI} action update echoPython ${ROOTDIR}/tests/dat/echo.py --kind "python:3.7"
17-
${WHISK_CLI} action invoke echoPython -b
1816
${WHISK_CLI} action update echoPython ${ROOTDIR}/tests/dat/echo.py --kind "python:3.9"
1917
${WHISK_CLI} action invoke echoPython -b
2018
${WHISK_CLI} action update echoPython ${ROOTDIR}/tests/dat/echo.py --kind "python:3.11"

0 commit comments

Comments
 (0)