Skip to main content

No project description provided

Project description


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

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

pyhist-0.0.4.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

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

pyhist-0.0.4-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

Details for the file pyhist-0.0.4.tar.gz.

File metadata

  • Download URL: pyhist-0.0.4.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pyhist-0.0.4.tar.gz
Algorithm Hash digest
SHA256 bf875f1197b1ac94d14015094492ae239289a285f4c9b5de11e0991069de8862
MD5 92937d99144e962b0db362bd897f0dcc
BLAKE2b-256 65702e3524c294a192b7c202c29931ccde2b45b40c26f87461ac4c6e980905a0

See more details on using hashes here.

File details

Details for the file pyhist-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: pyhist-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 25.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pyhist-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 096ed784b4edb79fbc9a05131094438371ef8093271d4a78349a6b1ead5718d3
MD5 4fd52ddef78fbf46205cd074311b1076
BLAKE2b-256 30f4b855ad0ccce763b14ecff1d3c16fffe1bd19da7366b8c0ac77be6310d54d

See more details on using hashes here.

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