Skip to content

Commit 6a6fafc

Browse files
authored
ci: build python 3.10 and 3.11 as default jina docker images and make 3.8 the default jina docker image (jina-ai#5490)
1 parent 12f19ac commit 6a6fafc

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/force-docker-build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ jobs:
3434
fail-fast: false
3535
matrix:
3636
pip_tag: [ "", "perf", "standard", "devel"] # default: "" = core
37-
py_version: [ "3.7", "3.8", "3.9" ] # default "" = 3.7
37+
py_version: [ "3.7", "3.8", "3.9" , "3.10", "3.11"] # default "" = 3.7
3838
steps:
3939
- uses: actions/[email protected]
4040
with:
4141
fetch-depth: 100
4242
- name: Set envs and versions
4343
run: |
44-
DEFAULT_PY_VERSION="3.7"
44+
DEFAULT_PY_VERSION="3.8"
4545
VCS_REF=${{ github.ref }}
4646
echo "VCS_REF=$VCS_REF" >> $GITHUB_ENV
4747
echo "Will build $VCS_REF"

RELEASE.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,11 @@ jinaai/jina:{version}{python_version}{extra}
9898
- `x.y.z`: the release of a particular version;
9999
- `x.y`: the alias to the last `x.y.z` patch release, i.e. `x.y` = `x.y.max(z)`;
100100
- `{python_version}`: The Python version of the image. Possible values:
101-
- ` `, `-py37`: Python 3.7;
102-
- `-py38` for Python 3.8;
101+
- `-py37`: Python 3.7;
102+
- ` `, `-py38` for Python 3.8;
103103
- `-py39` for Python 3.9;
104+
- `-py310` for Python 3.10;
105+
- `-py311` for Python 3.11;
104106
- `{extra}`: the extra dependency installed along with Jina. Possible values:
105107
- ` `: Jina is installed inside the image via `pip install jina`;
106108
- `-standard`: Jina is installed inside the image via `pip install jina`. It includes all recommended dependencies;

docs/get-started/install/troubleshooting.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This article helps you to solve the installation problems of Jina.
66

77
The normal installation of Jina takes 10 seconds. If yours takes longer than this, then it is likely you unnecessarily built wheels from scratch.
88

9-
Every upstream dependency of Jina has pre-built wheels exhaustively for x86/arm64, macos/Linux and Python 3.7/3.8/3.9, including `numpy`, `protobuf`, `pyzmq`, `grpcio` etc. This means when you install Jina, your `pip` should directly leverage the pre-built wheels instead of building them from scratch locally. For example, you should expect the install log to contain `-cp38-cp38-macosx_10_15_x86_64.whl` when installing Jina on MacOS with Python 3.8.
9+
Every upstream dependency of Jina has pre-built wheels exhaustively for x86/arm64, macos/Linux and Python 3.7/3.8/3.9, including `numpy`, `protobuf`, `grpcio` etc. This means when you install Jina, your `pip` should directly leverage the pre-built wheels instead of building them from scratch locally. For example, you should expect the install log to contain `-cp38-cp38-macosx_10_15_x86_64.whl` when installing Jina on MacOS with Python 3.8.
1010

1111
If you find you are building wheels during installation (see an example below), then it is a sign that you are installing Jina **wrongly**.
1212

0 commit comments

Comments
 (0)