Skip to main content

Build Python wheels from a Go module

Project description

go-wheel-action

GitHub Action that packages Go binaries as Python wheels for PyPI distribution

PyPI: Version GitHub: Release CI: Main CI: Coverage

UsageInputsCLIPlatforms

Usage

- uses: actions/setup-go@v6
  with:
    go-version-file: go.mod

- name: Build wheels
  uses: deadnews/go-wheel-action@v1
  with:
    package: ./cmd/myapp

- name: Publish package to PyPI
  uses: pypa/gh-action-pypi-publish@v1

Inputs

On a tag push, all inputs are optional — defaults are derived from the GitHub context.

Input Default Description
mod-dir . Directory containing go.mod
package . Go package to build (passed to go build [package])
version github.ref_name Package version
name basename of mod-dir Python package name and CLI command
ldflags -s Go linker flags
output-dir ./dist Directory for built wheels
readme README.md Path to README for PyPI
url repository URL Project URL for PyPI
description repository description Package summary for PyPI
license repository license License identifier for PyPI

CLI

Can be used outside of GitHub Actions via environment variables:

GOWHEEL_VERSION=0.0.1 \
GOWHEEL_PACKAGE=./cmd/myapp \
go run github.com/deadnews/go-wheel-action/cmd/go-wheel-action@latest

# or, since the tool publishes itself as a wheel:
GOWHEEL_VERSION=0.0.1 \
GOWHEEL_PACKAGE=./cmd/myapp \
uvx go-wheel-action

Platforms

Builds wheels for 8 platform targets (all statically compiled with CGO_ENABLED=0):

OS Arch Wheel tag
Linux amd64 manylinux_2_17_x86_64, musllinux_1_2_x86_64
Linux arm64 manylinux_2_17_aarch64, musllinux_1_2_aarch64
macOS amd64 macosx_10_9_x86_64
macOS arm64 macosx_11_0_arm64
Windows amd64 win_amd64
Windows arm64 win_arm64

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

go_wheel_action-1.0.0a3-py3-none-win_arm64.whl (2.5 MB view details)

Uploaded Python 3Windows ARM64

go_wheel_action-1.0.0a3-py3-none-win_amd64.whl (2.7 MB view details)

Uploaded Python 3Windows x86-64

go_wheel_action-1.0.0a3-py3-none-musllinux_1_2_x86_64.whl (2.6 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

go_wheel_action-1.0.0a3-py3-none-musllinux_1_2_aarch64.whl (2.6 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

go_wheel_action-1.0.0a3-py3-none-manylinux_2_17_x86_64.whl (2.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

go_wheel_action-1.0.0a3-py3-none-manylinux_2_17_aarch64.whl (2.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

go_wheel_action-1.0.0a3-py3-none-macosx_11_0_arm64.whl (2.5 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

go_wheel_action-1.0.0a3-py3-none-macosx_10_9_x86_64.whl (2.6 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

Details for the file go_wheel_action-1.0.0a3-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for go_wheel_action-1.0.0a3-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 7cbe36e630ea8126abcf51751f4c0bd2217d746dc279b765a9f2342f20904b58
MD5 ba5703fe0da5f1f10dc0e241be7bb09e
BLAKE2b-256 38a8dd7dc5cb9aaae4b06c315fe191da999dfb18100d75df1c13352892535d2a

See more details on using hashes here.

Provenance

The following attestation bundles were made for go_wheel_action-1.0.0a3-py3-none-win_arm64.whl:

Publisher: main.yml on deadnews/go-wheel-action

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file go_wheel_action-1.0.0a3-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for go_wheel_action-1.0.0a3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 5139e13ccd7a44c73eb9148ad0ab414d582711f5a51d0768e255af1e16b4c88b
MD5 3b734f67c54a80457120b6344bb577fe
BLAKE2b-256 c22091f8f43e8dc5f510a381b556f47dbacf0d1c9967d9a570989d3422585dc7

See more details on using hashes here.

Provenance

The following attestation bundles were made for go_wheel_action-1.0.0a3-py3-none-win_amd64.whl:

Publisher: main.yml on deadnews/go-wheel-action

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file go_wheel_action-1.0.0a3-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for go_wheel_action-1.0.0a3-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9102be549e321f068ff91d4dc93fc936158485b74561c9ec2b21e3d1194f9989
MD5 1e8bacd8ae3e9338724febb205127384
BLAKE2b-256 2b6f9ef7f1e3b1f5599d78da05bdc0f312c0a47739c802aad766b9146d9e04a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for go_wheel_action-1.0.0a3-py3-none-musllinux_1_2_x86_64.whl:

Publisher: main.yml on deadnews/go-wheel-action

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file go_wheel_action-1.0.0a3-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for go_wheel_action-1.0.0a3-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 6e7d3d7b72727b3cf29c1136b0a3e50ee3afe8aa8cba0427666aef916b4295de
MD5 e797251b62c2bd9addaf3cf400dc05f3
BLAKE2b-256 e186cb1b2e5a88eec389876c4152d8bad31671ec3dacfc7b0ff5abfa2efe7528

See more details on using hashes here.

Provenance

The following attestation bundles were made for go_wheel_action-1.0.0a3-py3-none-musllinux_1_2_aarch64.whl:

Publisher: main.yml on deadnews/go-wheel-action

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file go_wheel_action-1.0.0a3-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for go_wheel_action-1.0.0a3-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 9690adb1434fdb69668dd1042547f66498130180be4275d766c364034acdc257
MD5 e7665b9ca7bd76d6c94c1d25d2dac9ee
BLAKE2b-256 8c181451c465f114797f4470ced5379cdb2065984aa31960a9220b9d3c8ce28c

See more details on using hashes here.

Provenance

The following attestation bundles were made for go_wheel_action-1.0.0a3-py3-none-manylinux_2_17_x86_64.whl:

Publisher: main.yml on deadnews/go-wheel-action

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file go_wheel_action-1.0.0a3-py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for go_wheel_action-1.0.0a3-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 3e13aa179e74a77fb083cf893fa5fd3e6b327ffe1047ea1751b64215fda17bab
MD5 9e3f73d51295ebe2763eb7205686837b
BLAKE2b-256 4e065a8db1e5a3e5eba7f8944151310d81f01440b21cb5cbfe798283e936523b

See more details on using hashes here.

Provenance

The following attestation bundles were made for go_wheel_action-1.0.0a3-py3-none-manylinux_2_17_aarch64.whl:

Publisher: main.yml on deadnews/go-wheel-action

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file go_wheel_action-1.0.0a3-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for go_wheel_action-1.0.0a3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f51caf25e2d80c6420faac15eaebc3ae90d9d4cb4bb5bddc35ded5eb74e48d79
MD5 65eae3927b2b8cbac81ddbc368040400
BLAKE2b-256 3bda606927c09be066ed4e2647adceab5606359e8e1a2db99aedb398968adacc

See more details on using hashes here.

Provenance

The following attestation bundles were made for go_wheel_action-1.0.0a3-py3-none-macosx_11_0_arm64.whl:

Publisher: main.yml on deadnews/go-wheel-action

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file go_wheel_action-1.0.0a3-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for go_wheel_action-1.0.0a3-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e60b3818e4c0e21e8a24417d67c35a253ae9cf561384db103cad4742795cc395
MD5 fcff3817746d116f37075c719f051129
BLAKE2b-256 084c09527242b655ce38f1d86c4d7e4af8ded0c252a8e8c580cad500069c1f9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for go_wheel_action-1.0.0a3-py3-none-macosx_10_9_x86_64.whl:

Publisher: main.yml on deadnews/go-wheel-action

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page