We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to achieve something like:
my-package = { extras = ["cpu", "gpu"], version = "^0.1.0", optional = true, source = "my-source"} [tool.poetry.extras] cpu = [ "my-package[cpu]", ] gpu = [ "my-package[gpu]" ]
To clarify, this is not my-package's pyproject.toml, but another package's (let's call it my-downstream-package) pyproject.toml.
pyproject.toml
my-downstream-package
Obviously, this config doesn't work. I'm just trying to illustrate what I want to achieve.
I wonder if it's possible to do with Poetry at all?
Perhaps something like an alias can solve this?
my-package-cpu = { extras = ["cpu"], version = "^0.1.0", optional = true, source = "my-source", name = "my-package" } my-package-gpu = { extras = ["gpu"], version = "^0.1.0", optional = true, source = "my-source", name = "my-package" } [tool.poetry.extras] cpu = [ "my-package-cpu", ] gpu = [ "my-package-gpu" ]
The text was updated successfully, but these errors were encountered:
duplicate #834, #3913, #5733, #6053, ...
Sorry, something went wrong.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
Issue
I'm trying to achieve something like:
To clarify, this is not my-package's
pyproject.toml
, but another package's (let's call itmy-downstream-package
)pyproject.toml
.Obviously, this config doesn't work. I'm just trying to illustrate what I want to achieve.
I wonder if it's possible to do with Poetry at all?
Perhaps something like an alias can solve this?
The text was updated successfully, but these errors were encountered: