Skip to content

Commit ff3b1cc

Browse files
weinbe58claude
andcommitted
fix(build): include LICENSE in sdist and enable verbose PyPI upload
The sdist declared License-File: LICENSE in its metadata but did not include the actual file, causing PyPI to reject the upload with 400 Bad Request. Add license-files to [project] so maturin includes it. Also enable verbose mode on the PyPI publish action for better error diagnostics in future uploads. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c8619a2 commit ff3b1cc

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ jobs:
129129

130130
- name: Publish distribution to PyPI
131131
uses: pypa/gh-action-pypi-publish@release/v1
132+
with:
133+
verbose: true
132134

133135
github-release:
134136
name: Sign and create GitHub Release

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ dependencies = [
2121
"scipy>=1.15.3",
2222
]
2323
requires-python = ">= 3.10"
24+
license-files = ["LICENSE"]
2425

2526
[project.optional-dependencies]
2627
cudaq = [

0 commit comments

Comments
 (0)