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.0a4-py3-none-win_arm64.whl (1.1 MB view details)

Uploaded Python 3Windows ARM64

go_wheel_action-1.0.0a4-py3-none-win_amd64.whl (1.2 MB view details)

Uploaded Python 3Windows x86-64

go_wheel_action-1.0.0a4-py3-none-musllinux_1_2_x86_64.whl (1.2 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

go_wheel_action-1.0.0a4-py3-none-musllinux_1_2_aarch64.whl (1.1 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

go_wheel_action-1.0.0a4-py3-none-manylinux_2_17_x86_64.whl (1.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

go_wheel_action-1.0.0a4-py3-none-manylinux_2_17_aarch64.whl (1.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

go_wheel_action-1.0.0a4-py3-none-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

go_wheel_action-1.0.0a4-py3-none-macosx_10_9_x86_64.whl (1.1 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for go_wheel_action-1.0.0a4-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 c6bf0b218d6f2b214b991b5ab1d28cd0e8c8f8c13b88f27de0f44d47d2bae6aa
MD5 27c281417403003343eb05c28d67d330
BLAKE2b-256 9fef68a0fe2f28d868b1f67efa094ee10877b7a7260853033dcd72ff09d4ac92

See more details on using hashes here.

Provenance

The following attestation bundles were made for go_wheel_action-1.0.0a4-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.0a4-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for go_wheel_action-1.0.0a4-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 45a3b060897f1dfd344a848228b31473eb4105160d261a51e06631e42610f76e
MD5 babbb92a2d0316cc4704318310795582
BLAKE2b-256 a505e453218ae9233dbb833debab5889343aa2241cfa069a8824a0d8a63fecff

See more details on using hashes here.

Provenance

The following attestation bundles were made for go_wheel_action-1.0.0a4-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.0a4-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for go_wheel_action-1.0.0a4-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 59be2a0df93299734c590e59b78387a2950d00e1efc37d9e067206fe4bcf98c3
MD5 904a5b79ae3a574bd36f378483fe157d
BLAKE2b-256 20cae57c43d79b61a64d093036111ee417472f65181f3b80bde2a777f7fe6a3d

See more details on using hashes here.

Provenance

The following attestation bundles were made for go_wheel_action-1.0.0a4-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.0a4-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for go_wheel_action-1.0.0a4-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 a2abf362a5b2ad16d1e0d14d7bd1901b902a2aab83e85269c788b55c2af8a132
MD5 55c8f491b1fcba451c44ecfedf4e09a3
BLAKE2b-256 fd312307b3f41809417e4e4396fc5557fa12a075b88caf973048a3f34c3f3a67

See more details on using hashes here.

Provenance

The following attestation bundles were made for go_wheel_action-1.0.0a4-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.0a4-py3-none-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for go_wheel_action-1.0.0a4-py3-none-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 630de22dc6073d81b269fb5c12e5166d1f97acc334bce409a091fc025b0dca5b
MD5 4fbf34eb32fc334dd000aaa0890543b2
BLAKE2b-256 b504cb7d2b87df3e7d01ad635340e45a63e34e5e216b35f029b2ea688912b9a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for go_wheel_action-1.0.0a4-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.0a4-py3-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for go_wheel_action-1.0.0a4-py3-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 930302f3f50cf0e336afd1d40731627c984174901e26ec66b88383f853f72eda
MD5 eababf9b8397aa32c34ab25a83749d8d
BLAKE2b-256 b24ef35aecfcd08f24ebdce807c2b3d511972cb595d37107740a6dc33d335c87

See more details on using hashes here.

Provenance

The following attestation bundles were made for go_wheel_action-1.0.0a4-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.0a4-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for go_wheel_action-1.0.0a4-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f5d6f3603da62fe174b49644bbd5179b614300d17cabe0406dfc6e0101c08866
MD5 7d001643ba7c57ab9b3c49f079f6eebb
BLAKE2b-256 31c18bc3beba523663430c74b2ee09c627c840e0b7bcfab0b6d8cd52016974e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for go_wheel_action-1.0.0a4-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.0a4-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for go_wheel_action-1.0.0a4-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 95e75a1bf39602750df41fca44bd3f27812d99c3599f69038c89f6a83d02d08e
MD5 dce55de28937d17348d812dccd10063a
BLAKE2b-256 483fd59a007343211ce73e28ef0b953cece3028b7edc19a7943cf17f0f9a409d

See more details on using hashes here.

Provenance

The following attestation bundles were made for go_wheel_action-1.0.0a4-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