File tree Expand file tree Collapse file tree 7 files changed +29
-8
lines changed
getting-started/spark/notebooks Expand file tree Collapse file tree 7 files changed +29
-8
lines changed Original file line number Diff line number Diff line change 2020FROM jupyter/all-spark-notebook:spark-3.5.0
2121
2222COPY --chown=jovyan regtests/client /home/jovyan/client
23- WORKDIR /home/jovyan/
2423RUN pip install poetry==1.5.0 && \
2524 cd client/python && \
2625 python3 -m poetry install && \
2726 pip install -e .
2827
29- WORKDIR /home/jovyan/
28+ WORKDIR /home/jovyan/
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ if [ ! -d ${SCRIPT_DIR}/polaris-venv ]; then
2323 echo " Performing first-time setup for the Python client..."
2424 python3 -m venv ${SCRIPT_DIR} /polaris-venv
2525 . ${SCRIPT_DIR} /polaris-venv/bin/activate
26- pip install poetry==1.5.0
26+ pip install -r regtests/requirements.txt
2727
2828 cp ${SCRIPT_DIR} /regtests/client/python/pyproject.toml ${SCRIPT_DIR}
2929 pushd $SCRIPT_DIR && poetry install ; popd
Original file line number Diff line number Diff line change @@ -40,10 +40,11 @@ COPY ./setup.sh /home/spark/regtests/setup.sh
4040COPY ./pyspark-setup.sh /home/spark/regtests/pyspark-setup.sh
4141COPY ./client/python /home/spark/regtests/client/python
4242COPY ./polaris-reg-test /home/spark/polaris
43+ COPY ./requirements.txt /tmp/
4344
4445RUN python3 -m venv /home/spark/polaris-venv && \
4546 . /home/spark/polaris-venv/bin/activate && \
46- pip install poetry==1.5.0 && \
47+ pip install -r /tmp/requirements.txt && \
4748 deactivate \
4849RUN ./setup.sh
4950
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ readme = "README.md"
2727repository = " https://github.com/apache/polaris/"
2828keywords = [" Polaris" , " Polaris Management Service" ]
2929include = [" polaris.management/py.typed" ]
30+ package-mode = true
3031
3132[tool .poetry .dependencies ]
3233python = " ^3.8"
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ if [ ! -d ${SCRIPT_DIR}/polaris-venv ]; then
3737 echo " Performing first-time setup for the Python client..."
3838 python3 -m venv ${SCRIPT_DIR} /polaris-venv
3939 . ${SCRIPT_DIR} /polaris-venv/bin/activate
40- pip install poetry==1.5.0
40+ pip install -f requirements.txt
4141
4242 cp ${SCRIPT_DIR} /regtests/client/python/pyproject.toml ${SCRIPT_DIR}
4343
@@ -61,4 +61,4 @@ if [ $status -ne 0 ]; then
6161 exit 1
6262fi
6363
64- exit 0
64+ exit 0
Original file line number Diff line number Diff line change 2424
2525. ~ /polaris-venv/bin/activate
2626
27- pip install poetry==1.5.0
27+ pip install -r requirements.txt
2828
2929cd client/python
3030python3 -m poetry install
31- deactivate
31+ deactivate
Original file line number Diff line number Diff line change 1+ #
2+ # Licensed to the Apache Software Foundation (ASF) under one
3+ # or more contributor license agreements. See the NOTICE file
4+ # distributed with this work for additional information
5+ # regarding copyright ownership. The ASF licenses this file
6+ # to you under the Apache License, Version 2.0 (the
7+ # "License"); you may not use this file except in compliance
8+ # with the License. You may obtain a copy of the License at
9+ #
10+ # http://www.apache.org/licenses/LICENSE-2.0
11+ #
12+ # Unless required by applicable law or agreed to in writing,
13+ # software distributed under the License is distributed on an
14+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+ # KIND, either express or implied. See the License for the
16+ # specific language governing permissions and limitations
17+ # under the License.
18+ #
19+
20+ poetry == 1.8.5
You can’t perform that action at this time.
0 commit comments