OCR-D / ocrd_tesserocr

Run tesseract with the tesserocr bindings with @OCR-D's interfaces
MIT License
38 stars 11 forks source link

CircleCI: add CD via PyPI #215

Closed bertsky closed 1 month ago

bertsky commented 2 months ago

Not sure if there is a better way. We cannot use our own Docker image in Github Actions, but in CircleCI we can. (Without that image, I am not sure if the build could succeed without first installing Tesseract and tesserocr.)

bertsky commented 2 months ago

So deploy-pypi of course can only work from upstream (due to the credentials), not from forks. The same is true for deploy-docker. Hence the last 3 commits:

bertsky commented 2 months ago

I now believe this is the right approach – and we should adopt this for other OCR-D repos, too.

(But running python -m build . inside our own Docker image should not be necessary in most other cases, as these do not have heavy non-Python dependencies.)