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

Align tool.setuptools.dynamic.optional-dependencies with project.optional-dependencies #170

Merged
merged 2 commits into from
May 7, 2024

Conversation

abravalheri
Copy link
Owner

By analysing pypa/setuptools#4341 we can see that currently tool.setuptools.dynamic.optional-dependencies differs from project.optional-dependencies.

They probably should be the same.

PEP 685 also mentions that

The core metadata specification will be updated such that the allowed names for Provides-Extra matches what PEP 508 specifies for names.

So that makes sense for me.

@abravalheri abravalheri marked this pull request as ready for review May 7, 2024 13:48
@abravalheri abravalheri merged commit dfcb47c into main May 7, 2024
29 checks passed
@abravalheri abravalheri deleted the optional-dependencies branch May 7, 2024 15:20
tiran added a commit to tiran/instructlab that referenced this pull request Jul 3, 2024
setuptools < 70.0 have a bug in the schema definition for dynamic
optional dependencies. The issue was fixed in validate-pyproject 0.17
and setuptools 70.0.0.

70.1.0 has another fix that might be relevant for Python 3.10.

This fixes the following error message:

```
ValueError: invalid pyproject.toml config: `tool.setuptools.dynamic.optional-dependencies`.
configuration error: `tool.setuptools.dynamic.optional-dependencies` keys must be named by:

    {format: 'python-identifier'}
```

See: abravalheri/validate-pyproject#170
Signed-off-by: Christian Heimes <cheimes@redhat.com>
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