Skip to content

Conversation

d4l3k
Copy link
Member

@d4l3k d4l3k commented Oct 20, 2022

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

Test plan:

Unit tests on both importlib_metadata 5.0 and 4.1.3

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 20, 2022
@facebook-github-bot
Copy link
Contributor

@d4l3k has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@codecov
Copy link

codecov bot commented Oct 20, 2022

Codecov Report

Merging #623 (60171e4) into main (25bdc52) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #623      +/-   ##
==========================================
- Coverage   94.91%   94.90%   -0.01%     
==========================================
  Files          68       68              
  Lines        4676     4669       -7     
==========================================
- Hits         4438     4431       -7     
  Misses        238      238              
Impacted Files Coverage Δ
torchx/util/entrypoints.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@facebook-github-bot
Copy link
Contributor

@d4l3k has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@d4l3k d4l3k deleted the importlib branch October 28, 2022 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants