No project description provided
Project description
Publicator
A better
poetry publish
Features
Supported
- Ensures you are publishing from your release branch (main and master by default)
- Ensures the working directory is clean and that there are no changes not pulled
- Reinstalls dependencies to ensure your project works with the latest dependency tree
- Ensures your Python version is supported by the project and its dependencies
- Runs the tests
- Bumps the version in pyproject.toml and creates a git tag
- Publishes the new version to pypi.org
- Pushes commits and tags (newly & previously created) to your Git server
Upcoming
- Interactive UI
- Opens a prefilled GitHub Releases draft after publish
- See exactly what will be executed with preview mode, without pushing or publishing anything remotely
Prerequisites
- Python 3.9 or later
- Poetry 1.1 or later
- Git 2.11 or later
Install
Install with pipx.
pipx install publicator
Usage
$ publicator --help
Usage:
$ publicator <version>
Version can be one of:
patch | minor | major | 1.2.3
Options
--any-branch Allow publishing from any branch
--branch Name of the release branch (default: main | master)
--no-tests Skips tests
--no-publish Skips publishing
--preview Show tasks without actually executing them
--no-release-draft Skips opening a GitHub release draft
--release-draft-only Only opens a GitHub release draft
--test-script Name of shell command to run tests before publishing (default: `poetry run pytest`)
--message Version bump commit message. `%s` will be replaced with version. (default: '%s')
Configuration
To be added later.
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
publicator-0.1.4.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for publicator-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 549e5886655f9d583f6638f767f782613e99e27d5439d8de3b873229ddde1a0d |
|
MD5 | e4e18a85d97762766193187b0b01ac35 |
|
BLAKE2b-256 | 7d3a5fa54cac119dccd118922bbfc9f0802663463a37637d2fb15fbd176362ef |