Skip to content

Commit

Permalink
Remove support for Python 3.7 (caraml-dev#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
krithika369 authored Nov 2, 2023
1 parent 22d15b1 commit ca712a6
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 35 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/pyfunc-ensembler-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
# TODO: Remove support for Python 3.7
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -93,8 +92,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
# TODO: Remove support for Python 3.7
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10"]
needs:
- release-rules
- test
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/pyfunc-ensembler-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
# TODO: Remove support for Python 3.7
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -87,8 +86,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
# TODO: Remove support for Python 3.7
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10"]
needs:
- release-rules
- test
Expand Down
4 changes: 1 addition & 3 deletions engines/pyfunc-ensembler-job/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
ARG SPARK_VERSION=v3.0.0

FROM gcr.io/spark-operator/spark-py:$SPARK_VERSION
FROM apache/spark-py:v3.1.3

ENV SPARK_OPERATOR_VERSION=v1beta2-1.3.7-3.1.1
ENV SPARK_BQ_CONNECTOR_VERSION=0.27.0
Expand Down
8 changes: 0 additions & 8 deletions engines/pyfunc-ensembler-job/env-3.7.yaml

This file was deleted.

3 changes: 1 addition & 2 deletions engines/pyfunc-ensembler-job/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ py4j==0.10.9
pyarrow>=0.14.1,<=9.0.0
pyspark==3.0.1
pyyaml==6.0
#TODO: Update turing-sdk dep to: file:../../sdk
turing-sdk==0.11.0 # Pin to the version that supports Python 3.7.
file:../../sdk
2 changes: 1 addition & 1 deletion engines/pyfunc-ensembler-job/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
packages=setuptools.find_packages(),
install_requires=requirements,
dev_requirements=dev_requirements,
python_requires=">=3.7,<3.11",
python_requires=">=3.8,<3.11",
)
8 changes: 0 additions & 8 deletions engines/pyfunc-ensembler-service/env-3.7.yaml

This file was deleted.

3 changes: 1 addition & 2 deletions engines/pyfunc-ensembler-service/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ argparse>=1.4.0
cloudpickle==2.0.0
orjson==3.6.8
tornado==6.1
#TODO: Update turing-sdk dep to: file:../../sdk
turing-sdk==0.11.0 # Pin to the version that supports Python 3.7.
file:../../sdk
2 changes: 1 addition & 1 deletion engines/pyfunc-ensembler-service/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
packages=setuptools.find_packages(),
install_requires=requirements,
dev_requirements=dev_requirements,
python_requires=">=3.7,<3.11",
python_requires=">=3.8,<3.11",
)
2 changes: 1 addition & 1 deletion sdk/samples/quickstart/quick_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def main(turing_api: str, project: str):
ensembler_instance=MyEnsembler(),
conda_env={
"channels": ["defaults"],
"dependencies": ["python=3.7.0", "cookiecutter>=1.7.2", "numpy"],
"dependencies": ["python=3.9.0", "cookiecutter>=1.7.2", "numpy"],
},
code_dir=[os.path.join(os.path.dirname(__file__), "../../samples")],
)
Expand Down
2 changes: 1 addition & 1 deletion sdk/tests/ensembler_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def test_create_ensembler(
ensembler_instance=tests.MyTestEnsembler(0.01),
conda_env={
"channels": ["defaults"],
"dependencies": ["python=3.7.0", {"pip": ["test-lib==0.0.1"]}],
"dependencies": ["python=3.9.0", {"pip": ["test-lib==0.0.1"]}],
},
)

Expand Down

0 comments on commit ca712a6

Please sign in to comment.