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

pdm deletes pyproject.toml keys it's not authorized to #2666

Closed
sigma67 opened this issue Mar 5, 2024 · 1 comment · Fixed by j178/pdm#1
Closed

pdm deletes pyproject.toml keys it's not authorized to #2666

sigma67 opened this issue Mar 5, 2024 · 1 comment · Fixed by j178/pdm#1
Labels
🐛 bug Something isn't working

Comments

@sigma67
Copy link
Contributor

sigma67 commented Mar 5, 2024

  • [x ] I have searched the issue tracker and believe that this is not a duplicate.

Make sure you run commands with -v flag before pasting the output.

Steps to reproduce

Create a project using for example setuptools-scm, which requires you to add the following empty section

[tool.setuptools_scm]

but also works with other empty sections like [project.optional-dependencies].

Then run any pdm command that writes to pyproject.toml (pdm add xx, pdm remove xx).

Actual behavior

The empty section key will be removed.

Expected behavior

pdm should not remove keys that don't concern the command

Environment Information

latest pdm 2.12.4

@sigma67 sigma67 added the 🐛 bug Something isn't working label Mar 5, 2024
@sigma67
Copy link
Contributor Author

sigma67 commented Mar 6, 2024

Thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant