Tool for automating basic python packages task.
Project description
liter
Tool for automating basic python packages task.
Installation
pip install liter
Features
- Changelog autogeneration based on git history.
- Changing project version recursively
How to use
Generating changelogs
It will separate the project versions according to the version tags added on git.
To generate a basic CHANGELOG.md
file type:
liter changelog
If you want the changelog to start at a specific version type:
liter changelog --start-in [VERSION]
Example:
liter changelog --start-in 0.2.0
Changing version
Changing version with liter will find all the files in your project recursively where your current package version is written. For each line in every file where a version match is found you can choose if modify the line or not.
To change project version type:
liter version
Which is the same as:
liter version patch
To upgrade another version number type:
liter version minor
or:
liter version major
Where major
, minor
and patch
refers to the 1st, 2nd and 3rd version numbers respectively. (See Semantic Versioning for mor information).
Liter config file
When runing any command in liter a literconfig.json
file will be created with some default configuraions. You can customize this parameters as you want.
Config parameters
-
version
This is your current package version. By default liter will look for a
setup.py
or apyproject.toml
to find your current version. If you do not have any of this file you must change theversion
parameter inliterconfig.json
to your current package version. -
version_ignore
List of patters to ignore when searching a version match in files.
-
changelog_sections
Sections that will be included in changelog file. Each key, value pair represents the section names and a list of key words respectively. A commit will be added to a section if the first word of the commit is any of the sections defined key word.
-
changelog_include_others
Wheter to include or not the
Others
section in changelogs. TheOther
sections contains all the commits that did not match with any of the key words added in any section ofchangelog_sections
. -
changelog_ignore_commits
All the commits that match with any of these key words will not be included in the changelog file.
-
changelog_only_path_pattern
Only include commits that affected files which path contains any of the patterns specified.
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
Built Distribution
File details
Details for the file liter-0.0.3.tar.gz
.
File metadata
- Download URL: liter-0.0.3.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.9.2 Linux/5.4.0-1040-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 607df5f819dbf57d910eb3fa76e21e22fe74841121601fb8cbca1b312582faea |
|
MD5 | 6d91bb37269a3909e1e441ed10aeb25f |
|
BLAKE2b-256 | 7f80c1635018c90b869c89b292d212428af959fbf3afac69ee98fe3f5c5c0d28 |
File details
Details for the file liter-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: liter-0.0.3-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.9.2 Linux/5.4.0-1040-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 310f0e290ad3c0b4a302feb62908f32d486bfb611617cd3ee2361ce8d9f15e80 |
|
MD5 | 75fb53a5ac601b0767020c5cdffce5fa |
|
BLAKE2b-256 | fb66e7f3643f405af51c9f39baf8426885aaa39edbe53b71fadc0d30d86d25e0 |