Support `subdirectory` option for `url` dependencies
- [x] I have searched the issues of this repo and believe that this is not a duplicate.
- [x] I have searched the FAQ and general documentation and believe that my question is not already covered.
Feature Request
As with the subdirectory option on git dependencies, it would be nice to be able to install from urls pointing to archive files where the target project is not at the root level. This is convenient for example when installing from the archives GitHub automatically creates for tags, like https://github.com/{owner}/{repo}/archive/refs/tags/{tag}.tar.gz.
It's worth noting that pip does support it, e.g.:
myproject @ https://github.com/{owner}/{repo}/archive/refs/tags/{tag}.tar.gz#subdirectory={myproject_dir}
Although it doesn't seem to be explicitly documented.
As a side note, I guess that support for the subdirectory option could be added for local archive files too, that is when providing a path dependency. But that implies also supporting it when the path is just a directory, which seems quite pointless.
duplicate #5811 please close
Technically, #5811 is a (probably stale) PR. If there is not an issue yet (I haven't searched for one), I think we can keep this one open.
As for local path dependencies, python-poetry/poetry-core#467 is a prerequisite.
Thanks! I think I didn't find it because only searched for issues, not PRs.
Is there anything I can do to help this move forward?
@python-poetry/triage