Skip to main content

Automatic package release upon pull request merge

Project description

AutoPub

Build Status PyPI Version

AutoPub enables project maintainers to release new package versions to PyPI by merging pull requests.

Environment

AutoPub is intended for use with continuous integration (CI) systems such as GitHub Actions, CircleCI, or Travis CI. Projects used with AutoPub are built via build and published via Twine. Contributions that add support for other CI and build systems are welcome.

Configuration

AutoPub settings can be configured via the [tool.autopub] table in the target project’s pyproject.toml file. Required settings include Git username and email address:

[tool.autopub]
git-username = "Your Name"
git-email = "your_email@example.com"

Release Files

Contributors should include a RELEASE.md file in their pull requests with two bits of information:

  • Release type: major, minor, or patch
  • Description of the changes, to be used as the changelog entry

Example:

Release type: patch

Add function to update version strings in multiple files.

Usage

The following autopub sub-commands can be used as steps in your CI flows:

  • autopub check: Check whether release file exists.
  • autopub prepare: Update version strings and add entry to changelog.
  • autopub build: Build the project.
  • autopub commit: Add, commit, and push incremented version and changelog changes.
  • autopub githubrelease: Create a new release on GitHub.
  • autopub publish: Publish a new release.

For systems such as Travis CI in which only one deployment step is permitted, there is a single command that runs the above steps in sequence:

  • autopub deploy: Run prepare, build, commit, githubrelease, and publish in one invocation.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

autopub-1.0.0a6.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

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

autopub-1.0.0a6-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file autopub-1.0.0a6.tar.gz.

File metadata

  • Download URL: autopub-1.0.0a6.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.0 Darwin/23.1.0

File hashes

Hashes for autopub-1.0.0a6.tar.gz
Algorithm Hash digest
SHA256 fdf8be251430dfec3b269cc444635b7b87c326a9adbaeeea43136d8f1877ffc2
MD5 08e7f055ef8eb5742c27f18f008cb318
BLAKE2b-256 ee23485e18ae3fa4f6e07b46780551090753d9fc453101a08dae3a9e2b0e4e7b

See more details on using hashes here.

File details

Details for the file autopub-1.0.0a6-py3-none-any.whl.

File metadata

  • Download URL: autopub-1.0.0a6-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.0 Darwin/23.1.0

File hashes

Hashes for autopub-1.0.0a6-py3-none-any.whl
Algorithm Hash digest
SHA256 a9387ec434148e7f26bd0741ff11304208cc29de16d015a9bdf7b394ea06603c
MD5 ddab84973611d80fba0549eafe8ea82b
BLAKE2b-256 bcc9e2d0605486fceb503c259d6cad884e65114f413c4ea19dc0d5416b9bc0da

See more details on using hashes here.

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