Skip to main content


PyHist Logo

PyPi License

A Python utility to automagically update the package version from the git history and generate the Changelog

Overview

Pyhist is a Python utility to automagically update the package version from the git history and generate the Changelog. Inspired by the Conventional Commits specification, this tool inspects the commits history and calculates the new version.

First steps

  • Init: initializes the pyhist from the current git history and creates a .pyhist binary file and creates a versioning commit with the initialization of the utility.
pyhist --init
  • Update: triggers the version update (minor and/or patch). The command inspects the changes applied to the git history from the previous version update and performs the following changes:
    1. Updates the version in the setup.py
    2. Generates a Changelog.md with the content of the version updates (or appends the changes if previously created)
    3. Updates the .pyhist
    4. Adds a versioning commit with the changes (i.e. versioning: Set version to 1.3.7)
pyhist --update
  • Major: triggers the version update in the major version. This command performs the equivalent steps to the update command.
pyhist --major

Installation

Pyhist requires Python 3.7 or higher.

From PyPI

pip install pyhist

From the source code

git clone https://github.com/jgoodman8/pyhist.git
cd pyhist
pip install -e .

Tests

git clone https://github.com/jgoodman8/pyhist.git
cd pyhist
pip install -e .
pip install -e .[tests]

pytest pyhist/tests

Commits specification

This project is inspired by the Conventional Commits specification. Given this, we establish the following rules.

  • Major update:
    • Explicitly called using the pyhist --major command.
  • Minor update:
    • feat
  • Patch update:
    • fix
    • docs
    • test
    • chore
    • perf
    • refactor
    • style

Metadata

Release files for pyhist 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyhist 0.0.5
File Size Uploaded
pyhist-0.0.5.tar.gz 13.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyhist 0.0.5
File Interpreter ABI Platform
pyhist-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 38.6 kB

Release files / pyhist-0.0.5.tar.gz

Download URL pyhist-0.0.5.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8e113ef8fe0957666bb1d2c3f5f4384148802d64afa8a3e1e1d9cd279b6a6abc
BLAKE2b-256 checksum
How to use checksums
6ce0c40507f53a19473c866ab271426bb4320827afe1a75a132e3a42ade2d469
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

Release files / pyhist-0.0.5-py3-none-any.whl

Download URL pyhist-0.0.5-py3-none-any.whl
Size 25.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48c5e9cd41997efc1b905a85a057c10d700bea19d576e57d9a02a839a7d42bc9
BLAKE2b-256 checksum
How to use checksums
fbfc7d7ec42867348ef6d01ae6803a1899b8776b341d838496a14830a930e3bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page