Skip to main content

Custom releaser hooks for ONCE project based on zest.releaser

Project description

Coveralls https://codecov.io/gh/once.releaser/branch/master/graph/badge.svg Latest Version Egg Status https://img.shields.io/pypi/pyversions/once.releaser.svg?style=plastic:alt:Supported-PythonVersions License

once.releaser

Custom releaser hooks for JIRA project based on zest.releaser and cs.zestreleaser.changelog. This hook extract the commit messages from the last release tag to the current tag and create the towncrier news fragments, based on the JIRA issue and the towncrier type.

Currently it only supports GIT VCS logs.

The commit messages must be in the following format:

<optional prefix> <issue_name>-<issue_number> <towncrier type> <message> [<author>]

Author will be extracted from the git history.

Examples

The following commit messages are valid:

  • Revert WEBAGL-1234 feature Add new feature

  • Add WEBAGL-1234 feature new feature

  • WEBAGL-1235 bugfix Fix AttributeError RequestContainer object has no attribute getClientForURL

Fragments files will be created in the following format:

news/WEBAGL-1234.feature

Add new feature [Rafael Bermúdez Horcajada <myemail@email.com>]
Revert new feature [Rafael Bermúdez Horcajada <myemail@email.com>]

news/WEBAGL-1235.bugfix

Fix AttributeError RequestContainer object has no attribute getClientForURL [Rafael Bermúdez Horcajada <myemail@email.com>]

Installation

Using pip:

$ pip install once.releaser

Authors

  • Rafael Bermúdez Horcajada

Contributors

Put your name here, you deserve it!

  • ?

Contribute

License

The project is licensed under the GPLv2.

Changelog

1.0 (2025-04-11)

No significant changes.

1.0a10 (2024-09-30)

Bug fixes:

  • Extract commits ignoring merged [Bermúdez Horcajada, Rafael] (#1)

1.0a9 (2024-09-24)

Bug fixes:

  • Fix duplicate entries

1.0a8 (2024-09-20)

New features:

  • Git add after all files are updated.

1.0a7 (2024-09-20)

Bug fixes:

  • Ensure the newsfile is added to the git index to avoid pre-commit hooks to fail

1.0a6 (2024-09-20)

Bug fixes:

  • Don’t assign encoding to file

1.0a5 (2024-09-20)

New features:

  • Execute at hook zest.releaser.prereleaser.before

1.0a4 (2024-09-20)

Bug fixes:

  • Fix regex pattern to extract prefix properly [Rafael Bermúdez Horcajada <rber474@gmail.com>]

1.0a3 (2024-09-19)

Bug fixes:

1.0a2 (2024-09-19)

New features:

1.0a1 (unreleased)

  • Initial release. [rber474]

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

once_releaser-1.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

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

once_releaser-1.0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file once_releaser-1.0.tar.gz.

File metadata

  • Download URL: once_releaser-1.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for once_releaser-1.0.tar.gz
Algorithm Hash digest
SHA256 db2d57b09780b4d2cdc581cdef23c742697e0de220a24f1884584c8e177d23da
MD5 a3ddfeb874c242f2ecc322993a0466f4
BLAKE2b-256 9e184d4bcf194c38be93dfdfd9b216638fa5c9e398d7091966f00a731a03c5f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for once_releaser-1.0.tar.gz:

Publisher: python-publish.yml on rber474/once.releaser

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file once_releaser-1.0-py3-none-any.whl.

File metadata

  • Download URL: once_releaser-1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for once_releaser-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b96fa10b64ca29c106123cc58f83c47e2f98ad83460a2137cd318a50e8b5c1a0
MD5 6bb0de70c40303e0349b638634c6ead8
BLAKE2b-256 4f6bc7f228b98526081ab4f75deae8c559ff0b86c89f7c77db247c624ee3c39d

See more details on using hashes here.

Provenance

The following attestation bundles were made for once_releaser-1.0-py3-none-any.whl:

Publisher: python-publish.yml on rber474/once.releaser

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