mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2026-08-30 17:23:03 +08:00
09e8700fe6
* ci,docs: align PaddleX install branch and document py3.8 extras boundary - CI: derive the PaddleX install branch from the paddlex constraint in pyproject.toml (release/X.Y) so PR/GPU tests stay in sync as the paddleocr series advances; apply to both tests.yml and test_gpu.yml - CI: install only paddleocr[doc2md] on py3.8 since several paddlex transitive deps require py3.9+; add a py38_incompatible pytest marker and gate affected tests behind it - CI: pin paddlepaddle==3.0.0 on py3.8 / 3.1.0 on py3.9+ (match GPU CI) - CI: standardize workflow filenames (.yaml -> .yml, dashes -> underscores) - deps: pin lmdb<1.5 on py3.8 (newer lmdb wheels reference Py_SET_REFCNT, a py3.9 stdlib C API) - docs: note Python 3.8+ for base paddleocr/doc2md; py3.9+ for doc-parser/ie/trans/all extras (safetensors>=0.7 dropped py3.8) - docs: update PaddleOCR-VL manual-install Python range to 3.9-3.13 across all hardware variants (VL pipelines use doc-parser) - tests: tag tests that require py3.9+ extras/deps with py38_incompatible Signed-off-by: Bvicii <yizhanhuang2002@gmail.com> * ci: mark /workspace as git safe.directory in GPU runner setuptools_scm runs git to derive the package version during pip install -e .; inside the GPU CI container /workspace is owned by the host user, which trips git's dubious-ownership check and aborts the paddleocr install. Signed-off-by: Bvicii <yizhanhuang2002@gmail.com> --------- Signed-off-by: Bvicii <yizhanhuang2002@gmail.com>
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
# This workflow will upload a Python Package using Twine when a release is created
|
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
|
|
|
|
# This workflow uses actions that are not certified by GitHub.
|
|
# They are provided by a third-party and are governed by
|
|
# separate terms of service, privacy policy, and support
|
|
# documentation.
|
|
|
|
name: Upload Python Package
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.x'
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install build==1.2.2
|
|
- name: Build package
|
|
run: python -m build
|
|
- name: Publish package
|
|
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
|
|
with:
|
|
user: __token__
|
|
password: ${{ secrets.PYPI_API_TOKEN }}
|