-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a Path-like API for filetree navigation #9
Labels
Milestone
Comments
Draft
49 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Wheel/dist-info objects should have a
filetrees
(name WIP) attribute that is a dynamic mapping. Accessing this mapping with the keys"purelib"
,"platlib"
,"dist-info"
,"headers"
,"scripts"
, or"data"
should return aPosixPath
-like object for navigating through the respective subset of the files in the wheel. However — and this is key — it should not be possible to use such a path instance to access or view files outside the given filetree; this includes not being able to access the*.dist-info
or*.data
directories from the purelib tree (assuming root is purelib; otherwise, platlib).filetrees
mapping should accept any name not containing a slash; unknown names are treated as subdirectories of*.data
. If a given directory does not exist (or if the corresponding entry in*.data
is a file instead of a directory),None
is returned.filetrees
should accept a"root"
(orNone
?) key to access purelib for purelib wheels and platlib for platlib wheels.wheel_path
(?) attribute for getting the actual, full path of the underlying file inside the wheel.The text was updated successfully, but these errors were encountered: