Skip to content

Commit ca712a6

Browse files
authored
Remove support for Python 3.7 (#365)
1 parent 22d15b1 commit ca712a6

File tree

11 files changed

+11
-35
lines changed

11 files changed

+11
-35
lines changed

.github/workflows/pyfunc-ensembler-job.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
strategy:
3232
matrix:
33-
# TODO: Remove support for Python 3.7
34-
python-version: ["3.7", "3.8", "3.9", "3.10"]
33+
python-version: ["3.8", "3.9", "3.10"]
3534

3635
steps:
3736
- uses: actions/checkout@v3
@@ -93,8 +92,7 @@ jobs:
9392
runs-on: ubuntu-latest
9493
strategy:
9594
matrix:
96-
# TODO: Remove support for Python 3.7
97-
python-version: ["3.7", "3.8", "3.9", "3.10"]
95+
python-version: ["3.8", "3.9", "3.10"]
9896
needs:
9997
- release-rules
10098
- test

.github/workflows/pyfunc-ensembler-service.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
strategy:
3232
matrix:
33-
# TODO: Remove support for Python 3.7
34-
python-version: ["3.7", "3.8", "3.9", "3.10"]
33+
python-version: ["3.8", "3.9", "3.10"]
3534

3635
steps:
3736
- uses: actions/checkout@v3
@@ -87,8 +86,7 @@ jobs:
8786
runs-on: ubuntu-latest
8887
strategy:
8988
matrix:
90-
# TODO: Remove support for Python 3.7
91-
python-version: ["3.7", "3.8", "3.9", "3.10"]
89+
python-version: ["3.8", "3.9", "3.10"]
9290
needs:
9391
- release-rules
9492
- test

engines/pyfunc-ensembler-job/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
ARG SPARK_VERSION=v3.0.0
2-
3-
FROM gcr.io/spark-operator/spark-py:$SPARK_VERSION
1+
FROM apache/spark-py:v3.1.3
42

53
ENV SPARK_OPERATOR_VERSION=v1beta2-1.3.7-3.1.1
64
ENV SPARK_BQ_CONNECTOR_VERSION=0.27.0

engines/pyfunc-ensembler-job/env-3.7.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

engines/pyfunc-ensembler-job/requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ py4j==0.10.9
99
pyarrow>=0.14.1,<=9.0.0
1010
pyspark==3.0.1
1111
pyyaml==6.0
12-
#TODO: Update turing-sdk dep to: file:../../sdk
13-
turing-sdk==0.11.0 # Pin to the version that supports Python 3.7.
12+
file:../../sdk

engines/pyfunc-ensembler-job/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
packages=setuptools.find_packages(),
2121
install_requires=requirements,
2222
dev_requirements=dev_requirements,
23-
python_requires=">=3.7,<3.11",
23+
python_requires=">=3.8,<3.11",
2424
)

engines/pyfunc-ensembler-service/env-3.7.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

engines/pyfunc-ensembler-service/requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ argparse>=1.4.0
22
cloudpickle==2.0.0
33
orjson==3.6.8
44
tornado==6.1
5-
#TODO: Update turing-sdk dep to: file:../../sdk
6-
turing-sdk==0.11.0 # Pin to the version that supports Python 3.7.
5+
file:../../sdk

engines/pyfunc-ensembler-service/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
packages=setuptools.find_packages(),
2121
install_requires=requirements,
2222
dev_requirements=dev_requirements,
23-
python_requires=">=3.7,<3.11",
23+
python_requires=">=3.8,<3.11",
2424
)

sdk/samples/quickstart/quick_start.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def main(turing_api: str, project: str):
3737
ensembler_instance=MyEnsembler(),
3838
conda_env={
3939
"channels": ["defaults"],
40-
"dependencies": ["python=3.7.0", "cookiecutter>=1.7.2", "numpy"],
40+
"dependencies": ["python=3.9.0", "cookiecutter>=1.7.2", "numpy"],
4141
},
4242
code_dir=[os.path.join(os.path.dirname(__file__), "../../samples")],
4343
)

0 commit comments

Comments
 (0)