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

Uploaded Python 3

File details

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

File metadata

  • Download URL: conda_build_test-0.3.2.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.2.tar.gz
Algorithm Hash digest
SHA256 bfb6572db0a2a6a6e4d833ebd8fc14e6ac6ca3626887498ddf00e8b7e27b9b5d
MD5 7e295a413e6229ba537d092caf0aefcc
BLAKE2b-256 c35347c44d29573d81b6b46ec7ec3f62c276fa8d69c9dc2e54f51099fcadef5a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for conda_build_test-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d314e0b46ceba1bcbc153e3318f442b5772a2349bb183c6ddc390474522ae581
MD5 cd39696d3982a818775aee9012bfed7e
BLAKE2b-256 a6b70531bd9cb69461cfc35462d79331483e328485df4930aceadcba2c1a2c5e

See more details on using hashes here.

Provenance

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