Skip to content

Fall back to PEP 517 hooks for non-compliant PEP 621 metadata#2662

Merged
charliermarsh merged 2 commits intomainfrom
charlie/hatch
Mar 26, 2024
Merged

Fall back to PEP 517 hooks for non-compliant PEP 621 metadata#2662
charliermarsh merged 2 commits intomainfrom
charlie/hatch

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

If you pass a pyproject.toml that use Hatch's context formatting API, we currently fail because the dependencies aren't valid under PEP 508. This PR makes the static metadata parsing a little more relaxed, so that we appropriately fall back to PEP 517 there.

@charliermarsh charliermarsh added the compatibility Compatibility with a specification or another tool label Mar 26, 2024
@charliermarsh charliermarsh marked this pull request as ready for review March 26, 2024 00:03
@charliermarsh charliermarsh force-pushed the charlie/hatch branch 2 times, most recently from d515e9d to 5ffbbae Compare March 26, 2024 01:36
@charliermarsh charliermarsh force-pushed the charlie/hatch branch 2 times, most recently from 382c81d to d6e881e Compare March 26, 2024 02:13
@charliermarsh charliermarsh enabled auto-merge (squash) March 26, 2024 02:24
@charliermarsh charliermarsh merged commit 39769d8 into main Mar 26, 2024
@charliermarsh charliermarsh deleted the charlie/hatch branch March 26, 2024 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compatibility Compatibility with a specification or another tool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant