Feature or enhancement
This issue covers the final tasks needed to make the pathlib ABCs worthy of using in zipfile.Path (i.e. zipp.Path).
Tasks
- Rename PurePathBase to JoinablePath, and split PathBase into ReadablePath and WritablePath
- Make WritablePath a sibling (not subclass) of ReadablePath
- Add ReadablePath.info
- Subclass abc.ABC from JoinablePath, and make parser abstract
- Make type-checking more consistent
- Move metadata reading into ReadablePath.info; remove ReadablePath._copy_reader
- Move metadata writing into WritablePath._write_info(); remove WritablePath._copy_writer
- Merge pathlib._abc into pathlib.types
- Tests: replace the Dummy* classes with simple zipfile.Path-like implementation
- Tests: add tests for WritablePath
- Tests: parametrize copy() tests
- Finalise copy() implementation
- Add type annotations?
- Sync code to pathlib-abc PyPI package
- Update pathlib-abc documentation
- Publish new version of pathlib-abc
- Merge PR to jaraco/zipp
Discussion: https://discuss.python.org/t/make-pathlib-extensible/3428
Linked PRs
Reactions are currently unavailable
Feature or enhancement
This issue covers the final tasks needed to make the pathlib ABCs worthy of using in zipfile.Path (i.e. zipp.Path).
Tasks
Discussion: https://discuss.python.org/t/make-pathlib-extensible/3428
Linked PRs