Modernize for Python 3.14.4 and rename to goempy#1
Merged
Conversation
- Module path github.com/kluctl/go-embed-python -> github.com/tamnd/goempy - CI matrix: Python 3.10.17 / 3.11.13 / 3.12.11 / 3.13.3 / 3.14.4 - python-build-standalone 20241219 -> 20260414 - Fix Windows dist triple: pc-windows-msvc-shared-pgo-full -> pc-windows-msvc-pgo-full (upstream PBS dropped the shared- infix; unfixed the download 404s on 3.14) - Upgrade linux/arm64 to pgo+lto (previously lto-only in PBS) - Go toolchain 1.19 -> 1.24; drop sirupsen/logrus in favor of stdlib log/slog - pip 24.3.1 -> 25.2; pin setuptools>=75 / wheel>=0.45 - python/generate: --only-platforms flag for scoped local builds - CI runners: ubuntu-22.04 -> ubuntu-24.04, macos-13 -> macos-15, windows-2022 -> windows-2025 - README rewrite with supported-platform table, fork rationale, Python 3.14 focus Smoke-tested locally on darwin/arm64: Python 3.14.4, OpenSSL 3.5.6, go test ./... green.
PBS 20260414 ships 3.10.20 / 3.11.15 / 3.12.13 / 3.13.13 / 3.14.4. My previous pins (3.10.17, 3.11.13, 3.12.11, 3.13.3) were pulled from an older release and 404 at download time.
The old v0.0.0-<python>-<pbs>-<build> format was inherited from upstream but it confuses `go get` and Dependabot, and the v0.0.0 prefix signals "this is not a real module" when it actually is one. Replace it with a normal semver line: v0.1.0 primary Python (3.14) v0.1.0-py3.13.13 secondary Python lines, valid semver prereleases v0.1.0-py3.12.13 v0.1.0-py3.11.15 v0.1.0-py3.10.20 `go get @latest` now resolves to the primary tag. Other lines are pinned explicitly with the full tag. Library version lives in VERSION, primary Python in PRIMARY_PYTHON. hack/tag-name.sh computes the right tag; hack/build-tag.sh writes the chosen tag to a `tag-name` artifact that release.yml reads back in the release job. next-build-num.sh is gone.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
First PR of the
tamnd/goempyfork. Bringskluctl/go-embed-python(dormant since Jan 2025) up to Python 3.14 and cleans up the toolchain.20260414(plus 3.13.3 / 3.12.11 / 3.11.13 / 3.10.17 for compat)shared-infix, sopc-windows-msvc-shared-pgo-full→pc-windows-msvc-pgo-full. Without this, the release matrix cannot download 3.14 on Windows.pgo+lto(PBS now ships PGO for aarch64 Linux)sirupsen/logrus→ stdliblog/slogsetuptools>=75,wheel>=0.45python/generategains--only-platformsfor scoped local buildsubuntu-24.04,macos-15,windows-2025github.com/kluctl/go-embed-python→github.com/tamnd/goempySpec:
notes/Spec/0900/0967_go_embed_python.md(local)Test plan
go build ./embed_util ./internal ./python/generate ./pip/generateon darwin/arm64go run ./python/generate --python-standalone-version=20260414 --python-version=3.14.4 --only-platforms=darwin/arm64downloads, extracts, and packsNewEmbeddedPythonruns Python 3.14.4 + OpenSSL 3.5.6 end-to-endgo test ./pythongreen against the generated datav0.0.0-3.14.4-20260414-1Out of scope (follow-ups)
windows/arm64,linux/musl, free-threaded (PEP 703) build axisembed_util/packer.gofor ~20-30% binary-size reduction