-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
torchx: use importlib_metadata for Python 3.10+ syntax (#623)
Summary: importlib.metadata in 3.12 breaks compatibility with the dict style interface. This switches TorchX to use importlib_metadata for all versions and switches the code to use the 3.10+ select style interface instead of dict. This avoids having to pin importlib_metadata<5 such as in pytorch/tutorials#2091 Pull Request resolved: #623 Test Plan: Unit tests on both importlib_metadata 5.0 and 4.1.3 Reviewed By: priyaramani Differential Revision: D40561638 Pulled By: d4l3k fbshipit-source-id: 95144406c0e3dcbe203ada3ff3236f7384ab2a5c
- Loading branch information
1 parent
f9fa2fe
commit e9cf74e
Showing
5 changed files
with
24 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
pyre-extensions | ||
docstring-parser==0.8.1 | ||
importlib-metadata | ||
pyyaml | ||
docker | ||
filelock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters