Skip to content

Commit 36531b4

Browse files
committed
drop support for python3.7
1 parent ab03831 commit 36531b4

File tree

11 files changed

+26
-107
lines changed

11 files changed

+26
-107
lines changed

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
- name: Set up Python version
5959
uses: actions/setup-python@v4
6060
with:
61-
python-version: '3.7'
61+
python-version: '3.8'
6262

6363
- name: Install dependencies
6464
env:

.github/workflows/macos.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Set up Python version
5454
uses: actions/setup-python@v4
5555
with:
56-
python-version: 3.7
56+
python-version: 3.8
5757
- name: Install dependencies
5858
run: |
5959
brew install ccache pkg-config
@@ -124,12 +124,10 @@ jobs:
124124
fail-fast: false
125125
# https://github.community/t/how-to-conditionally-include-exclude-items-in-matrix-eg-based-on-branch/16853/6
126126
matrix:
127-
python_version: ['3.7', '3.8', '3.9', '3.10', '3.11']
127+
python_version: ['3.8', '3.9', '3.10', '3.11']
128128
is_master:
129129
- ${{ github.ref == 'refs/heads/master' }}
130130
exclude:
131-
- is_master: false
132-
python_version: '3.7'
133131
- is_master: false
134132
python_version: '3.8'
135133
- is_master: false
@@ -230,12 +228,10 @@ jobs:
230228
strategy:
231229
fail-fast: false
232230
matrix:
233-
python_version: ['3.7', '3.8', '3.9', '3.10', '3.11']
231+
python_version: ['3.8', '3.9', '3.10', '3.11']
234232
is_master:
235233
- ${{ github.ref == 'refs/heads/master' }}
236234
exclude:
237-
- is_master: false
238-
python_version: '3.7'
239235
- is_master: false
240236
python_version: '3.8'
241237
- is_master: false

.github/workflows/style.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Set up Python version
2222
uses: actions/setup-python@v4
2323
with:
24-
python-version: '3.7'
24+
python-version: '3.8'
2525
- name: Install dependencies
2626
run: |
2727
pip install -U clang-format~=10.0.0 yapf==0.30.0 nbformat

.github/workflows/ubuntu-wheel.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,10 @@ jobs:
2727
strategy:
2828
fail-fast: false
2929
matrix:
30-
python_version: ['3.7', '3.8', '3.9', '3.10', '3.11']
30+
python_version: ['3.8', '3.9', '3.10', '3.11']
3131
is_master:
3232
- ${{ github.ref == 'refs/heads/master' }}
3333
exclude:
34-
- is_master: false
35-
python_version: '3.7'
3634
- is_master: false
3735
python_version: '3.8'
3836
- is_master: false
@@ -53,18 +51,14 @@ jobs:
5351
# `docker/docker_build.sh xxx` command to execute locally.
5452
- name: Docker build
5553
run: |
56-
if [ "${{ env.PYTHON_VERSION }}" = "3.7" ] && [ "${{ env.DEVELOPER_BUILD }}" = "ON" ]; then
57-
docker/docker_build.sh cuda_wheel_py37_dev
58-
elif [ "${{ env.PYTHON_VERSION }}" = "3.8" ] && [ "${{ env.DEVELOPER_BUILD }}" = "ON" ]; then
54+
if [ "${{ env.PYTHON_VERSION }}" = "3.8" ] && [ "${{ env.DEVELOPER_BUILD }}" = "ON" ]; then
5955
docker/docker_build.sh cuda_wheel_py38_dev
6056
elif [ "${{ env.PYTHON_VERSION }}" = "3.9" ] && [ "${{ env.DEVELOPER_BUILD }}" = "ON" ]; then
6157
docker/docker_build.sh cuda_wheel_py39_dev
6258
elif [ "${{ env.PYTHON_VERSION }}" = "3.10" ] && [ "${{ env.DEVELOPER_BUILD }}" = "ON" ]; then
6359
docker/docker_build.sh cuda_wheel_py310_dev
6460
elif [ "${{ env.PYTHON_VERSION }}" = "3.11" ] && [ "${{ env.DEVELOPER_BUILD }}" = "ON" ]; then
6561
docker/docker_build.sh cuda_wheel_py311_dev
66-
elif [ "${{ env.PYTHON_VERSION }}" = "3.7" ] && [ "${{ env.DEVELOPER_BUILD }}" = "OFF" ]; then
67-
docker/docker_build.sh cuda_wheel_py37
6862
elif [ "${{ env.PYTHON_VERSION }}" = "3.8" ] && [ "${{ env.DEVELOPER_BUILD }}" = "OFF" ]; then
6963
docker/docker_build.sh cuda_wheel_py38
7064
elif [ "${{ env.PYTHON_VERSION }}" = "3.9" ] && [ "${{ env.DEVELOPER_BUILD }}" = "OFF" ]; then
@@ -118,12 +112,10 @@ jobs:
118112
strategy:
119113
fail-fast: false
120114
matrix:
121-
python_version: ['3.7', '3.8', '3.9', '3.10', '3.11']
115+
python_version: ['3.8', '3.9', '3.10', '3.11']
122116
is_master:
123117
- ${{ github.ref == 'refs/heads/master' }}
124118
exclude:
125-
- is_master: false
126-
python_version: '3.7'
127119
- is_master: false
128120
python_version: '3.8'
129121
- is_master: false

.github/workflows/windows.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
- name: Set up Python version
102102
uses: actions/setup-python@v4
103103
with:
104-
python-version: 3.7
104+
python-version: 3.8
105105

106106
- name: Config
107107
# Move build directory to C: https://github.com/actions/virtual-environments/issues/1341
@@ -246,12 +246,10 @@ jobs:
246246
fail-fast: false
247247
# https://github.community/t/how-to-conditionally-include-exclude-items-in-matrix-eg-based-on-branch/16853/6
248248
matrix:
249-
python_version: ['3.7', '3.8', '3.9', '3.10', '3.11']
249+
python_version: ['3.8', '3.9', '3.10', '3.11']
250250
is_master:
251251
- ${{ github.ref == 'refs/heads/master' }}
252252
exclude:
253-
- is_master: false
254-
python_version: '3.7'
255253
- is_master: false
256254
python_version: '3.8'
257255
- is_master: false
@@ -351,12 +349,10 @@ jobs:
351349
strategy:
352350
fail-fast: false
353351
matrix:
354-
python_version: ['3.7', '3.8', '3.9', '3.10', '3.11']
352+
python_version: ['3.8', '3.9', '3.10', '3.11']
355353
is_master:
356354
- ${{ github.ref == 'refs/heads/master' }}
357355
exclude:
358-
- is_master: false
359-
python_version: '3.7'
360356
- is_master: false
361357
python_version: '3.8'
362358
- is_master: false

docker/docker_build.sh

Lines changed: 15 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,20 @@ __usage_docker_build="USAGE:
2323
2424
OPTION:
2525
# OpenBLAS AMD64 (Dockerfile.openblas)
26-
openblas-amd64-py37-dev : OpenBLAS AMD64 3.7 wheel, developer mode
2726
openblas-amd64-py38-dev : OpenBLAS AMD64 3.8 wheel, developer mode
2827
openblas-amd64-py39-dev : OpenBLAS AMD64 3.9 wheel, developer mode
2928
openblas-amd64-py310-dev : OpenBLAS AMD64 3.10 wheel, developer mode
3029
openblas-amd64-py311-dev : OpenBLAS AMD64 3.11 wheel, developer mode
31-
openblas-amd64-py37 : OpenBLAS AMD64 3.7 wheel, release mode
3230
openblas-amd64-py38 : OpenBLAS AMD64 3.8 wheel, release mode
3331
openblas-amd64-py39 : OpenBLAS AMD64 3.9 wheel, release mode
3432
openblas-amd64-py310 : OpenBLAS AMD64 3.10 wheel, release mode
3533
openblas-amd64-py311 : OpenBLAS AMD64 3.11 wheel, release mode
3634
3735
# OpenBLAS ARM64 (Dockerfile.openblas)
38-
openblas-arm64-py37-dev : OpenBLAS ARM64 3.7 wheel, developer mode
3936
openblas-arm64-py38-dev : OpenBLAS ARM64 3.8 wheel, developer mode
4037
openblas-arm64-py39-dev : OpenBLAS ARM64 3.9 wheel, developer mode
4138
openblas-arm64-py310-dev : OpenBLAS ARM64 3.10 wheel, developer mode
4239
openblas-arm64-py311-dev : OpenBLAS ARM64 3.11 wheel, developer mode
43-
openblas-arm64-py37 : OpenBLAS ARM64 3.7 wheel, release mode
4440
openblas-arm64-py38 : OpenBLAS ARM64 3.8 wheel, release mode
4541
openblas-arm64-py39 : OpenBLAS ARM64 3.9 wheel, release mode
4642
openblas-arm64-py310 : OpenBLAS ARM64 3.10 wheel, release mode
@@ -66,12 +62,10 @@ OPTION:
6662
5-ml-focal : CUDA CI, 5-ml-focal, developer mode
6763
6864
# CUDA wheels (Dockerfile.wheel)
69-
cuda_wheel_py37_dev : CUDA Python 3.7 wheel, developer mode
7065
cuda_wheel_py38_dev : CUDA Python 3.8 wheel, developer mode
7166
cuda_wheel_py39_dev : CUDA Python 3.9 wheel, developer mode
7267
cuda_wheel_py310_dev : CUDA Python 3.10 wheel, developer mode
7368
cuda_wheel_py311_dev : CUDA Python 3.11 wheel, developer mode
74-
cuda_wheel_py37 : CUDA Python 3.7 wheel, release mode
7569
cuda_wheel_py38 : CUDA Python 3.8 wheel, release mode
7670
cuda_wheel_py39 : CUDA Python 3.9 wheel, release mode
7771
cuda_wheel_py310 : CUDA Python 3.10 wheel, release mode
@@ -121,10 +115,7 @@ openblas_export_env() {
121115
print_usage_and_exit_docker_build
122116
fi
123117

124-
if [[ "py37" =~ ^($options)$ ]]; then
125-
export PYTHON_VERSION=3.7
126-
export DOCKER_TAG=${DOCKER_TAG}-py37
127-
elif [[ "py38" =~ ^($options)$ ]]; then
118+
if [[ "py38" =~ ^($options)$ ]]; then
128119
export PYTHON_VERSION=3.8
129120
export DOCKER_TAG=${DOCKER_TAG}-py38
130121
elif [[ "py39" =~ ^($options)$ ]]; then
@@ -183,9 +174,7 @@ cuda_wheel_build() {
183174

184175
options="$(echo "$@" | tr ' ' '|')"
185176
echo "[cuda_wheel_build()] options: ${options}"
186-
if [[ "py37" =~ ^($options)$ ]]; then
187-
PYTHON_VERSION=3.7
188-
elif [[ "py38" =~ ^($options)$ ]]; then
177+
if [[ "py38" =~ ^($options)$ ]]; then
189178
PYTHON_VERSION=3.8
190179
elif [[ "py39" =~ ^($options)$ ]]; then
191180
PYTHON_VERSION=3.9
@@ -271,7 +260,7 @@ ci_build() {
271260
export BASE_IMAGE=nvidia/cuda:${CUDA_VERSION}-devel-ubuntu18.04
272261
export DEVELOPER_BUILD=ON
273262
export CCACHE_TAR_NAME=open3d-ci-2-bionic
274-
export PYTHON_VERSION=3.7
263+
export PYTHON_VERSION=3.8
275264
export BUILD_SHARED_LIBS=OFF
276265
export BUILD_CUDA_MODULE=ON
277266
export BUILD_TENSORFLOW_OPS=OFF
@@ -286,7 +275,7 @@ ci_build() {
286275
export BASE_IMAGE=nvidia/cuda:${CUDA_VERSION}-devel-ubuntu18.04
287276
export DEVELOPER_BUILD=ON
288277
export CCACHE_TAR_NAME=open3d-ci-3-ml-shared-bionic
289-
export PYTHON_VERSION=3.7
278+
export PYTHON_VERSION=3.8
290279
export BUILD_SHARED_LIBS=ON
291280
export BUILD_CUDA_MODULE=ON
292281
# TODO: re-enable tensorflow support, off due to due to cxx11_abi issue with PyTorch
@@ -302,7 +291,7 @@ ci_build() {
302291
export BASE_IMAGE=nvidia/cuda:${CUDA_VERSION}-devel-ubuntu18.04
303292
export DEVELOPER_BUILD=OFF
304293
export CCACHE_TAR_NAME=open3d-ci-3-ml-shared-bionic
305-
export PYTHON_VERSION=3.7
294+
export PYTHON_VERSION=3.8
306295
export BUILD_SHARED_LIBS=ON
307296
export BUILD_CUDA_MODULE=ON
308297
# TODO: re-enable tensorflow support, off due to due to cxx11_abi issue with PyTorch
@@ -318,7 +307,7 @@ ci_build() {
318307
export BASE_IMAGE=nvidia/cuda:${CUDA_VERSION}-devel-ubuntu18.04
319308
export DEVELOPER_BUILD=ON
320309
export CCACHE_TAR_NAME=open3d-ci-4-shared-bionic
321-
export PYTHON_VERSION=3.7
310+
export PYTHON_VERSION=3.8
322311
export BUILD_SHARED_LIBS=ON
323312
export BUILD_CUDA_MODULE=ON
324313
export BUILD_TENSORFLOW_OPS=OFF
@@ -333,7 +322,7 @@ ci_build() {
333322
export BASE_IMAGE=nvidia/cuda:${CUDA_VERSION}-devel-ubuntu18.04
334323
export DEVELOPER_BUILD=OFF
335324
export CCACHE_TAR_NAME=open3d-ci-4-shared-bionic
336-
export PYTHON_VERSION=3.7
325+
export PYTHON_VERSION=3.8
337326
export BUILD_SHARED_LIBS=ON
338327
export BUILD_CUDA_MODULE=ON
339328
export BUILD_TENSORFLOW_OPS=OFF
@@ -348,7 +337,7 @@ ci_build() {
348337
export BASE_IMAGE=nvidia/cuda:${CUDA_VERSION}-devel-ubuntu20.04
349338
export DEVELOPER_BUILD=ON
350339
export CCACHE_TAR_NAME=open3d-ci-5-ml-focal
351-
export PYTHON_VERSION=3.7
340+
export PYTHON_VERSION=3.8
352341
export BUILD_SHARED_LIBS=OFF
353342
export BUILD_CUDA_MODULE=ON
354343
# TODO: re-enable tensorflow support, off due to due to cxx11_abi issue with PyTorch
@@ -364,7 +353,7 @@ cpu-static_export_env() {
364353
export BASE_IMAGE=ubuntu:18.04
365354
export DEVELOPER_BUILD=ON
366355
export CCACHE_TAR_NAME=open3d-ci-cpu
367-
export PYTHON_VERSION=3.7
356+
export PYTHON_VERSION=3.8
368357
export BUILD_SHARED_LIBS=OFF
369358
export BUILD_CUDA_MODULE=OFF
370359
export BUILD_TENSORFLOW_OPS=OFF
@@ -379,7 +368,7 @@ cpu-shared_export_env() {
379368
export BASE_IMAGE=ubuntu:18.04
380369
export DEVELOPER_BUILD=ON
381370
export CCACHE_TAR_NAME=open3d-ci-cpu
382-
export PYTHON_VERSION=3.7
371+
export PYTHON_VERSION=3.8
383372
export BUILD_SHARED_LIBS=ON
384373
export BUILD_CUDA_MODULE=OFF
385374
export BUILD_TENSORFLOW_OPS=OFF
@@ -394,7 +383,7 @@ cpu-shared-ml_export_env() {
394383
export BASE_IMAGE=ubuntu:18.04
395384
export DEVELOPER_BUILD=ON
396385
export CCACHE_TAR_NAME=open3d-ci-cpu
397-
export PYTHON_VERSION=3.7
386+
export PYTHON_VERSION=3.8
398387
export BUILD_SHARED_LIBS=ON
399388
export BUILD_CUDA_MODULE=OFF
400389
# TODO: re-enable tensorflow support, off due to due to cxx11_abi issue with PyTorch
@@ -410,7 +399,7 @@ cpu-shared-release_export_env() {
410399
export BASE_IMAGE=ubuntu:18.04
411400
export DEVELOPER_BUILD=OFF
412401
export CCACHE_TAR_NAME=open3d-ci-cpu
413-
export PYTHON_VERSION=3.7
402+
export PYTHON_VERSION=3.8
414403
export BUILD_SHARED_LIBS=ON
415404
export BUILD_CUDA_MODULE=OFF
416405
export BUILD_TENSORFLOW_OPS=OFF
@@ -425,7 +414,7 @@ cpu-shared-ml-release_export_env() {
425414
export BASE_IMAGE=ubuntu:18.04
426415
export DEVELOPER_BUILD=OFF
427416
export CCACHE_TAR_NAME=open3d-ci-cpu
428-
export PYTHON_VERSION=3.7
417+
export PYTHON_VERSION=3.8
429418
export BUILD_SHARED_LIBS=ON
430419
export BUILD_CUDA_MODULE=OFF
431420
# TODO: re-enable tensorflow support, off due to due to cxx11_abi issue with PyTorch
@@ -443,7 +432,7 @@ sycl-shared_export_env() {
443432
export BASE_IMAGE=intel/oneapi-basekit:2022.2-devel-ubuntu20.04
444433
export DEVELOPER_BUILD=ON
445434
export CCACHE_TAR_NAME=open3d-ci-sycl
446-
export PYTHON_VERSION=3.7
435+
export PYTHON_VERSION=3.8
447436
export BUILD_SHARED_LIBS=ON
448437
export BUILD_CUDA_MODULE=OFF
449438
export BUILD_TENSORFLOW_OPS=OFF
@@ -460,7 +449,7 @@ sycl-static_export_env() {
460449
export BASE_IMAGE=intel/oneapi-basekit:2022.2-devel-ubuntu20.04
461450
export DEVELOPER_BUILD=ON
462451
export CCACHE_TAR_NAME=open3d-ci-sycl
463-
export PYTHON_VERSION=3.7
452+
export PYTHON_VERSION=3.8
464453
export BUILD_SHARED_LIBS=OFF
465454
export BUILD_CUDA_MODULE=OFF
466455
export BUILD_TENSORFLOW_OPS=OFF
@@ -477,10 +466,6 @@ function main() {
477466
echo "[$(basename $0)] building $1"
478467
case "$1" in
479468
# OpenBLAS AMD64
480-
openblas-amd64-py37-dev)
481-
openblas_export_env amd64 py37 dev
482-
openblas_build
483-
;;
484469
openblas-amd64-py38-dev)
485470
openblas_export_env amd64 py38 dev
486471
openblas_build
@@ -497,10 +482,6 @@ function main() {
497482
openblas_export_env amd64 py311 dev
498483
openblas_build
499484
;;
500-
openblas-amd64-py37)
501-
openblas_export_env amd64 py37
502-
openblas_build
503-
;;
504485
openblas-amd64-py38)
505486
openblas_export_env amd64 py38
506487
openblas_build
@@ -519,10 +500,6 @@ function main() {
519500
;;
520501

521502
# OpenBLAS ARM64
522-
openblas-arm64-py37-dev)
523-
openblas_export_env arm64 py37 dev
524-
openblas_build
525-
;;
526503
openblas-arm64-py38-dev)
527504
openblas_export_env arm64 py38 dev
528505
openblas_build
@@ -539,10 +516,6 @@ function main() {
539516
openblas_export_env arm64 py311 dev
540517
openblas_build
541518
;;
542-
openblas-arm64-py37)
543-
openblas_export_env arm64 py37
544-
openblas_build
545-
;;
546519
openblas-arm64-py38)
547520
openblas_export_env arm64 py38
548521
openblas_build
@@ -593,9 +566,6 @@ function main() {
593566
;;
594567

595568
# CUDA wheels
596-
cuda_wheel_py37_dev)
597-
cuda_wheel_build py37 dev
598-
;;
599569
cuda_wheel_py38_dev)
600570
cuda_wheel_build py38 dev
601571
;;
@@ -608,9 +578,6 @@ function main() {
608578
cuda_wheel_py311_dev)
609579
cuda_wheel_build py311 dev
610580
;;
611-
cuda_wheel_py37)
612-
cuda_wheel_build py37
613-
;;
614581
cuda_wheel_py38)
615582
cuda_wheel_build py38
616583
;;

0 commit comments

Comments
 (0)