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 can be published via Poetry or setuptools. 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


Download files

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

Source Distribution

autopub-0.1.7.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

autopub-0.1.7-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file autopub-0.1.7.tar.gz.

File metadata

  • Download URL: autopub-0.1.7.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.7.9 Linux/4.15.0-1077-aws

File hashes

Hashes for autopub-0.1.7.tar.gz
Algorithm Hash digest
SHA256 bad136f7bde800fe15a1c03bfd2c079913b7058e9daa02f25292180def3a821d
MD5 5bc6ba8ad87b48bff15aabdb8d61c895
BLAKE2b-256 28152e73db8a3f96bc06017d5c1bd561a1bf9739c8b1d230aa77a33c22170731

See more details on using hashes here.

Provenance

File details

Details for the file autopub-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: autopub-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.7.9 Linux/4.15.0-1077-aws

File hashes

Hashes for autopub-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f10600d28ce3f61342ea7e859e1eb555c933c2031e911bb6d9c537ee51f3352a
MD5 a9aef277afbcbf0cc372a6128a9743db
BLAKE2b-256 715e4a0d93c89bd8a6322c42f21ad612d7a58cb4398153df4952db5e7178a319

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page