qurator-spk / dinglehopper

An OCR evaluation tool
Apache License 2.0
59 stars 13 forks source link

Release on PyPi #24

Closed mikegerber closed 1 year ago

mikegerber commented 4 years ago
mikegerber commented 1 year ago

This should reuse the workflow from setuptools-ocrd. We already have pyproject.toml, just need to enable the workflow.

mikegerber commented 1 year ago

This is half-done:

https://pypi.org/project/dinglehopper/

There's a source up there with version 0.9.1, but the GitHub release has the source with this correction version and a wheel with version 0.0.0 - I suspect there is still a bug with setuptools_ocrd.

mikegerber commented 1 year ago
❯ pip install dinglehopper
Collecting dinglehopper
  Downloading dinglehopper-0.9.1.tar.gz (35 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Discarding https://files.pythonhosted.org/packages/f6/fa/008dfaf8d3be2fb55ae7bba335fc868803822c27d331bf4deaecdc162808/dinglehopper-0.9.1.tar.gz (from https://pypi.org/simple/dinglehopper/) (requires-python:>=3.6): Requested dinglehopper from https://files.pythonhosted.org/packages/f6/fa/008dfaf8d3be2fb55ae7bba335fc868803822c27d331bf4deaecdc162808/dinglehopper-0.9.1.tar.gz has inconsistent version: expected '0.9.1', but metadata has '0.0.0'
[...]
mikegerber commented 1 year ago
❯ pip install --upgrade dinglehopper
Collecting dinglehopper
  Downloading dinglehopper-0.9.2-py3-none-any.whl (46 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.8/46.8 kB 375.3 kB/s eta 0:00:00

dinglehopper now installs cleanly from PyPI 🚀

This currently involves a workaround in MANIFEST.in and needs to be fixed properly here: https://github.com/qurator-spk/setuptools_ocrd/issues/10

mikegerber commented 1 year ago

This currently involves a workaround in MANIFEST.in and needs to be fixed properly here: qurator-spk/setuptools_ocrd#10

setuptools_ocrd 0.0.18 has this fixed and the workaround is removed!

mikegerber commented 1 year ago

And README now recommends installing from PyPI

🥂