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

#17 add pathdep remover #19

Merged
merged 7 commits into from
Mar 13, 2024
Merged

#17 add pathdep remover #19

merged 7 commits into from
Mar 13, 2024

Conversation

JeffreyRoss
Copy link
Collaborator

Poetry path-based dependencies defined under the monorepo dependency group will fail to be resolved upon export on any machine that is not the one on which the original export was performed.

In order to prevent such dependency resolving failures, it is needed to extend poetry's export command such that any path-based dependencies are not included in the resultant requirements.txt.

README.md Outdated Show resolved Hide resolved
def handle(self) -> int:
path_dependency_remover = PathDependencyRemover()
path_dependency_remover.update_dependency_group(
self.io, self.poetry.pyproject, self.poetry.package.dependency_group("main")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

S (Substantive): this is probably fine for this version, but we likely would need to be able to handle when export is called with other groups with the --with <groups> option too?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious how the build/publish rewrite was working with the monorepo group, given it uses a very similar implementation.

@JeffreyRoss JeffreyRoss merged commit 534db6a into dev Mar 13, 2024
1 check passed
@JeffreyRoss JeffreyRoss deleted the 17-add-pathdep-remover branch March 13, 2024 19:06
@JeffreyRoss JeffreyRoss restored the 17-add-pathdep-remover branch March 14, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants