diff --git a/.gitchangelog.rc b/.gitchangelog.rc index 6378809..f12613a 100644 --- a/.gitchangelog.rc +++ b/.gitchangelog.rc @@ -1,57 +1,8 @@ # -*- coding: utf-8; mode: python -*- -## -## Format -## -## ACTION: [AUDIENCE:] COMMIT_MSG [!TAG ...] -## -## Description -## -## ACTION is one of 'chg', 'fix', 'new' -## -## Is WHAT the change is about. -## -## 'chg' is for refactor, small improvement, cosmetic changes... -## 'fix' is for bug fixes -## 'new' is for new features, big improvement -## -## AUDIENCE is optional and one of 'dev', 'usr', 'pkg', 'test', 'doc' -## -## Is WHO is concerned by the change. -## -## 'dev' is for developpers (API changes, refactors...) -## 'usr' is for final users (UI changes) -## 'pkg' is for packagers (packaging changes) -## 'test' is for testers (test only related changes) -## 'doc' is for doc guys (doc only changes) -## -## COMMIT_MSG is ... well ... the commit message itself. -## -## TAGs are additionnal adjective as 'refactor' 'minor' 'cosmetic' -## -## They are preceded with a '!' or a '@' (prefer the former, as the -## latter is wrongly interpreted in github.) Commonly used tags are: -## -## 'refactor' is obviously for refactoring code only -## 'minor' is for a very meaningless change (a typo, adding a comment) -## 'cosmetic' is for cosmetic driven change (re-indentation, 80-col...) -## 'wip' is for partial functionality but complete subfunctionality. -## -## Example: -## -## new: usr: support of bazaar implemented -## chg: re-indentend some lines !cosmetic -## new: dev: updated code to be compatible with last version of killer lib. -## fix: pkg: updated year of licence coverage. -## new: test: added a bunch of test around user usability of feature X. -## fix: typo in spelling my name in comment. !minor -## -## Please note that multi-line commit message are supported, and only the -## first line will be considered as the "summary" of the commit message. So -## tags, and other rules only applies to the summary. The body of the commit -## message will be displayed in the changelog without reformatting. ignore_regexps = [ - r'^Bump version:', + r'^Bump version', + r'^Release version', r'@minor', r'!minor', r'@cosmetic', r'!cosmetic', r'@refactor', r'!refactor', @@ -72,7 +23,6 @@ section_regexps = [ ('Fixes', [ r'^[fF]ix\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$', ]), - ('Other', None ## Match all lines ), @@ -88,8 +38,8 @@ tag_filter_regexp = r'v[0-9]+\.[0-9]+(\.[0-9]+)?(-(alpha|beta))?' unreleased_version_label = '[yet to be released]' -output_engine = mustache('.changelog.tpl') #rest_py +output_engine = mustache('.changelog.tpl') include_merge = True -revs = [(lambda: '^v' + FileFirstRegexMatch('.bumpversion.cfg', r'current_version = (?P.*)')()), 'HEAD'] +revs = [(lambda: '^v' + FileFirstRegexMatch('./src/liblet/__init__.py', r"__version__ = '(?P.*)'")()), 'HEAD'] diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 25a84e8..d0434dc 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,17 @@ Changelog ========= +v1.7.0a0 (2024-03-25) +--------------------- + +- Removed support for Python < 3.10. +- All source are clean according to ruff. +- Big refactoring in liblet.display, favoring composition (with the new + GVWrapper) over inheritance (of BaseGraph(ABC)). +- InstantaneousDescription now uses colors instead of unicode combining + characters +- Minor cleanups and fixes. + v1.6.4a0 (2024-02-25) --------------------- diff --git a/pyproject.toml b/pyproject.toml index 108ef31..13eaa91 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -77,7 +77,7 @@ ignore = ["E501", "E731", "EM101", "EM102", "FBT002", "INP001", "N802", "N803", quote-style = "single" [tool.hatch.envs.devel] -dependencies = ["gitchangelog", "pyupgrade"] +dependencies = ["gitchangelog", "pyupgrade", "pystache"] [tool.hatch.envs.docs] features = ["docs"] @@ -87,6 +87,8 @@ dependencies = ["coverage", "codecov"] [tool.hatch.envs.docs.scripts] build = ["./bin/docs"] + +[tool.hatch.envs.devel.scripts] changelog = ["gitchangelog"] [tool.hatch.envs.tests.scripts]