Skip to content

Commit ea6f139

Browse files
authored
Remove prototype-related code and jobs for 0.13 release (#6078)
* Removed torchvision/prototype * Removed prototype tests * remove install_prototype_dependencies from CircleCI * Remove prototype test GA job * Remove prototype related stuff in mypy.ini * remove prototype-related stuff in setup.py
1 parent 69ce452 commit ea6f139

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+1
-15086
lines changed

.circleci/config.yml

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.circleci/config.yml.in

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,6 @@ commands:
152152
args: --no-build-isolation <<# parameters.editable >> --editable <</ parameters.editable >> .
153153
descr: Install torchvision <<# parameters.editable >> in editable mode <</ parameters.editable >>
154154

155-
install_prototype_dependencies:
156-
steps:
157-
- pip_install:
158-
args: iopath
159-
descr: Install third-party dependencies
160-
- pip_install:
161-
args: --pre torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu
162-
descr: Install torchdata from nightly releases
163-
164155
# Most of the test suite is handled by the `unittest` jobs, with completely different workflow and setup.
165156
# This command can be used if only a selection of tests need to be run, for ad-hoc files.
166157
run_tests_selective:
@@ -325,7 +316,6 @@ jobs:
325316
- checkout
326317
- install_torchvision:
327318
editable: true
328-
- install_prototype_dependencies
329319
- pip_install:
330320
args: mypy
331321
descr: Install Python type check utilities

.github/workflows/prototype-tests.yml

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

mypy.ini

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -6,52 +6,6 @@ pretty = True
66
allow_redefinition = True
77
warn_redundant_casts = True
88

9-
[mypy-torchvision.prototype.features.*]
10-
11-
; untyped definitions and calls
12-
disallow_untyped_defs = True
13-
14-
; None and Optional handling
15-
no_implicit_optional = True
16-
17-
; warnings
18-
warn_unused_ignores = True
19-
warn_return_any = True
20-
21-
; miscellaneous strictness flags
22-
allow_redefinition = True
23-
24-
[mypy-torchvision.prototype.transforms.*]
25-
26-
; untyped definitions and calls
27-
disallow_untyped_defs = True
28-
29-
; None and Optional handling
30-
no_implicit_optional = True
31-
32-
; warnings
33-
warn_unused_ignores = True
34-
warn_return_any = True
35-
36-
; miscellaneous strictness flags
37-
allow_redefinition = True
38-
39-
[mypy-torchvision.prototype.datasets.*]
40-
41-
; untyped definitions and calls
42-
disallow_untyped_defs = True
43-
44-
; None and Optional handling
45-
no_implicit_optional = True
46-
47-
; warnings
48-
warn_unused_ignores = True
49-
warn_return_any = True
50-
warn_unreachable = True
51-
52-
; miscellaneous strictness flags
53-
allow_redefinition = True
54-
559
[mypy-torchvision.io.image.*]
5610

5711
ignore_errors = True
@@ -148,10 +102,6 @@ ignore_missing_imports = True
148102

149103
ignore_missing_imports = True
150104

151-
[mypy-torchdata.*]
152-
153-
ignore_missing_imports = True
154-
155105
[mypy-h5py.*]
156106

157107
ignore_missing_imports = True

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ def run(self):
523523
license="BSD",
524524
# Package info
525525
packages=find_packages(exclude=("test",)),
526-
package_data={package_name: ["*.dll", "*.dylib", "*.so", "prototype/datasets/_builtin/*.categories"]},
526+
package_data={package_name: ["*.dll", "*.dylib", "*.so"]},
527527
zip_safe=False,
528528
install_requires=requirements,
529529
extras_require={

0 commit comments

Comments
 (0)