Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

Fix Alpha release metadata validation

jinzhenjc79c1ee34324
diff --git a/.github/workflows/alpha-release.yml b/.github/workflows/alpha-release.yml
index 96f2cbc7..8aad033a 100644
--- a/.github/workflows/alpha-release.yml
+++ b/.github/workflows/alpha-release.yml
@@ -102,6 +102,11 @@ jobs:
name: pypi
url: https://pypi.org/project/mineru/${{ needs.build.outputs.version }}/
steps:
+ - name: Set up Python
+ uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
+ with:
+ python-version: "3.12"
+
- name: Download validated wheel
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
with:
@@ -113,7 +118,8 @@ jobs:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
- python -m pip install --upgrade twine
+ python -m pip install --upgrade twine "packaging>=24.2"
+ python -m twine check --strict dist/*
python -m twine upload dist/*
github-release:
diff --git a/docs/plans/2026-07-10-mineru-alpha-release-design.md b/docs/plans/2026-07-10-mineru-alpha-release-design.md
index 194a2f3c..1f86fecd 100644
--- a/docs/plans/2026-07-10-mineru-alpha-release-design.md
+++ b/docs/plans/2026-07-10-mineru-alpha-release-design.md
@@ -26,7 +26,7 @@ The build job:
5. installs the wheel without dependencies in a clean virtual environment and verifies its installed distribution version;
6. uploads the validated wheel as a workflow artifact.
-The publishing job downloads exactly that artifact and publishes it with Twine, using the same PyPI API token authentication as the stable release workflow. The token is read from the `PYPI_TOKEN` GitHub secret through Twine's `TWINE_PASSWORD` environment variable. The job remains associated with the protected `pypi` GitHub environment.
+The publishing job downloads exactly that artifact and publishes it with Twine, using the same PyPI API token authentication as the stable release workflow. It uses Python 3.12 and explicitly installs `packaging>=24.2` so Twine can validate the PEP 639 license fields emitted in Core Metadata 2.4. The job runs the strict metadata check again before upload. The token is read from the `PYPI_TOKEN` GitHub secret through Twine's `TWINE_PASSWORD` environment variable. The job remains associated with the protected `pypi` GitHub environment.
The final job creates a GitHub pre-release and attaches the same wheel. It runs only after the PyPI publishing job succeeds.