Skip to main content

Ratio package management tool.

Project description

Ratio versioning checker.

Quickstart

Installation

Raver can be installed using pip install raver for any Python version >=3.9. Or, for Poetry managed projects, use poetry add -D raver to add it as a development dependency.

Using raver

To just check if Raver can fetch and check your current version, use raver in your favorite terminal while in your project directory (where pyproject.toml is).

Raver detects any Python module that is set up using Poetry by default. It will then check if the version in the module/package’s main file contains a __version__ = "..." line that matches the version in your pyproject.toml file.

Check w.r.t. git reference

To check the current version versus a git branch as reference (e.g. origin/master), use:

raver --ref origin/master

where origin/master is the reference branch. It then performs a comparison using git diff to check for committed changes. -r works as well as a shorthand.

Check changelog

To check whether a changelog entry exists for the current version. There are two supported changelog methods, file and directory.

raver --changelog ./path/to/changelog.rst

where the changelog file can be of any extension. Raver checks whether the earlier detected Python file version (only {major}.{minor}.{patch}, no metadata) is included in the document.

raver --changelog ./path/to/changelog/

is also allowed, where the changelog directory has to contain an entry in the format of v{major}.{minor}.{patch}* of the current version (the star is a glob wildcard).

TOML configuration

Raver supports TOML configuration! It takes precedence over any command-line parameters. The following would be a sensible default for raver:

[tool.raver]
module = "raver"  # Change to your package name or remove to use Poetry's entry.
reference = "origin/main"
changelog = "./doc/source/changelog.rst"
debug = false

Developer guide

Python packaging information

This project is packaged using poetry. Packaging information as well as dependencies are stored in pyproject.toml.

Installing the project and its development dependencies can be done using poetry install.

Versioning

This project uses semantic versioning. Version increments are checked using Raver.

Changelog

Changelog format as described by https://keepachangelog.com/ has been adopted.

See Changelog.

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

raver-3.0.2.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

raver-3.0.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file raver-3.0.2.tar.gz.

File metadata

  • Download URL: raver-3.0.2.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/5.4.109+

File hashes

Hashes for raver-3.0.2.tar.gz
Algorithm Hash digest
SHA256 2a129373e591e7f2e74cc367960533c485abebe5dc2870805242210e6f64c5d5
MD5 3b2c86b01bc60a38444c7ece85444974
BLAKE2b-256 8e7b724f0b3136d8b1d2dbc6831e86366c2eef1a65aa59b2f2abec8be8f55440

See more details on using hashes here.

File details

Details for the file raver-3.0.2-py3-none-any.whl.

File metadata

  • Download URL: raver-3.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Linux/5.4.109+

File hashes

Hashes for raver-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fa371de0d27bc65ab0fd403a6489975f8f0dda8198e4e0b7fc08b07c876fb29b
MD5 90fd140c7cec7f294ef46dad72ecaa20
BLAKE2b-256 9f321cebe4e644a13cc2f736ffea51e30b0375aa0ec308f0f723c81a17b397b6

See more details on using hashes here.

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