Unverified Commit 78ffda7e authored by Philip Meier's avatar Philip Meier Committed by GitHub
Browse files

drop support for Python 3.7 (#7110)


Co-authored-by: default avatarNikita Shulga <nshulga@fb.com>
parent 71073cb5
...@@ -2,8 +2,8 @@ version: 2.1 ...@@ -2,8 +2,8 @@ version: 2.1
# How to test the Linux jobs: # How to test the Linux jobs:
# - Install CircleCI local CLI: https://circleci.com/docs/2.0/local-cli/ # - Install CircleCI local CLI: https://circleci.com/docs/2.0/local-cli/
# - circleci config process .circleci/config.yml > gen.yml && circleci local execute -c gen.yml --job binary_linux_wheel_py3.7 # - circleci config process .circleci/config.yml > gen.yml && circleci local execute -c gen.yml --job binary_linux_wheel_py3.8
# - Replace binary_linux_wheel_py3.7 with the name of the job you want to test. # - Replace binary_linux_wheel_py3.8 with the name of the job you want to test.
# Job names are 'name:' key. # Job names are 'name:' key.
executors: executors:
...@@ -201,7 +201,7 @@ binary_common: &binary_common ...@@ -201,7 +201,7 @@ binary_common: &binary_common
default: "" default: ""
# Don't edit these # Don't edit these
python_version: python_version:
description: "Python version to build against (e.g., 3.7)" description: "Python version to build against (e.g., 3.8)"
type: string type: string
cu_version: cu_version:
description: "CUDA version to build against, in CU format (e.g., cpu or cu100)" description: "CUDA version to build against, in CU format (e.g., cpu or cu100)"
...@@ -258,7 +258,7 @@ smoke_test_common: &smoke_test_common ...@@ -258,7 +258,7 @@ smoke_test_common: &smoke_test_common
jobs: jobs:
circleci_consistency: circleci_consistency:
docker: docker:
- image: cimg/python:3.7 - image: cimg/python:3.8
steps: steps:
- checkout - checkout
- pip_install: - pip_install:
...@@ -271,7 +271,7 @@ jobs: ...@@ -271,7 +271,7 @@ jobs:
lint_python_and_config: lint_python_and_config:
docker: docker:
- image: cimg/python:3.7 - image: cimg/python:3.8
steps: steps:
- checkout - checkout
- pip_install: - pip_install:
...@@ -290,7 +290,7 @@ jobs: ...@@ -290,7 +290,7 @@ jobs:
lint_c: lint_c:
docker: docker:
- image: cimg/python:3.7 - image: cimg/python:3.8
steps: steps:
- apt_install: - apt_install:
args: libtinfo5 args: libtinfo5
...@@ -312,7 +312,7 @@ jobs: ...@@ -312,7 +312,7 @@ jobs:
type_check_python: type_check_python:
docker: docker:
- image: cimg/python:3.7 - image: cimg/python:3.8
steps: steps:
- checkout - checkout
- install_torchvision: - install_torchvision:
...@@ -326,7 +326,7 @@ jobs: ...@@ -326,7 +326,7 @@ jobs:
unittest_torchhub: unittest_torchhub:
docker: docker:
- image: cimg/python:3.7 - image: cimg/python:3.8
steps: steps:
- checkout - checkout
- install_torchvision - install_torchvision
...@@ -335,7 +335,7 @@ jobs: ...@@ -335,7 +335,7 @@ jobs:
unittest_onnx: unittest_onnx:
docker: docker:
- image: cimg/python:3.7 - image: cimg/python:3.8
steps: steps:
- checkout - checkout
- install_torchvision - install_torchvision
...@@ -347,7 +347,7 @@ jobs: ...@@ -347,7 +347,7 @@ jobs:
unittest_extended: unittest_extended:
docker: docker:
- image: cimg/python:3.7 - image: cimg/python:3.8
resource_class: xlarge resource_class: xlarge
steps: steps:
- checkout - checkout
...@@ -594,7 +594,7 @@ jobs: ...@@ -594,7 +594,7 @@ jobs:
description: "What whl subfolder to upload to, e.g., blank or cu100/ (trailing slash is important)" description: "What whl subfolder to upload to, e.g., blank or cu100/ (trailing slash is important)"
type: string type: string
docker: docker:
- image: cimg/python:3.7 - image: cimg/python:3.8
steps: steps:
- attach_workspace: - attach_workspace:
at: ~/workspace at: ~/workspace
...@@ -1017,7 +1017,7 @@ jobs: ...@@ -1017,7 +1017,7 @@ jobs:
build_docs: build_docs:
<<: *binary_common <<: *binary_common
docker: docker:
- image: cimg/python:3.7 - image: cimg/python:3.8
resource_class: 2xlarge+ resource_class: 2xlarge+
steps: steps:
- attach_workspace: - attach_workspace:
...@@ -1100,73 +1100,37 @@ workflows: ...@@ -1100,73 +1100,37 @@ workflows:
only: /.*/ only: /.*/
tags: tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/ only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: binary_linux_wheel_py3.7_cpu name: binary_linux_wheel_py3.8_cpu
python_version: '3.7' python_version: '3.8'
wheel_docker_image: pytorch/manylinux-cpu wheel_docker_image: pytorch/manylinux-cpu
- binary_linux_wheel: - binary_linux_wheel:
conda_docker_image: pytorch/conda-builder:cuda116 conda_docker_image: pytorch/conda-builder:cuda116
cu_version: cu116 cu_version: cu116
name: binary_linux_wheel_py3.7_cu116 name: binary_linux_wheel_py3.8_cu116
python_version: '3.7' python_version: '3.8'
wheel_docker_image: pytorch/manylinux-cuda116 wheel_docker_image: pytorch/manylinux-cuda116
- binary_linux_wheel: - binary_linux_wheel:
conda_docker_image: pytorch/conda-builder:cuda117 conda_docker_image: pytorch/conda-builder:cuda117
cu_version: cu117 cu_version: cu117
name: binary_linux_wheel_py3.7_cu117 name: binary_linux_wheel_py3.8_cu117
python_version: '3.7' python_version: '3.8'
wheel_docker_image: pytorch/manylinux-cuda117 wheel_docker_image: pytorch/manylinux-cuda117
- binary_linux_wheel: - binary_linux_wheel:
conda_docker_image: pytorch/conda-builder:cuda118 conda_docker_image: pytorch/conda-builder:cuda118
cu_version: cu118 cu_version: cu118
name: binary_linux_wheel_py3.7_cu118 name: binary_linux_wheel_py3.8_cu118
python_version: '3.7' python_version: '3.8'
wheel_docker_image: pytorch/manylinux-cuda118 wheel_docker_image: pytorch/manylinux-cuda118
- binary_linux_wheel: - binary_linux_wheel:
cu_version: rocm5.2 cu_version: rocm5.2
name: binary_linux_wheel_py3.7_rocm5.2 name: binary_linux_wheel_py3.8_rocm5.2
python_version: '3.7' python_version: '3.8'
wheel_docker_image: pytorch/manylinux-rocm:5.2 wheel_docker_image: pytorch/manylinux-rocm:5.2
- binary_linux_wheel: - binary_linux_wheel:
cu_version: rocm5.3 cu_version: rocm5.3
name: binary_linux_wheel_py3.7_rocm5.3 name: binary_linux_wheel_py3.8_rocm5.3
python_version: '3.7' python_version: '3.8'
wheel_docker_image: pytorch/manylinux-rocm:5.3 wheel_docker_image: pytorch/manylinux-rocm:5.3
- binary_win_wheel:
cu_version: cpu
filters:
branches:
only: main
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: binary_win_wheel_py3.7_cpu
python_version: '3.7'
- binary_win_wheel:
cu_version: cu116
filters:
branches:
only: main
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: binary_win_wheel_py3.7_cu116
python_version: '3.7'
- binary_win_wheel:
cu_version: cu117
filters:
branches:
only: main
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: binary_win_wheel_py3.7_cu117
python_version: '3.7'
- binary_win_wheel:
cu_version: cu118
filters:
branches:
only: main
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: binary_win_wheel_py3.7_cu118
python_version: '3.7'
- binary_win_wheel: - binary_win_wheel:
cu_version: cpu cu_version: cpu
filters: filters:
...@@ -1265,42 +1229,6 @@ workflows: ...@@ -1265,42 +1229,6 @@ workflows:
cu_version: cu118 cu_version: cu118
name: binary_win_wheel_py3.10_cu118 name: binary_win_wheel_py3.10_cu118
python_version: '3.10' python_version: '3.10'
- binary_win_conda:
cu_version: cpu
filters:
branches:
only: main
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: binary_win_conda_py3.7_cpu
python_version: '3.7'
- binary_win_conda:
cu_version: cu116
filters:
branches:
only: main
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: binary_win_conda_py3.7_cu116
python_version: '3.7'
- binary_win_conda:
cu_version: cu117
filters:
branches:
only: main
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: binary_win_conda_py3.7_cu117
python_version: '3.7'
- binary_win_conda:
cu_version: cu118
filters:
branches:
only: main
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: binary_win_conda_py3.7_cu118
python_version: '3.7'
- binary_win_conda: - binary_win_conda:
cu_version: cpu cu_version: cpu
filters: filters:
...@@ -1407,9 +1335,9 @@ workflows: ...@@ -1407,9 +1335,9 @@ workflows:
tags: tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/ only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: build_docs name: build_docs
python_version: '3.7' python_version: '3.8'
requires: requires:
- binary_linux_wheel_py3.7_cpu - binary_linux_wheel_py3.8_cpu
- upload_docs: - upload_docs:
context: org-member context: org-member
filters: filters:
...@@ -1419,7 +1347,7 @@ workflows: ...@@ -1419,7 +1347,7 @@ workflows:
tags: tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/ only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: upload_docs name: upload_docs
python_version: '3.7' python_version: '3.8'
requires: requires:
- build_docs - build_docs
- binary_ios_build: - binary_ios_build:
...@@ -1441,15 +1369,6 @@ workflows: ...@@ -1441,15 +1369,6 @@ workflows:
- unittest_torchhub - unittest_torchhub
- unittest_onnx - unittest_onnx
- unittest_extended - unittest_extended
- unittest_linux_gpu:
cu_version: cu116
filters:
branches:
only:
- main
- nightly
name: unittest_linux_gpu_py3.7
python_version: '3.7'
- unittest_linux_gpu: - unittest_linux_gpu:
cu_version: cu116 cu_version: cu116
name: unittest_linux_gpu_py3.8 name: unittest_linux_gpu_py3.8
...@@ -1472,10 +1391,6 @@ workflows: ...@@ -1472,10 +1391,6 @@ workflows:
- nightly - nightly
name: unittest_linux_gpu_py3.10 name: unittest_linux_gpu_py3.10
python_version: '3.10' python_version: '3.10'
- unittest_windows_cpu:
cu_version: cpu
name: unittest_windows_cpu_py3.7
python_version: '3.7'
- unittest_windows_cpu: - unittest_windows_cpu:
cu_version: cpu cu_version: cpu
name: unittest_windows_cpu_py3.8 name: unittest_windows_cpu_py3.8
...@@ -1488,15 +1403,6 @@ workflows: ...@@ -1488,15 +1403,6 @@ workflows:
cu_version: cpu cu_version: cpu
name: unittest_windows_cpu_py3.10 name: unittest_windows_cpu_py3.10
python_version: '3.10' python_version: '3.10'
- unittest_windows_gpu:
cu_version: cu116
filters:
branches:
only:
- main
- nightly
name: unittest_windows_gpu_py3.7
python_version: '3.7'
- unittest_windows_gpu: - unittest_windows_gpu:
cu_version: cu116 cu_version: cu116
name: unittest_windows_gpu_py3.8 name: unittest_windows_gpu_py3.8
...@@ -1519,10 +1425,6 @@ workflows: ...@@ -1519,10 +1425,6 @@ workflows:
- nightly - nightly
name: unittest_windows_gpu_py3.10 name: unittest_windows_gpu_py3.10
python_version: '3.10' python_version: '3.10'
- unittest_macos_cpu:
cu_version: cpu
name: unittest_macos_cpu_py3.7
python_version: '3.7'
- unittest_macos_cpu: - unittest_macos_cpu:
cu_version: cpu cu_version: cpu
name: unittest_macos_cpu_py3.8 name: unittest_macos_cpu_py3.8
...@@ -1606,8 +1508,8 @@ workflows: ...@@ -1606,8 +1508,8 @@ workflows:
only: nightly only: nightly
tags: tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/ only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_wheel_py3.7_cpu name: nightly_binary_linux_wheel_py3.8_cpu
python_version: '3.7' python_version: '3.8'
wheel_docker_image: pytorch/manylinux-cpu wheel_docker_image: pytorch/manylinux-cpu
- binary_linux_wheel: - binary_linux_wheel:
conda_docker_image: pytorch/conda-builder:cuda116 conda_docker_image: pytorch/conda-builder:cuda116
...@@ -1617,8 +1519,8 @@ workflows: ...@@ -1617,8 +1519,8 @@ workflows:
only: nightly only: nightly
tags: tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/ only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_wheel_py3.7_cu116 name: nightly_binary_linux_wheel_py3.8_cu116
python_version: '3.7' python_version: '3.8'
wheel_docker_image: pytorch/manylinux-cuda116 wheel_docker_image: pytorch/manylinux-cuda116
- binary_linux_wheel: - binary_linux_wheel:
conda_docker_image: pytorch/conda-builder:cuda117 conda_docker_image: pytorch/conda-builder:cuda117
...@@ -1628,8 +1530,8 @@ workflows: ...@@ -1628,8 +1530,8 @@ workflows:
only: nightly only: nightly
tags: tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/ only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_wheel_py3.7_cu117 name: nightly_binary_linux_wheel_py3.8_cu117
python_version: '3.7' python_version: '3.8'
wheel_docker_image: pytorch/manylinux-cuda117 wheel_docker_image: pytorch/manylinux-cuda117
- binary_linux_wheel: - binary_linux_wheel:
conda_docker_image: pytorch/conda-builder:cuda118 conda_docker_image: pytorch/conda-builder:cuda118
...@@ -1639,8 +1541,8 @@ workflows: ...@@ -1639,8 +1541,8 @@ workflows:
only: nightly only: nightly
tags: tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/ only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_wheel_py3.7_cu118 name: nightly_binary_linux_wheel_py3.8_cu118
python_version: '3.7' python_version: '3.8'
wheel_docker_image: pytorch/manylinux-cuda118 wheel_docker_image: pytorch/manylinux-cuda118
- binary_linux_wheel: - binary_linux_wheel:
cu_version: rocm5.2 cu_version: rocm5.2
...@@ -1649,8 +1551,8 @@ workflows: ...@@ -1649,8 +1551,8 @@ workflows:
only: nightly only: nightly
tags: tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/ only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_wheel_py3.7_rocm5.2 name: nightly_binary_linux_wheel_py3.8_rocm5.2
python_version: '3.7' python_version: '3.8'
wheel_docker_image: pytorch/manylinux-rocm:5.2 wheel_docker_image: pytorch/manylinux-rocm:5.2
- binary_linux_wheel: - binary_linux_wheel:
cu_version: rocm5.3 cu_version: rocm5.3
...@@ -1659,89 +1561,9 @@ workflows: ...@@ -1659,89 +1561,9 @@ workflows:
only: nightly only: nightly
tags: tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/ only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_linux_wheel_py3.7_rocm5.3 name: nightly_binary_linux_wheel_py3.8_rocm5.3
python_version: '3.7' python_version: '3.8'
wheel_docker_image: pytorch/manylinux-rocm:5.3 wheel_docker_image: pytorch/manylinux-rocm:5.3
- binary_win_wheel:
cu_version: cpu
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_win_wheel_py3.7_cpu
python_version: '3.7'
- binary_wheel_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_win_wheel_py3.7_cpu_upload
requires:
- nightly_binary_win_wheel_py3.7_cpu
subfolder: cpu/
- binary_win_wheel:
cu_version: cu116
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_win_wheel_py3.7_cu116
python_version: '3.7'
- binary_wheel_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_win_wheel_py3.7_cu116_upload
requires:
- nightly_binary_win_wheel_py3.7_cu116
subfolder: cu116/
- binary_win_wheel:
cu_version: cu117
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_win_wheel_py3.7_cu117
python_version: '3.7'
- binary_wheel_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_win_wheel_py3.7_cu117_upload
requires:
- nightly_binary_win_wheel_py3.7_cu117
subfolder: cu117/
- binary_win_wheel:
cu_version: cu118
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_win_wheel_py3.7_cu118
python_version: '3.7'
- binary_wheel_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_win_wheel_py3.7_cu118_upload
requires:
- nightly_binary_win_wheel_py3.7_cu118
subfolder: cu118/
- binary_win_wheel: - binary_win_wheel:
cu_version: cpu cu_version: cpu
filters: filters:
...@@ -1982,82 +1804,6 @@ workflows: ...@@ -1982,82 +1804,6 @@ workflows:
requires: requires:
- nightly_binary_win_wheel_py3.10_cu118 - nightly_binary_win_wheel_py3.10_cu118
subfolder: cu118/ subfolder: cu118/
- binary_win_conda:
cu_version: cpu
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_win_conda_py3.7_cpu
python_version: '3.7'
- binary_conda_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_win_conda_py3.7_cpu_upload
requires:
- nightly_binary_win_conda_py3.7_cpu
- binary_win_conda:
cu_version: cu116
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_win_conda_py3.7_cu116
python_version: '3.7'
- binary_conda_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_win_conda_py3.7_cu116_upload
requires:
- nightly_binary_win_conda_py3.7_cu116
- binary_win_conda:
cu_version: cu117
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_win_conda_py3.7_cu117
python_version: '3.7'
- binary_conda_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_win_conda_py3.7_cu117_upload
requires:
- nightly_binary_win_conda_py3.7_cu117
- binary_win_conda:
cu_version: cu118
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_win_conda_py3.7_cu118
python_version: '3.7'
- binary_conda_upload:
context: org-member
filters:
branches:
only: nightly
tags:
only: /v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name: nightly_binary_win_conda_py3.7_cu118_upload
requires:
- nightly_binary_win_conda_py3.7_cu118
- binary_win_conda: - binary_win_conda:
cu_version: cpu cu_version: cpu
filters: filters:
......
...@@ -2,8 +2,8 @@ version: 2.1 ...@@ -2,8 +2,8 @@ version: 2.1
# How to test the Linux jobs: # How to test the Linux jobs:
# - Install CircleCI local CLI: https://circleci.com/docs/2.0/local-cli/ # - Install CircleCI local CLI: https://circleci.com/docs/2.0/local-cli/
# - circleci config process .circleci/config.yml > gen.yml && circleci local execute -c gen.yml --job binary_linux_wheel_py3.7 # - circleci config process .circleci/config.yml > gen.yml && circleci local execute -c gen.yml --job binary_linux_wheel_py3.8
# - Replace binary_linux_wheel_py3.7 with the name of the job you want to test. # - Replace binary_linux_wheel_py3.8 with the name of the job you want to test.
# Job names are 'name:' key. # Job names are 'name:' key.
executors: executors:
...@@ -201,7 +201,7 @@ binary_common: &binary_common ...@@ -201,7 +201,7 @@ binary_common: &binary_common
default: "" default: ""
# Don't edit these # Don't edit these
python_version: python_version:
description: "Python version to build against (e.g., 3.7)" description: "Python version to build against (e.g., 3.8)"
type: string type: string
cu_version: cu_version:
description: "CUDA version to build against, in CU format (e.g., cpu or cu100)" description: "CUDA version to build against, in CU format (e.g., cpu or cu100)"
...@@ -258,7 +258,7 @@ smoke_test_common: &smoke_test_common ...@@ -258,7 +258,7 @@ smoke_test_common: &smoke_test_common
jobs: jobs:
circleci_consistency: circleci_consistency:
docker: docker:
- image: cimg/python:3.7 - image: cimg/python:3.8
steps: steps:
- checkout - checkout
- pip_install: - pip_install:
...@@ -271,7 +271,7 @@ jobs: ...@@ -271,7 +271,7 @@ jobs:
lint_python_and_config: lint_python_and_config:
docker: docker:
- image: cimg/python:3.7 - image: cimg/python:3.8
steps: steps:
- checkout - checkout
- pip_install: - pip_install:
...@@ -290,7 +290,7 @@ jobs: ...@@ -290,7 +290,7 @@ jobs:
lint_c: lint_c:
docker: docker:
- image: cimg/python:3.7 - image: cimg/python:3.8
steps: steps:
- apt_install: - apt_install:
args: libtinfo5 args: libtinfo5
...@@ -312,7 +312,7 @@ jobs: ...@@ -312,7 +312,7 @@ jobs:
type_check_python: type_check_python:
docker: docker:
- image: cimg/python:3.7 - image: cimg/python:3.8
steps: steps:
- checkout - checkout
- install_torchvision: - install_torchvision:
...@@ -326,7 +326,7 @@ jobs: ...@@ -326,7 +326,7 @@ jobs:
unittest_torchhub: unittest_torchhub:
docker: docker:
- image: cimg/python:3.7 - image: cimg/python:3.8
steps: steps:
- checkout - checkout
- install_torchvision - install_torchvision
...@@ -335,7 +335,7 @@ jobs: ...@@ -335,7 +335,7 @@ jobs:
unittest_onnx: unittest_onnx:
docker: docker:
- image: cimg/python:3.7 - image: cimg/python:3.8
steps: steps:
- checkout - checkout
- install_torchvision - install_torchvision
...@@ -347,7 +347,7 @@ jobs: ...@@ -347,7 +347,7 @@ jobs:
unittest_extended: unittest_extended:
docker: docker:
- image: cimg/python:3.7 - image: cimg/python:3.8
resource_class: xlarge resource_class: xlarge
steps: steps:
- checkout - checkout
...@@ -594,7 +594,7 @@ jobs: ...@@ -594,7 +594,7 @@ jobs:
description: "What whl subfolder to upload to, e.g., blank or cu100/ (trailing slash is important)" description: "What whl subfolder to upload to, e.g., blank or cu100/ (trailing slash is important)"
type: string type: string
docker: docker:
- image: cimg/python:3.7 - image: cimg/python:3.8
steps: steps:
- attach_workspace: - attach_workspace:
at: ~/workspace at: ~/workspace
...@@ -1017,7 +1017,7 @@ jobs: ...@@ -1017,7 +1017,7 @@ jobs:
build_docs: build_docs:
<<: *binary_common <<: *binary_common
docker: docker:
- image: cimg/python:3.7 - image: cimg/python:3.8
resource_class: 2xlarge+ resource_class: 2xlarge+
steps: steps:
- attach_workspace: - attach_workspace:
......
...@@ -21,7 +21,7 @@ import yaml ...@@ -21,7 +21,7 @@ import yaml
from jinja2 import select_autoescape from jinja2 import select_autoescape
PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10"] PYTHON_VERSIONS = ["3.8", "3.9", "3.10"]
RC_PATTERN = r"/v[0-9]+(\.[0-9]+)*-rc[0-9]+/" RC_PATTERN = r"/v[0-9]+(\.[0-9]+)*-rc[0-9]+/"
...@@ -55,16 +55,16 @@ def build_workflows(prefix="", filter_branch=None, upload=False, indentation=6, ...@@ -55,16 +55,16 @@ def build_workflows(prefix="", filter_branch=None, upload=False, indentation=6,
): ):
fb = "main" fb = "main"
if not fb and ( if not fb and (
os_type == "linux" and cu_version == "cpu" and btype == "wheel" and python_version == "3.7" os_type == "linux" and cu_version == "cpu" and btype == "wheel" and python_version == "3.8"
): ):
# the fields must match the build_docs "requires" dependency # the fields must match the build_docs "requires" dependency
fb = "/.*/" fb = "/.*/"
# Disable all Linux Wheels Workflows from CircleCI # Disable all Linux Wheels Workflows from CircleCI
# since those will now be done through Nova. We'll keep # since those will now be done through Nova. We'll keep
# around the py3.7 Linux Wheels build since the docs # around the py3.8 Linux Wheels build since the docs
# job depends on it. # job depends on it.
if os_type == "linux" and btype == "wheel" and python_version != "3.7": if os_type == "linux" and btype == "wheel" and python_version != "3.8":
continue continue
# Disable all Macos Wheels Workflows from CircleCI. # Disable all Macos Wheels Workflows from CircleCI.
...@@ -98,7 +98,7 @@ def workflow_pair(btype, os_type, python_version, cu_version, unicode, prefix="" ...@@ -98,7 +98,7 @@ def workflow_pair(btype, os_type, python_version, cu_version, unicode, prefix=""
) )
) )
# For the remaining py3.7 Linux Wheels job left around for the docs build, # For the remaining py3.8 Linux Wheels job left around for the docs build,
# we'll disable uploads. # we'll disable uploads.
if os_type == "linux" and btype == "wheel": if os_type == "linux" and btype == "wheel":
upload = False upload = False
...@@ -116,9 +116,9 @@ def workflow_pair(btype, os_type, python_version, cu_version, unicode, prefix="" ...@@ -116,9 +116,9 @@ def workflow_pair(btype, os_type, python_version, cu_version, unicode, prefix=""
def build_doc_job(filter_branch): def build_doc_job(filter_branch):
job = { job = {
"name": "build_docs", "name": "build_docs",
"python_version": "3.7", "python_version": "3.8",
"requires": [ "requires": [
"binary_linux_wheel_py3.7_cpu", "binary_linux_wheel_py3.8_cpu",
], ],
} }
...@@ -131,7 +131,7 @@ def upload_doc_job(filter_branch): ...@@ -131,7 +131,7 @@ def upload_doc_job(filter_branch):
job = { job = {
"name": "upload_docs", "name": "upload_docs",
"context": "org-member", "context": "org-member",
"python_version": "3.7", "python_version": "3.8",
"requires": [ "requires": [
"build_docs", "build_docs",
], ],
......
...@@ -16,7 +16,7 @@ export PATH="~/anaconda/bin:${PATH}" ...@@ -16,7 +16,7 @@ export PATH="~/anaconda/bin:${PATH}"
source ~/anaconda/bin/activate source ~/anaconda/bin/activate
# install dependencies # install dependencies
conda install numpy ninja pyyaml mkl mkl-include setuptools cmake cffi requests typing_extensions wget --yes conda install numpy ninja pyyaml mkl mkl-include setuptools cmake cffi requests wget --yes
conda install -c conda-forge valgrind --yes conda install -c conda-forge valgrind --yes
export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which conda))/../"} export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which conda))/../"}
......
...@@ -8,7 +8,6 @@ jobs: ...@@ -8,7 +8,6 @@ jobs:
strategy: strategy:
matrix: matrix:
python-version: python-version:
- "3.7"
- "3.8" - "3.8"
- "3.9" - "3.9"
- "3.10" - "3.10"
......
...@@ -16,7 +16,7 @@ jobs: ...@@ -16,7 +16,7 @@ jobs:
tests: tests:
strategy: strategy:
matrix: matrix:
python_version: ["3.7", "3.8", "3.9", "3.10"] python_version: ["3.8", "3.9", "3.10"]
fail-fast: false fail-fast: false
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
with: with:
......
...@@ -18,7 +18,7 @@ jobs: ...@@ -18,7 +18,7 @@ jobs:
- name: Set up python - name: Set up python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: 3.7 python-version: 3.8
- name: Upgrade system packages - name: Upgrade system packages
run: python -m pip install --upgrade pip setuptools wheel run: python -m pip install --upgrade pip setuptools wheel
......
...@@ -21,7 +21,7 @@ supported Python versions. ...@@ -21,7 +21,7 @@ supported Python versions.
+--------------------------+--------------------------+---------------------------------+ +--------------------------+--------------------------+---------------------------------+
| ``torch`` | ``torchvision`` | ``python`` | | ``torch`` | ``torchvision`` | ``python`` |
+==========================+==========================+=================================+ +==========================+==========================+=================================+
| ``main`` / ``nightly`` | ``main`` / ``nightly`` | ``>=3.7.2``, ``<=3.10`` | | ``main`` / ``nightly`` | ``main`` / ``nightly`` | ``>=3.8``, ``<=3.10`` |
+--------------------------+--------------------------+---------------------------------+ +--------------------------+--------------------------+---------------------------------+
| ``1.13.0`` | ``0.14.0`` | ``>=3.7.2``, ``<=3.10`` | | ``1.13.0`` | ``0.14.0`` | ``>=3.7.2``, ``<=3.10`` |
+--------------------------+--------------------------+---------------------------------+ +--------------------------+--------------------------+---------------------------------+
......
...@@ -150,7 +150,7 @@ retry () { ...@@ -150,7 +150,7 @@ retry () {
} }
# Inputs: # Inputs:
# PYTHON_VERSION (3.7, 3.8, 3.9) # PYTHON_VERSION (3.8, 3.9, 3.10)
# UNICODE_ABI (bool) # UNICODE_ABI (bool)
# #
# Outputs: # Outputs:
...@@ -169,7 +169,6 @@ setup_wheel_python() { ...@@ -169,7 +169,6 @@ setup_wheel_python() {
# Install native CentOS libJPEG, freetype and GnuTLS # Install native CentOS libJPEG, freetype and GnuTLS
yum install -y libjpeg-turbo-devel freetype gnutls yum install -y libjpeg-turbo-devel freetype gnutls
case "$PYTHON_VERSION" in case "$PYTHON_VERSION" in
3.7) python_abi=cp37-cp37m ;;
3.8) python_abi=cp38-cp38 ;; 3.8) python_abi=cp38-cp38 ;;
3.9) python_abi=cp39-cp39 ;; 3.9) python_abi=cp39-cp39 ;;
3.10) python_abi=cp310-cp310 ;; 3.10) python_abi=cp310-cp310 ;;
......
...@@ -7,7 +7,7 @@ c_compiler: ...@@ -7,7 +7,7 @@ c_compiler:
cxx_compiler: cxx_compiler:
- vs2017 # [win] - vs2017 # [win]
python: python:
- 3.7 - 3.8
# This differs from target_platform in that it determines what subdir the compiler # This differs from target_platform in that it determines what subdir the compiler
# will target, not what subdir the compiler package will be itself. # will target, not what subdir the compiler package will be itself.
# For example, we need a win-64 vs2008_win-32 package, so that we compile win-32 # For example, we need a win-64 vs2008_win-32 package, so that we compile win-32
......
...@@ -5,7 +5,7 @@ c_compiler: ...@@ -5,7 +5,7 @@ c_compiler:
cxx_compiler: cxx_compiler:
- vs2017 # [win] - vs2017 # [win]
python: python:
- 3.7 - 3.8
# This differs from target_platform in that it determines what subdir the compiler # This differs from target_platform in that it determines what subdir the compiler
# will target, not what subdir the compiler package will be itself. # will target, not what subdir the compiler package will be itself.
# For example, we need a win-64 vs2008_win-32 package, so that we compile win-32 # For example, we need a win-64 vs2008_win-32 package, so that we compile win-32
......
...@@ -5,7 +5,7 @@ c_compiler: ...@@ -5,7 +5,7 @@ c_compiler:
cxx_compiler: cxx_compiler:
- vs2019 # [win] - vs2019 # [win]
python: python:
- 3.7 - 3.8
# This differs from target_platform in that it determines what subdir the compiler # This differs from target_platform in that it determines what subdir the compiler
# will target, not what subdir the compiler package will be itself. # will target, not what subdir the compiler package will be itself.
# For example, we need a win-64 vs2008_win-32 package, so that we compile win-32 # For example, we need a win-64 vs2008_win-32 package, so that we compile win-32
......
...@@ -5,7 +5,7 @@ first_party_detection = false ...@@ -5,7 +5,7 @@ first_party_detection = false
[tool.black] [tool.black]
line-length = 120 line-length = 120
target-version = ["py37"] target-version = ["py38"]
[tool.ufmt] [tool.ufmt]
......
...@@ -58,7 +58,6 @@ if os.getenv("PYTORCH_VERSION"): ...@@ -58,7 +58,6 @@ if os.getenv("PYTORCH_VERSION"):
pytorch_dep += "==" + os.getenv("PYTORCH_VERSION") pytorch_dep += "==" + os.getenv("PYTORCH_VERSION")
requirements = [ requirements = [
"typing_extensions",
"numpy", "numpy",
"requests", "requests",
pytorch_dep, pytorch_dep,
...@@ -546,7 +545,7 @@ if __name__ == "__main__": ...@@ -546,7 +545,7 @@ if __name__ == "__main__":
"scipy": ["scipy"], "scipy": ["scipy"],
}, },
ext_modules=get_extensions(), ext_modules=get_extensions(),
python_requires=">=3.7.2", python_requires=">=3.8",
cmdclass={ cmdclass={
"build_ext": BuildExtension.with_options(no_python_abi_suffix=True), "build_ext": BuildExtension.with_options(no_python_abi_suffix=True),
"clean": clean, "clean": clean,
......
...@@ -2,7 +2,7 @@ import abc ...@@ -2,7 +2,7 @@ import abc
import hashlib import hashlib
import itertools import itertools
import pathlib import pathlib
from typing import Any, Callable, IO, NoReturn, Optional, Sequence, Set, Tuple, Union from typing import Any, Callable, IO, Literal, NoReturn, Optional, Sequence, Set, Tuple, Union
from urllib.parse import urlparse from urllib.parse import urlparse
from torchdata.datapipes.iter import ( from torchdata.datapipes.iter import (
...@@ -23,7 +23,6 @@ from torchvision.datasets.utils import ( ...@@ -23,7 +23,6 @@ from torchvision.datasets.utils import (
download_url, download_url,
extract_archive, extract_archive,
) )
from typing_extensions import Literal
class OnlineResource(abc.ABC): class OnlineResource(abc.ABC):
......
import math import math
import numbers import numbers
import warnings import warnings
from typing import Any, cast, Dict, List, Optional, Sequence, Tuple, Type, Union from typing import Any, cast, Dict, List, Literal, Optional, Sequence, Tuple, Type, Union
import PIL.Image import PIL.Image
import torch import torch
...@@ -11,8 +11,6 @@ from torchvision.prototype import datapoints ...@@ -11,8 +11,6 @@ from torchvision.prototype import datapoints
from torchvision.prototype.transforms import functional as F, InterpolationMode, Transform from torchvision.prototype.transforms import functional as F, InterpolationMode, Transform
from torchvision.transforms.functional import _get_perspective_coeffs from torchvision.transforms.functional import _get_perspective_coeffs
from typing_extensions import Literal
from ._transform import _RandomApplyTransform from ._transform import _RandomApplyTransform
from ._utils import ( from ._utils import (
_check_padding_arg, _check_padding_arg,
......
import functools import functools
import numbers import numbers
from collections import defaultdict from collections import defaultdict
from typing import Any, Dict, Sequence, Type, TypeVar, Union from typing import Any, Dict, Literal, Sequence, Type, TypeVar, Union
from torchvision.prototype import datapoints from torchvision.prototype import datapoints
from torchvision.prototype.datapoints._datapoint import FillType, FillTypeJIT from torchvision.prototype.datapoints._datapoint import FillType, FillTypeJIT
from torchvision.transforms.transforms import _check_sequence_input, _setup_angle, _setup_size # noqa: F401 from torchvision.transforms.transforms import _check_sequence_input, _setup_angle, _setup_size # noqa: F401
from typing_extensions import Literal
def _setup_float_or_seq(arg: Union[float, Sequence[float]], name: str, req_size: int = 2) -> Sequence[float]: def _setup_float_or_seq(arg: Union[float, Sequence[float]], name: str, req_size: int = 2) -> Sequence[float]:
if not isinstance(arg, (float, Sequence)): if not isinstance(arg, (float, Sequence)):
......
import numbers import numbers
from typing import Any, Dict, List, Optional, Sequence, Tuple, Union from typing import Any, Dict, List, Literal, Optional, Sequence, Tuple, Union
import numpy as np import numpy as np
import torch import torch
from PIL import Image, ImageEnhance, ImageOps from PIL import Image, ImageEnhance, ImageOps
from typing_extensions import Literal
try: try:
import accimage import accimage
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment