Skip to content

Commit

Permalink
[ZEPPELIN-5979] Support and use Python 3.9 in default (#4690)
Browse files Browse the repository at this point in the history
  • Loading branch information
pan3793 committed Nov 15, 2023
1 parent 9dadde3 commit 73e1aa3
Show file tree
Hide file tree
Showing 9 changed files with 93 additions and 37 deletions.
48 changes: 32 additions & 16 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ jobs:
run: ./mvnw install -Pbuild-distr -DskipTests -pl zeppelin-server,zeppelin-web,spark-submit,spark/scala-2.12,spark/scala-2.13,markdown,angular,shell -am -Phelium-dev -Pexamples -P${{ matrix.hadoop }} ${MAVEN_ARGS}
- name: install and test plugins
run: ./mvnw package -pl zeppelin-plugins -amd ${MAVEN_ARGS}
- name: Setup conda environment with python 3.7 and R
- name: Setup conda environment with python 3.9 and R
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: python_3_with_R
environment-file: testing/env_python_3.7_with_R.yml
python-version: 3.7
environment-file: testing/env_python_3.9_with_R.yml
python-version: 3.9
miniforge-variant: Mambaforge
channels: conda-forge,defaults
channel-priority: true
Expand Down Expand Up @@ -119,12 +119,12 @@ jobs:
${{ runner.os }}-zeppelin-
- name: install environment
run: ./mvnw install -DskipTests -am -pl ${INTERPRETERS} -Pscala-2.11 ${MAVEN_ARGS}
- name: Setup conda environment with python 3.7 and R
- name: Setup conda environment with python 3.9 and R
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: python_3_with_R_and_tensorflow
environment-file: testing/env_python_3_with_R_and_tensorflow.yml
python-version: 3.7
python-version: 3.9
miniforge-variant: Mambaforge
channels: conda-forge,defaults
channel-priority: true
Expand All @@ -139,8 +139,13 @@ jobs:
strategy:
fail-fast: false
matrix:
python: [ 3.7, 3.8 ]
python: [ 3.9 ]
java: [ 8, 11 ]
include:
- python: 3.7
java: 8
- python: 3.8
java: 8
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -218,12 +223,12 @@ jobs:
run: |
./mvnw install -DskipTests -Phadoop2 -Pintegration -pl zeppelin-interpreter-integration,zeppelin-web,spark-submit,spark/scala-2.12,spark/scala-2.13,markdown,flink-cmd,flink/flink-scala-2.12,jdbc,shell -am -Pflink-117 ${MAVEN_ARGS}
./mvnw package -pl zeppelin-plugins -amd -DskipTests ${MAVEN_ARGS}
- name: Setup conda environment with python 3.7 and R
- name: Setup conda environment with python 3.9 and R
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: python_3_with_R
environment-file: testing/env_python_3_with_R.yml
python-version: 3.7
python-version: 3.9
miniforge-variant: Mambaforge
channels: conda-forge,defaults
channel-priority: true
Expand All @@ -243,7 +248,13 @@ jobs:
strategy:
fail-fast: false
matrix:
flink: [115, 116, 117]
python: [ 3.9 ]
flink: [116, 117]
include:
# Flink 1.15 supports Python 3.6, 3.7, and 3.8
# https://nightlies.apache.org/flink/flink-docs-release-1.15/docs/dev/python/installation/
- python: 3.8
flink: 115
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -269,12 +280,12 @@ jobs:
run: |
./mvnw install -DskipTests -am -pl flink/flink-scala-2.12,flink-cmd,zeppelin-interpreter-integration -Pflink-${{ matrix.flink }} -Phadoop2 -Pintegration ${MAVEN_ARGS}
./mvnw clean package -pl zeppelin-plugins -amd -DskipTests ${MAVEN_ARGS}
- name: Setup conda environment with python 3.7 and
- name: Setup conda environment with python ${{ matrix.python }} and R
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: python_3_with_flink
environment-file: testing/env_python_3_with_flink_${{ matrix.flink }}.yml
python-version: 3.7
python-version: ${{ matrix.python }}
miniforge-variant: Mambaforge
channels: conda-forge,defaults
channel-priority: true
Expand Down Expand Up @@ -319,12 +330,12 @@ jobs:
run: |
./mvnw install -DskipTests -pl zeppelin-interpreter-integration,zeppelin-web,spark-submit,spark/scala-2.12,spark/scala-2.13,markdown -am -Phadoop2 -Pintegration ${MAVEN_ARGS}
./mvnw clean package -pl zeppelin-plugins -amd -DskipTests ${MAVEN_ARGS}
- name: Setup conda environment with python 3.7 and R
- name: Setup conda environment with python 3.9 and R
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: python_3_with_R
environment-file: testing/env_python_3_with_R.yml
python-version: 3.7
python-version: 3.9
miniforge-variant: Mambaforge
channels: conda-forge,defaults
channel-priority: true
Expand All @@ -342,8 +353,13 @@ jobs:
strategy:
fail-fast: false
matrix:
python: [ 3.7, 3.8 ]
python: [ 3.9 ]
java: [ 8, 11 ]
include:
- python: 3.7
java: 8
- python: 3.8
java: 8
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -435,12 +451,12 @@ jobs:
./mvnw install -DskipTests -pl livy -am ${MAVEN_ARGS}
./testing/downloadSpark.sh "3.4.1" "3"
./testing/downloadLivy.sh "0.7.1-incubating"
- name: Setup conda environment with python 3.7 and R
- name: Setup conda environment with python 3.9 and R
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: python_3_with_R
environment-file: testing/env_python_3_with_R.yml
python-version: 3.7
python-version: 3.9
miniforge-variant: Mambaforge
channels: conda-forge,defaults
channel-priority: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ jobs:
key: ${{ runner.os }}-zeppelin-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-zeppelin-
- name: Setup conda environment with python 3.7 and R
- name: Setup conda environment with python 3.9 and R
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: python_3_with_R
environment-file: testing/env_python_3_with_R.yml
python-version: 3.7
python-version: 3.9
miniforge-variant: Mambaforge
channels: conda-forge,defaults
channel-priority: true
Expand Down
2 changes: 1 addition & 1 deletion docs/interpreter/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ channels:
- conda-forge
- defaults
dependencies:
- python=3.7
- python=3.9
- jupyter
- grpcio
- protobuf
Expand Down
2 changes: 1 addition & 1 deletion docs/interpreter/r.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ channels:
- conda-forge
- defaults
dependencies:
- python=3.7
- python=3.9
- jupyter
- grpcio
- protobuf
Expand Down
37 changes: 37 additions & 0 deletions testing/env_python_3.9_with_R.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: python_3_with_R
channels:
- conda-forge
- defaults
dependencies:
- pycodestyle
- scipy
- numpy=1.19.5
- grpcio
- protobuf
- pandasql
- sqlalchemy=1.4.46
- ipython
- ipython_genutils
- ipykernel
- jupyter_client=5
- hvplot
- holoviews=1.16
- plotnine
- seaborn
- intake
- intake-parquet
- intake-xarray
- altair
- vega_datasets
- plotly
- jinja2=3.0.3
- pip
- r-base=3.6
- r-data.table
- r-evaluate
- r-base64enc
- r-knitr
- r-ggplot2
- r-irkernel
- r-shiny
- r-googlevis
28 changes: 14 additions & 14 deletions testing/env_python_3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ channels:
- conda-forge
- defaults
dependencies:
- pycodestyle=2.5.0
- numpy=1.17.3
- pandas=0.25.0
- scipy=1.3.1
- grpcio=1.22.0
- hvplot=0.5.2
- protobuf=3.10.0
- pandasql=0.7.3
- ipython=7.8.0
- matplotlib=3.0.3
- ipykernel=5.1.2
- jupyter_client=5.3.4
- bokeh=1.3.4
- pycodestyle
- numpy=1.19.5
- pandas=1.4.4
- scipy
- grpcio
- hvplot
- protobuf
- pandasql
- ipython
- matplotlib
- ipykernel
- jupyter_client=5
- bokeh=2.4
- panel=0.6.0
- holoviews=1.12.3
- holoviews=1.16
- jinja2=3.0.3
- pip
- pip:
Expand Down
3 changes: 2 additions & 1 deletion testing/env_python_3_with_R.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
- grpcio
- protobuf
- pandasql
- sqlalchemy=1.4.46
- ipython
- ipython_genutils
- ipykernel
Expand All @@ -17,7 +18,7 @@ dependencies:
- holoviews=1.16
- plotnine
- seaborn
- bokeh
- bokeh=2.4
- intake
- intake-parquet
- intake-xarray
Expand Down
5 changes: 3 additions & 2 deletions testing/env_python_3_with_R_and_tensorflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
- grpcio
- protobuf
- pandasql
- sqlalchemy=1.4.46
- ipython
- ipython_genutils
- ipykernel
Expand All @@ -17,7 +18,7 @@ dependencies:
- holoviews=1.16
- plotnine
- seaborn
- bokeh
- bokeh=2.4
- intake
- intake-parquet
- intake-xarray
Expand All @@ -35,4 +36,4 @@ dependencies:
- r-irkernel
- r-shiny
- r-googlevis
- tensorflow=1.13
- tensorflow
1 change: 1 addition & 0 deletions testing/env_python_3_with_flink_117.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies:
- ipykernel
- jupyter_client=5
- hvplot
- holoviews=1.16
- plotnine
- seaborn
- intake
Expand Down

0 comments on commit 73e1aa3

Please sign in to comment.