Skip to content

Commit

Permalink
Preparing to release
Browse files Browse the repository at this point in the history
  • Loading branch information
mapio committed Mar 25, 2024
1 parent ad6652d commit 29035ad
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 55 deletions.
58 changes: 4 additions & 54 deletions .gitchangelog.rc
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -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
),

Expand All @@ -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<rev>.*)')()), 'HEAD']
revs = [(lambda: '^v' + FileFirstRegexMatch('./src/liblet/__init__.py', r"__version__ = '(?P<rev>.*)'")()), 'HEAD']
11 changes: 11 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -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)
---------------------

Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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]
Expand Down

0 comments on commit 29035ad

Please sign in to comment.