Skip to content
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

Misc. changes to support upcoming changes to poetry-core #4604

Merged
merged 4 commits into from
Oct 8, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
provider: fix vcs subdirectory propagation
This change ensures that when complete packages are created dependency
inherits subdirectory from package if supported.
  • Loading branch information
abn committed Oct 8, 2021
commit f5d46f916f57b0ac44219335e1152906a4d4ce69
6 changes: 6 additions & 0 deletions poetry/puzzle/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,12 @@ def search_for_vcs(self, dependency: VCSDependency) -> List[Package]:
dependency._source_reference = package.source_reference
dependency._source_resolved_reference = package.source_resolved_reference

if hasattr(package, "source_subdirectory") and hasattr(
dependency, "_source_subdirectory"
):
# this is supported only for poetry-core >= 1.1.0a7
dependency._source_subdirectory = package.source_subdirectory

self._deferred_cache[dependency] = package

return [package]
Expand Down