Skip to content

Fix PyPI publishing outside Python 2 container - #43

Merged
polsala merged 1 commit into
masterfrom
fix/issue-41-publish-container
Aug 20, 2026
Merged

Fix PyPI publishing outside Python 2 container#43
polsala merged 1 commit into
masterfrom
fix/issue-41-publish-container

Conversation

@giscebot

Copy link
Copy Markdown
Contributor

Summary

  • keep the release job on the supported Ubuntu runner
  • build the legacy source distribution inside python:2.7-slim
  • run GitHub release and PyPI publishing actions outside the job container

Why

pypa/gh-action-pypi-publish does not support job-level containers. The previous workflow caused the runner's injected Python 3.14 binary to execute against the older glibc from python:2.7-slim, failing before publication.

Validation

  • git diff --check
  • docker run --rm -v "$PWD:/src" -w /src python:2.7-slim python setup.py sdist
  • confirmed dist/ooquery-0.23.0.tar.gz is generated

ERP-ti task: not created because this host has no ERP-ti connection profile or credentials configured.

Requested by: @polsala

Follow-up to #41 and #42.

Co-authored-by: polsala <15796004+polsala@users.noreply.github.com>
@polsala polsala added the patch label Aug 20, 2026
@polsala
polsala merged commit c044fdb into master Aug 20, 2026
2 checks passed
@polsala
polsala deleted the fix/issue-41-publish-container branch August 20, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants