-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
poetry install --extras doesn't work #2073
Comments
is there some caching of the pyproject.toml? I had this problem with the extras I originally wanted to install, so I tried with the exact example from the docs before posting this issue Neither worked (as shown above)... Now I have gone back and replaced the docs example with my intended extras again: [tool.poetry.dependencies]
...
ipython = {version=">=7.10.1", optional=true}
ipdb = {version="*", optional=true}
[tool.poetry.extras]
devtools = ["ipython", "ipdb"] and it works now 🤔
After all that I did a I see now what I really wanted was #1644 ... I commonly have three groups of deps: "install", "test" (what's needed to run tests, what pipenv and poetry call dev dependencies) and "devtools" which are stuff like |
what I am loving is no waiting minutes for |
I'm having a similar issue when I go from |
It still has a
and
etc for each but |
|
So it's just an issue with lockfile generation for me |
I've had to manually resort to copying |
Any progress on this bug? It's a blocker. |
Sadly I no longer have access to the old projects I was working with now that I'm with a new company so I'd need to find a way to reproduce it from scratch. |
My django-getpaid project has a
|
This might be a duplicate of #1145? Though that shows the extras being omitted, while this issue shows an error message about the extras being unknown... |
Looks like you can install multiple dependencies in a single set using the following approach:
resulting in the following changes to the pyproject.toml file:
But running You need to add the following entry to the pyproject.toml file (NOTE you have to add the requirements specifier otherwise what gets passed to pip install complains and errors out):
and then |
Poetries extras seem to be broken python-poetry/poetry#2073
+ Implement dict based func-signature in `io.products` * Implement new dictionary based function signature in windeval.io.products which contains `open_products` and `save_products` * Update docs * Fix minor issue with mypy in pre-commit hooks * Add NetCDF to package dependencies * Update `poetry.lock` file + Implement function name convention and signatures * The `diagnostics` module now follows dictionary oriented function signatures * Add pdbpp and ipdb to dev dependencies * Update `poetry.lock` * Fix `mypy.ini` path issue and add related `__init__.py` files in tests * Rename exposed functions according pseudo code example * Add API/wrapper for diagnostics + The windeval app can now be called from the command line with `windeval` + The windeval app now uses https://github.com/windeval/windeval-catalog + Refactor api and add conversions to api * Ignore unused import error in `__init__.py` * Refactor `api.diagnostics` to get functions reusable in `api.conversions` * Reactivate turned-off tests + Convert poetry extras into regular dev deps + Poetries extras seem to be broken python-poetry/poetry#2073
Also remove the extras from pyproject.toml as those seem buggy: python-poetry/poetry#2073 python-poetry/poetry#1145
Thanks - it's listed on |
I highly recommend writing extras syntax like this: [tool.poetry.extras.full]
django-extensions = {version = "^3.1.3" }
drf-yasg = {version = "^1.20.0"}
|
@aprilahijriyan Is that a feature suggestion? because I think that's invalid:
|
@KotlinIsland |
Is this issue still relevant? With the |
Since it seems to work just fine on recent Poetry versions, and we didn't hear back from the author, closing the issue. If you still reproduce on recent versions, feel free to reopen it. |
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. |
-vvv
option).Issue
The docs show a pyproject.toml:
And then an example of installing the "extras":
But pasting the relevant part of this example into my own pyproject.toml (see gist) it doesn't work:
The text was updated successfully, but these errors were encountered: