Poetry v2

Open
#4,338 2 comments 4 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python, vscode
Domain
tooling

Research direction

Start by locating the schema for Poetry's [tool.poetry] and standard [project] metadata in pyproject.toml, then compare it with the Poetry 2.0 migration guidance. Reproduce the false positive required-property errors using the Even Better TOML VSCode extension. Done means migrated Poetry v2 projects no longer report obsolete required fields while the schema still validates applicable metadata.

Written by the indexing model from the issue text.

Description

Bug
Description of the JSON schema.

Since the release of Poetry v2, the schema of [tool.poetry] has been deprecated in favor of the standard [project] metadata definitions in the pyproject.toml file.

In a project that has been migrated to this new major, I get the following false positive errors (using the Even Better TOML VSCode extensions:

"name" is a required propertyEven Better TOML
"version" is a required propertyEven Better TOML
"description" is a required propertyEven Better TOML
"authors" is a required propertyEven Better TOML

I suppose the scheme needs updating? Thanks

Supporting information.

https://python-poetry.org/blog/announcing-poetry-2.0.0

Are you making a PR for this?

No, someone else must create the PR.

Dominant language
JavaScript
Stars
3.9k
Forks
2.4k
Avg merge
12h 34m
Merged PRs (30d)
134

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SchemaStore/schemastore

All issues in SchemaStore/schemastore

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.