Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
78ffda7e
Unverified
Commit
78ffda7e
authored
Jan 27, 2023
by
Philip Meier
Committed by
GitHub
Jan 27, 2023
Browse files
drop support for Python 3.7 (#7110)
Co-authored-by:
Nikita Shulga
<
nshulga@fb.com
>
parent
71073cb5
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
73 additions
and
336 deletions
+73
-336
.circleci/config.yml
.circleci/config.yml
+39
-293
.circleci/config.yml.in
.circleci/config.yml.in
+12
-12
.circleci/regenerate.py
.circleci/regenerate.py
+8
-8
.circleci/unittest/ios/scripts/binary_ios_build.sh
.circleci/unittest/ios/scripts/binary_ios_build.sh
+1
-1
.github/workflows/prototype-tests-linux-gpu.yml
.github/workflows/prototype-tests-linux-gpu.yml
+0
-1
.github/workflows/test-linux-cpu.yml
.github/workflows/test-linux-cpu.yml
+1
-1
.github/workflows/tests-schedule.yml
.github/workflows/tests-schedule.yml
+1
-1
README.rst
README.rst
+1
-1
packaging/pkg_helpers.bash
packaging/pkg_helpers.bash
+1
-2
packaging/torchvision/conda_build_config.yaml
packaging/torchvision/conda_build_config.yaml
+1
-1
packaging/vs2017/conda_build_config.yaml
packaging/vs2017/conda_build_config.yaml
+1
-1
packaging/vs2019/conda_build_config.yaml
packaging/vs2019/conda_build_config.yaml
+1
-1
pyproject.toml
pyproject.toml
+1
-1
setup.py
setup.py
+1
-2
torchvision/prototype/datasets/utils/_resource.py
torchvision/prototype/datasets/utils/_resource.py
+1
-2
torchvision/prototype/transforms/_geometry.py
torchvision/prototype/transforms/_geometry.py
+1
-3
torchvision/prototype/transforms/_utils.py
torchvision/prototype/transforms/_utils.py
+1
-3
torchvision/transforms/functional_pil.py
torchvision/transforms/functional_pil.py
+1
-2
No files found.
.circleci/config.yml
View file @
78ffda7e
...
...
@@ -2,8 +2,8 @@ version: 2.1
# How to test the Linux jobs:
# - 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
# - Replace binary_linux_wheel_py3.
7
with the name of the job you want to test.
# - 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.
8
with the name of the job you want to test.
# Job names are 'name:' key.
executors
:
...
...
@@ -201,7 +201,7 @@ binary_common: &binary_common
default
:
"
"
# Don't edit these
python_version
:
description
:
"
Python
version
to
build
against
(e.g.,
3.
7
)"
description
:
"
Python
version
to
build
against
(e.g.,
3.
8
)"
type
:
string
cu_version
:
description
:
"
CUDA
version
to
build
against,
in
CU
format
(e.g.,
cpu
or
cu100)"
...
...
@@ -258,7 +258,7 @@ smoke_test_common: &smoke_test_common
jobs
:
circleci_consistency
:
docker
:
-
image
:
cimg/python:3.
7
-
image
:
cimg/python:3.
8
steps
:
-
checkout
-
pip_install
:
...
...
@@ -271,7 +271,7 @@ jobs:
lint_python_and_config
:
docker
:
-
image
:
cimg/python:3.
7
-
image
:
cimg/python:3.
8
steps
:
-
checkout
-
pip_install
:
...
...
@@ -290,7 +290,7 @@ jobs:
lint_c
:
docker
:
-
image
:
cimg/python:3.
7
-
image
:
cimg/python:3.
8
steps
:
-
apt_install
:
args
:
libtinfo5
...
...
@@ -312,7 +312,7 @@ jobs:
type_check_python
:
docker
:
-
image
:
cimg/python:3.
7
-
image
:
cimg/python:3.
8
steps
:
-
checkout
-
install_torchvision
:
...
...
@@ -326,7 +326,7 @@ jobs:
unittest_torchhub
:
docker
:
-
image
:
cimg/python:3.
7
-
image
:
cimg/python:3.
8
steps
:
-
checkout
-
install_torchvision
...
...
@@ -335,7 +335,7 @@ jobs:
unittest_onnx
:
docker
:
-
image
:
cimg/python:3.
7
-
image
:
cimg/python:3.
8
steps
:
-
checkout
-
install_torchvision
...
...
@@ -347,7 +347,7 @@ jobs:
unittest_extended
:
docker
:
-
image
:
cimg/python:3.
7
-
image
:
cimg/python:3.
8
resource_class
:
xlarge
steps
:
-
checkout
...
...
@@ -594,7 +594,7 @@ jobs:
description
:
"
What
whl
subfolder
to
upload
to,
e.g.,
blank
or
cu100/
(trailing
slash
is
important)"
type
:
string
docker
:
-
image
:
cimg/python:3.
7
-
image
:
cimg/python:3.
8
steps
:
-
attach_workspace
:
at
:
~/workspace
...
...
@@ -1017,7 +1017,7 @@ jobs:
build_docs
:
<<
:
*binary_common
docker
:
-
image
:
cimg/python:3.
7
-
image
:
cimg/python:3.
8
resource_class
:
2xlarge+
steps
:
-
attach_workspace
:
...
...
@@ -1100,73 +1100,37 @@ workflows:
only
:
/.*/
tags
:
only
:
/v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name
:
binary_linux_wheel_py3.
7
_cpu
python_version
:
'
3.
7
'
name
:
binary_linux_wheel_py3.
8
_cpu
python_version
:
'
3.
8
'
wheel_docker_image
:
pytorch/manylinux-cpu
-
binary_linux_wheel
:
conda_docker_image
:
pytorch/conda-builder:cuda116
cu_version
:
cu116
name
:
binary_linux_wheel_py3.
7
_cu116
python_version
:
'
3.
7
'
name
:
binary_linux_wheel_py3.
8
_cu116
python_version
:
'
3.
8
'
wheel_docker_image
:
pytorch/manylinux-cuda116
-
binary_linux_wheel
:
conda_docker_image
:
pytorch/conda-builder:cuda117
cu_version
:
cu117
name
:
binary_linux_wheel_py3.
7
_cu117
python_version
:
'
3.
7
'
name
:
binary_linux_wheel_py3.
8
_cu117
python_version
:
'
3.
8
'
wheel_docker_image
:
pytorch/manylinux-cuda117
-
binary_linux_wheel
:
conda_docker_image
:
pytorch/conda-builder:cuda118
cu_version
:
cu118
name
:
binary_linux_wheel_py3.
7
_cu118
python_version
:
'
3.
7
'
name
:
binary_linux_wheel_py3.
8
_cu118
python_version
:
'
3.
8
'
wheel_docker_image
:
pytorch/manylinux-cuda118
-
binary_linux_wheel
:
cu_version
:
rocm5.2
name
:
binary_linux_wheel_py3.
7
_rocm5.2
python_version
:
'
3.
7
'
name
:
binary_linux_wheel_py3.
8
_rocm5.2
python_version
:
'
3.
8
'
wheel_docker_image
:
pytorch/manylinux-rocm:5.2
-
binary_linux_wheel
:
cu_version
:
rocm5.3
name
:
binary_linux_wheel_py3.
7
_rocm5.3
python_version
:
'
3.
7
'
name
:
binary_linux_wheel_py3.
8
_rocm5.3
python_version
:
'
3.
8
'
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
:
cu_version
:
cpu
filters
:
...
...
@@ -1265,42 +1229,6 @@ workflows:
cu_version
:
cu118
name
:
binary_win_wheel_py3.10_cu118
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
:
cu_version
:
cpu
filters
:
...
...
@@ -1407,9 +1335,9 @@ workflows:
tags
:
only
:
/v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name
:
build_docs
python_version
:
'
3.
7
'
python_version
:
'
3.
8
'
requires
:
-
binary_linux_wheel_py3.
7
_cpu
-
binary_linux_wheel_py3.
8
_cpu
-
upload_docs
:
context
:
org-member
filters
:
...
...
@@ -1419,7 +1347,7 @@ workflows:
tags
:
only
:
/v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name
:
upload_docs
python_version
:
'
3.
7
'
python_version
:
'
3.
8
'
requires
:
-
build_docs
-
binary_ios_build
:
...
...
@@ -1441,15 +1369,6 @@ workflows:
-
unittest_torchhub
-
unittest_onnx
-
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
:
cu_version
:
cu116
name
:
unittest_linux_gpu_py3.8
...
...
@@ -1472,10 +1391,6 @@ workflows:
-
nightly
name
:
unittest_linux_gpu_py3.10
python_version
:
'
3.10'
-
unittest_windows_cpu
:
cu_version
:
cpu
name
:
unittest_windows_cpu_py3.7
python_version
:
'
3.7'
-
unittest_windows_cpu
:
cu_version
:
cpu
name
:
unittest_windows_cpu_py3.8
...
...
@@ -1488,15 +1403,6 @@ workflows:
cu_version
:
cpu
name
:
unittest_windows_cpu_py3.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
:
cu_version
:
cu116
name
:
unittest_windows_gpu_py3.8
...
...
@@ -1519,10 +1425,6 @@ workflows:
-
nightly
name
:
unittest_windows_gpu_py3.10
python_version
:
'
3.10'
-
unittest_macos_cpu
:
cu_version
:
cpu
name
:
unittest_macos_cpu_py3.7
python_version
:
'
3.7'
-
unittest_macos_cpu
:
cu_version
:
cpu
name
:
unittest_macos_cpu_py3.8
...
...
@@ -1606,8 +1508,8 @@ workflows:
only
:
nightly
tags
:
only
:
/v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name
:
nightly_binary_linux_wheel_py3.
7
_cpu
python_version
:
'
3.
7
'
name
:
nightly_binary_linux_wheel_py3.
8
_cpu
python_version
:
'
3.
8
'
wheel_docker_image
:
pytorch/manylinux-cpu
-
binary_linux_wheel
:
conda_docker_image
:
pytorch/conda-builder:cuda116
...
...
@@ -1617,8 +1519,8 @@ workflows:
only
:
nightly
tags
:
only
:
/v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name
:
nightly_binary_linux_wheel_py3.
7
_cu116
python_version
:
'
3.
7
'
name
:
nightly_binary_linux_wheel_py3.
8
_cu116
python_version
:
'
3.
8
'
wheel_docker_image
:
pytorch/manylinux-cuda116
-
binary_linux_wheel
:
conda_docker_image
:
pytorch/conda-builder:cuda117
...
...
@@ -1628,8 +1530,8 @@ workflows:
only
:
nightly
tags
:
only
:
/v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name
:
nightly_binary_linux_wheel_py3.
7
_cu117
python_version
:
'
3.
7
'
name
:
nightly_binary_linux_wheel_py3.
8
_cu117
python_version
:
'
3.
8
'
wheel_docker_image
:
pytorch/manylinux-cuda117
-
binary_linux_wheel
:
conda_docker_image
:
pytorch/conda-builder:cuda118
...
...
@@ -1639,8 +1541,8 @@ workflows:
only
:
nightly
tags
:
only
:
/v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name
:
nightly_binary_linux_wheel_py3.
7
_cu118
python_version
:
'
3.
7
'
name
:
nightly_binary_linux_wheel_py3.
8
_cu118
python_version
:
'
3.
8
'
wheel_docker_image
:
pytorch/manylinux-cuda118
-
binary_linux_wheel
:
cu_version
:
rocm5.2
...
...
@@ -1649,8 +1551,8 @@ workflows:
only
:
nightly
tags
:
only
:
/v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name
:
nightly_binary_linux_wheel_py3.
7
_rocm5.2
python_version
:
'
3.
7
'
name
:
nightly_binary_linux_wheel_py3.
8
_rocm5.2
python_version
:
'
3.
8
'
wheel_docker_image
:
pytorch/manylinux-rocm:5.2
-
binary_linux_wheel
:
cu_version
:
rocm5.3
...
...
@@ -1659,89 +1561,9 @@ workflows:
only
:
nightly
tags
:
only
:
/v[0-9]+(\.[0-9]+)*-rc[0-9]+/
name
:
nightly_binary_linux_wheel_py3.
7
_rocm5.3
python_version
:
'
3.
7
'
name
:
nightly_binary_linux_wheel_py3.
8
_rocm5.3
python_version
:
'
3.
8
'
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
:
cu_version
:
cpu
filters
:
...
...
@@ -1982,82 +1804,6 @@ workflows:
requires
:
-
nightly_binary_win_wheel_py3.10_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
:
cu_version
:
cpu
filters
:
...
...
.circleci/config.yml.in
View file @
78ffda7e
...
...
@@ -2,8 +2,8 @@ version: 2.1
# How to test the Linux jobs:
# - 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
# - Replace binary_linux_wheel_py3.
7
with the name of the job you want to test.
# - 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.
8
with the name of the job you want to test.
# Job names are 'name:' key.
executors:
...
...
@@ -201,7 +201,7 @@ binary_common: &binary_common
default: ""
# Don't edit these
python_version:
description: "Python version to build against (e.g., 3.
7
)"
description: "Python version to build against (e.g., 3.
8
)"
type: string
cu_version:
description: "CUDA version to build against, in CU format (e.g., cpu or cu100)"
...
...
@@ -258,7 +258,7 @@ smoke_test_common: &smoke_test_common
jobs:
circleci_consistency:
docker:
- image: cimg/python:3.
7
- image: cimg/python:3.
8
steps:
- checkout
- pip_install:
...
...
@@ -271,7 +271,7 @@ jobs:
lint_python_and_config:
docker:
- image: cimg/python:3.
7
- image: cimg/python:3.
8
steps:
- checkout
- pip_install:
...
...
@@ -290,7 +290,7 @@ jobs:
lint_c:
docker:
- image: cimg/python:3.
7
- image: cimg/python:3.
8
steps:
- apt_install:
args: libtinfo5
...
...
@@ -312,7 +312,7 @@ jobs:
type_check_python:
docker:
- image: cimg/python:3.
7
- image: cimg/python:3.
8
steps:
- checkout
- install_torchvision:
...
...
@@ -326,7 +326,7 @@ jobs:
unittest_torchhub:
docker:
- image: cimg/python:3.
7
- image: cimg/python:3.
8
steps:
- checkout
- install_torchvision
...
...
@@ -335,7 +335,7 @@ jobs:
unittest_onnx:
docker:
- image: cimg/python:3.
7
- image: cimg/python:3.
8
steps:
- checkout
- install_torchvision
...
...
@@ -347,7 +347,7 @@ jobs:
unittest_extended:
docker:
- image: cimg/python:3.
7
- image: cimg/python:3.
8
resource_class: xlarge
steps:
- checkout
...
...
@@ -594,7 +594,7 @@ jobs:
description: "What whl subfolder to upload to, e.g., blank or cu100/ (trailing slash is important)"
type: string
docker:
- image: cimg/python:3.
7
- image: cimg/python:3.
8
steps:
- attach_workspace:
at: ~/workspace
...
...
@@ -1017,7 +1017,7 @@ jobs:
build_docs:
<<: *binary_common
docker:
- image: cimg/python:3.
7
- image: cimg/python:3.
8
resource_class: 2xlarge+
steps:
- attach_workspace:
...
...
.circleci/regenerate.py
View file @
78ffda7e
...
...
@@ -21,7 +21,7 @@ import yaml
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]+/"
...
...
@@ -55,16 +55,16 @@ def build_workflows(prefix="", filter_branch=None, upload=False, indentation=6,
):
fb
=
"main"
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
fb
=
"/.*/"
# Disable all Linux Wheels Workflows from CircleCI
# 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.
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
# Disable all Macos Wheels Workflows from CircleCI.
...
...
@@ -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.
if
os_type
==
"linux"
and
btype
==
"wheel"
:
upload
=
False
...
...
@@ -116,9 +116,9 @@ def workflow_pair(btype, os_type, python_version, cu_version, unicode, prefix=""
def
build_doc_job
(
filter_branch
):
job
=
{
"name"
:
"build_docs"
,
"python_version"
:
"3.
7
"
,
"python_version"
:
"3.
8
"
,
"requires"
:
[
"binary_linux_wheel_py3.
7
_cpu"
,
"binary_linux_wheel_py3.
8
_cpu"
,
],
}
...
...
@@ -131,7 +131,7 @@ def upload_doc_job(filter_branch):
job
=
{
"name"
:
"upload_docs"
,
"context"
:
"org-member"
,
"python_version"
:
"3.
7
"
,
"python_version"
:
"3.
8
"
,
"requires"
:
[
"build_docs"
,
],
...
...
.circleci/unittest/ios/scripts/binary_ios_build.sh
View file @
78ffda7e
...
...
@@ -16,7 +16,7 @@ export PATH="~/anaconda/bin:${PATH}"
source
~/anaconda/bin/activate
# 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
export
CMAKE_PREFIX_PATH
=
${
CONDA_PREFIX
:-
"
$(
dirname
$(
which conda
))
/../"
}
...
...
.github/workflows/prototype-tests-linux-gpu.yml
View file @
78ffda7e
...
...
@@ -8,7 +8,6 @@ jobs:
strategy
:
matrix
:
python-version
:
-
"
3.7"
-
"
3.8"
-
"
3.9"
-
"
3.10"
...
...
.github/workflows/test-linux-cpu.yml
View file @
78ffda7e
...
...
@@ -16,7 +16,7 @@ jobs:
tests
:
strategy
:
matrix
:
python_version
:
[
"
3.7"
,
"
3.8"
,
"
3.9"
,
"
3.10"
]
python_version
:
[
"
3.8"
,
"
3.9"
,
"
3.10"
]
fail-fast
:
false
uses
:
pytorch/test-infra/.github/workflows/linux_job.yml@main
with
:
...
...
.github/workflows/tests-schedule.yml
View file @
78ffda7e
...
...
@@ -18,7 +18,7 @@ jobs:
-
name
:
Set up python
uses
:
actions/setup-python@v2
with
:
python-version
:
3.
7
python-version
:
3.
8
-
name
:
Upgrade system packages
run
:
python -m pip install --upgrade pip setuptools wheel
...
...
README.rst
View file @
78ffda7e
...
...
@@ -21,7 +21,7 @@ supported Python versions.
+--------------------------+--------------------------+---------------------------------+
| ``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`` |
+--------------------------+--------------------------+---------------------------------+
...
...
packaging/pkg_helpers.bash
View file @
78ffda7e
...
...
@@ -150,7 +150,7 @@ retry () {
}
# Inputs:
# PYTHON_VERSION (
3.7,
3.8, 3.9)
# PYTHON_VERSION (3.8, 3.9
, 3.10
)
# UNICODE_ABI (bool)
#
# Outputs:
...
...
@@ -169,7 +169,6 @@ setup_wheel_python() {
# Install native CentOS libJPEG, freetype and GnuTLS
yum
install
-y
libjpeg-turbo-devel freetype gnutls
case
"
$PYTHON_VERSION
"
in
3.7
)
python_abi
=
cp37-cp37m
;;
3.8
)
python_abi
=
cp38-cp38
;;
3.9
)
python_abi
=
cp39-cp39
;;
3.10
)
python_abi
=
cp310-cp310
;;
...
...
packaging/torchvision/conda_build_config.yaml
View file @
78ffda7e
...
...
@@ -7,7 +7,7 @@ c_compiler:
cxx_compiler
:
-
vs2017
# [win]
python
:
-
3.
7
-
3.
8
# This differs from target_platform in that it determines what subdir the compiler
# 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
...
...
packaging/vs2017/conda_build_config.yaml
View file @
78ffda7e
...
...
@@ -5,7 +5,7 @@ c_compiler:
cxx_compiler
:
-
vs2017
# [win]
python
:
-
3.
7
-
3.
8
# This differs from target_platform in that it determines what subdir the compiler
# 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
...
...
packaging/vs2019/conda_build_config.yaml
View file @
78ffda7e
...
...
@@ -5,7 +5,7 @@ c_compiler:
cxx_compiler
:
-
vs2019
# [win]
python
:
-
3.
7
-
3.
8
# This differs from target_platform in that it determines what subdir the compiler
# 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
...
...
pyproject.toml
View file @
78ffda7e
...
...
@@ -5,7 +5,7 @@ first_party_detection = false
[tool.black]
line-length
=
120
target-version
=
["py3
7
"]
target-version
=
["py3
8
"]
[tool.ufmt]
...
...
setup.py
View file @
78ffda7e
...
...
@@ -58,7 +58,6 @@ if os.getenv("PYTORCH_VERSION"):
pytorch_dep
+=
"=="
+
os
.
getenv
(
"PYTORCH_VERSION"
)
requirements
=
[
"typing_extensions"
,
"numpy"
,
"requests"
,
pytorch_dep
,
...
...
@@ -546,7 +545,7 @@ if __name__ == "__main__":
"scipy"
:
[
"scipy"
],
},
ext_modules
=
get_extensions
(),
python_requires
=
">=3.
7.2
"
,
python_requires
=
">=3.
8
"
,
cmdclass
=
{
"build_ext"
:
BuildExtension
.
with_options
(
no_python_abi_suffix
=
True
),
"clean"
:
clean
,
...
...
torchvision/prototype/datasets/utils/_resource.py
View file @
78ffda7e
...
...
@@ -2,7 +2,7 @@ import abc
import
hashlib
import
itertools
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
torchdata.datapipes.iter
import
(
...
...
@@ -23,7 +23,6 @@ from torchvision.datasets.utils import (
download_url
,
extract_archive
,
)
from
typing_extensions
import
Literal
class
OnlineResource
(
abc
.
ABC
):
...
...
torchvision/prototype/transforms/_geometry.py
View file @
78ffda7e
import
math
import
numbers
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
torch
...
...
@@ -11,8 +11,6 @@ from torchvision.prototype import datapoints
from
torchvision.prototype.transforms
import
functional
as
F
,
InterpolationMode
,
Transform
from
torchvision.transforms.functional
import
_get_perspective_coeffs
from
typing_extensions
import
Literal
from
._transform
import
_RandomApplyTransform
from
._utils
import
(
_check_padding_arg
,
...
...
torchvision/prototype/transforms/_utils.py
View file @
78ffda7e
import
functools
import
numbers
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.datapoints._datapoint
import
FillType
,
FillTypeJIT
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
]:
if
not
isinstance
(
arg
,
(
float
,
Sequence
)):
...
...
torchvision/transforms/functional_pil.py
View file @
78ffda7e
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
torch
from
PIL
import
Image
,
ImageEnhance
,
ImageOps
from
typing_extensions
import
Literal
try
:
import
accimage
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment