-
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 add does not add package to pyproject.toml #7230
Comments
I think I have found the culprit. If I move the:
Section to the very bottom of the pyproject.toml file the issue goes away. Is there some known conflict here? |
Looks like another issue with OutOfOrderTableProxy and Tomlkit. Probably a change in Tomlkit we didn't have good enough test coverage to catch. |
Related: python-poetry/tomlkit#196 |
This seems to be fixed in the meantime. |
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) and have included the output below.Issue
My pyproject.toml file will not update the contents of the
[tool.poetry.dependencies]
section after usingpoetry add pyemvue
. When I run the command I see❯ poetry add pyemvue Using version ^0.16.1 for pyemvue Updating dependencies Resolving dependencies... (0.4s) Writing lock file Package operations: 16 installs, 0 updates, 0 removals ...
The package + dependencies are installed and I can use them in the virtual environment. However the pyproject.toml file is not updated. If I run
poetry install
, I get an error that the lock file is out of sync. If I runpoetry update
the package and its dependencies are uninstalled.I have tried:
There's no issue if I manually add the package to the pyproject.toml myself. Any thoughts why the file is not being updated via the
add
command?The text was updated successfully, but these errors were encountered: