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

Skip local path dependencies in pyproject.toml ? #134

Open
njlr opened this issue Dec 11, 2024 · 0 comments · May be fixed by #137
Open

Skip local path dependencies in pyproject.toml ? #134

njlr opened this issue Dec 11, 2024 · 0 comments · May be fixed by #137

Comments

@njlr
Copy link

njlr commented Dec 11, 2024

This cannot currently be parsed by lock_repo_model_poetry:

[tool.poetry]
name = "foobar"
version = "0.0.1"
description = "Foo Bar"
authors = ["Engineering <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "3.9.16"
abc = { path = "../abc", develop = false }

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

Perhaps path dependencies should be skipped, rather than throw an error?
The usual Bazel approach is to include these in deps.

The current work-around is to maintain two project files: one for rules_pycross and one for regular Python tooling.

This could be put behind a flag - skip_path_dependencies = True?

@njlr njlr linked a pull request Dec 21, 2024 that will close this issue
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 a pull request may close this issue.

1 participant