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.0.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.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: conda_build_test-0.3.0.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.0.tar.gz
Algorithm Hash digest
SHA256 c2530f6712f105e1ddb50624ffb02a67c1ad70482c52c24f593c3bd2b3832e2a
MD5 c748d0ae49614d1ed2cce2a95a7a49b9
BLAKE2b-256 6a213e832fbd62b600ac2b224f6a9559fafa83117a8ffc1c68eebabafb82bfa9

See more details on using hashes here.

Provenance

The following attestation bundles were made for conda_build_test-0.3.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for conda_build_test-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0cd77bf267da40cf5d5cec85570d3c0fb7b1eb10890b265334dc24d838bfd1e7
MD5 eede5d866350adc999c21c200290b234
BLAKE2b-256 5b4f5cad7970e71f227a2be2cf9cb957ddd9ec06842de1b54a8bc1064cd8ce2f

See more details on using hashes here.

Provenance

The following attestation bundles were made for conda_build_test-0.3.0-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