Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update pre-commit hooks (validate-pyproject v0.23)#2191

Merged
glensc merged 2 commits into
Taxel:mainfrom
glensc:pep639
Feb 21, 2025
Merged

Update pre-commit hooks (validate-pyproject v0.23)#2191
glensc merged 2 commits into
Taxel:mainfrom
glensc:pep639

Conversation

@glensc

@glensc glensc commented Feb 21, 2025

Copy link
Copy Markdown
Collaborator

@glensc glensc self-assigned this Feb 21, 2025
@glensc glensc merged commit d8f731f into Taxel:main Feb 21, 2025
@glensc glensc deleted the pep639 branch February 21, 2025 03:51
@glensc

glensc commented Feb 27, 2025

Copy link
Copy Markdown
Collaborator Author

It actually failed:

    raise ValueError(f"{error}\n{summary}") from None
ValueError: invalid pyproject.toml config: `project.license`.
configuration error: `project.license` must be valid exactly by one definition (2 matches found):

    - keys:
        'file': {type: string}
      required: ['file']
    - keys:
        'text': {type: string}
      required: ['text']

@glensc

glensc commented Feb 27, 2025

Copy link
Copy Markdown
Collaborator Author

@hugovk: Can you help me to figure out what went wrong?

@glensc

glensc commented Feb 27, 2025

Copy link
Copy Markdown
Collaborator Author

Ah,

17 commits to unstable/v1 since this release

So it's not included in @release/v1... ?

@glensc

glensc commented Feb 27, 2025

Copy link
Copy Markdown
Collaborator Author

@hugovk

hugovk commented Feb 28, 2025

Copy link
Copy Markdown

You're using setuptools as the build backend:

build-backend = "setuptools.build_meta"

setuptools doesn't yet support the new PEP 639 licence metadata, but they're working on it right now:

pypa/setuptools#4829

I'm using hatchling:

https://github.com/hugovk/humanize/blob/6427174e3300a9bbb59558ea47a6fc7b03cb3015/pyproject.toml#L2

glensc added a commit to glensc/PlexTraktSync that referenced this pull request Mar 3, 2025
@glensc

glensc commented Mar 3, 2025

Copy link
Copy Markdown
Collaborator Author

Reverted until setuptools is updated or switching to hatchling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants