Update .gitignore and fix license format in pyproject.toml #1718
+2
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
When executing in the current main branch code, the following error message is encountered.
The problem is in your
pyproject.toml
file with the license configuration. Poetry expects a specific format for the license field, but your current configuration is incorrect.The error message indicates that your license definition doesn't match any of the expected formats for Poetry. Currently, your license definition is:
This format works for PEP 621 (standard Python packaging), but Poetry requires a different format.
Fix
Use a simple string
Make sure you're using the standardized SPDX identifier "Apache-2.0" instead of "Apache 2.0" (note the hyphen).
PR Type
bug_fix, enhancement
Description
Fix Poetry license field to use SPDX identifier
Ensure compatibility with Poetry's expected license format
Changes walkthrough 📝
pyproject.toml
Update license field to valid Poetry format
pyproject.toml