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

Uploaded Python 3

File details

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

File metadata

  • Download URL: conda_build_test-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 c617dc59f94b96ae3ad5d8f1362316c31125acaae2c8645b8614d21117da2015
MD5 ba3b97a0a28ee93a9660dac439f971dc
BLAKE2b-256 76367af45147a4a3c792468fa330b11497ff3ed4ab31ff6b79d795a1a692f5f2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for conda_build_test-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa4cc21f9d2bef613ba2b1b9328f67bf879943cad4ee96b4c8669ca3613fa41e
MD5 dca718b7dc3a36aa5ea031adc0256b29
BLAKE2b-256 f5fedced1742223e1a26f11923f3fcf8ef9d557206dca766db47bdd89ce27b4e

See more details on using hashes here.

Provenance

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