Skip to main content

Testing packaging and uploading with GitHub actions

Project description

Test package

This repo is for testing build and release automation of Python setuptools projects with GitHub Actions

Below is the needed per-repsitory setup. The workflow file itself should not need editing, instead you configure it via variables in .github/workflows/release-vars.sh. You also need to enable Trusted Publisher uploads on PyPI and TestPI, and add an API key as a repository secret in GitHub for Anaconda package uploads.

Configure repository name

This restricts upload steps to run only for workflows running in this repository.

  1. Set RELEASE_REPO in .github/workflows/release-vars.sh to the username and repository name, e.g.
    export RELEASE_REPO="chrisjbillington/conda-build-test"
    

Set up Trusted Publisher package uploads

Per the docs:

  1. Go to https://test.pypi.org/manage/account/publishing, fill in the details and do set the optional GitHub environment to testpypi.
  2. Go to https://pypi.org/manage/account/publishing, fill in the details and do set the optional GitHub environment to pypi.

For both PyPI and Test PyPI, "Workflow name" is release.yml.

Set up Anaconda uploads

  1. set ANACONDA_USER in .github/workflows/release-vars.sh, e.g:
    export ANACONDA_USER="cbillington"
    
  2. Set ANACONDA_API_TOKEN as a repository secret in GitHub. If you don't have a token, create one on your Anaconda settings page, e.g.: https://anaconda.org/cbillington/settings/access

Project details


Download files

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

Source Distribution

conda_build_test-0.3.3.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

conda_build_test-0.3.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file conda_build_test-0.3.3.tar.gz.

File metadata

  • Download URL: conda_build_test-0.3.3.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for conda_build_test-0.3.3.tar.gz
Algorithm Hash digest
SHA256 3c14137ef707e70baf5ed19dc2fc681c89a087077f80e107f7017c6a32c6f518
MD5 dc426ea65eb075544afd084d73a8ed3e
BLAKE2b-256 2744da961bb3d7ce268b0e87906645c2127d94f1654a944893602f932e554dfc

See more details on using hashes here.

Provenance

The following attestation bundles were made for conda_build_test-0.3.3.tar.gz:

Publisher: release.yml on chrisjbillington/conda-build-test

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

File details

Details for the file conda_build_test-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for conda_build_test-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4588a9acda1439a4948b57f2c0f886883297a11028b4c3a31b60cce4cb73cb4d
MD5 2d0e3881fd118bed0c635295df1eb72d
BLAKE2b-256 216a10e5c184374514847416f0f92f8926dc93f5e0f32bf9b4584af78efef569

See more details on using hashes here.

Provenance

The following attestation bundles were made for conda_build_test-0.3.3-py3-none-any.whl:

Publisher: release.yml on chrisjbillington/conda-build-test

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