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.4.tar.gz (7.3 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.4-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: conda_build_test-0.3.4.tar.gz
  • Upload date:
  • Size: 7.3 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.4.tar.gz
Algorithm Hash digest
SHA256 b9d2b491d06956de2f34f15874fcf65b665bf050f4d12ae9d8ff1a8da82a6a73
MD5 c9ded8314690ccf9296be369dda9fa41
BLAKE2b-256 4b23855108483cbc82b854d33ff60b39416fa7882f7849a1c43e13389e626c2a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for conda_build_test-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2b9f4c3003cd74524c96a832b5d988448b8d0332c866278ad0f05bd2ce184ae2
MD5 cc639a199952a3f444333aad4d72b2e8
BLAKE2b-256 fbbaa5a35e8a95e104aa8eff729806155818c43351508c014bd2001da67956b1

See more details on using hashes here.

Provenance

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