forked from python/mypy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for PEP-610 editable packages (python#12313)
Discover paths to editable packages by looking at direct_url.json files -- installed by pip when the -e/--editable flag is used -- and add to the package search paths.
- Loading branch information
Brandon Carpenter
committed
Mar 8, 2022
1 parent
18c32da
commit a79e764
Showing
8 changed files
with
60 additions
and
2 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
Empty file.
Empty file.
Empty file.
6 changes: 6 additions & 0 deletions
6
test-data/packages/modulefinder-site-packages/editable_pkg_typed-0.dist-info/direct_url.json
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"url": "file://test-data/packages/editable_pkg_typed-src", | ||
"dir_info": { | ||
"editable": true | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
...data/packages/modulefinder-site-packages/editable_pkg_untyped-0.dist-info/direct_url.json
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"url": "file://test-data/packages/editable_pkg_untyped-src", | ||
"dir_info": { | ||
"editable": true | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
test-data/packages/modulefinder-site-packages/foo-0.dist-info/direct_url.json
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"comment": "This file is in place only to ensure editable features don't break on non-editable packages.", | ||
"url": "https://packages.example.com/foo/0/foo-0.tar.gz", | ||
"archive_info": { | ||
"hash": "sha256=2dc6b5a470a1bde68946f263f1af1515a2574a150a30d6ce02c6ff742fcc0db8" | ||
} | ||
} |