Skip to content

Commit d2dace7

Browse files
committed
Bump version 2.0.0.dev3. Updated CHANGELOG and README.
Added pragma no cover to skip Version-specific lines. Signed-off-by: Samuel Giffard <[email protected]>
1 parent 796ac7d commit d2dace7

File tree

4 files changed

+33
-6
lines changed

4 files changed

+33
-6
lines changed

CHANGELOG.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [2.0.0.dev3] - 2022-01-30
10+
### Added
11+
- The parsing engine is now Object-oriented and more flexible.
12+
- Three new features:
13+
- **Multiline:** Items ( <-- such as this one) can now
14+
be written on several lines.
15+
- **Sub-items:** Items can now have sub-items.
16+
- Of any (reasonable) depth.
17+
- **To list:** Using `to_list` instead of `to_dict` makes it possible to sort it easily.
18+
19+
### Changed
20+
- Release dates are parsed (several formats are supported).
21+
When `to_dict()`, a unique format is chosen.
22+
- When `to_raw_dict()`, release dates are kept "as-is"
23+
(and `.lower()` is no longer applied)
24+
25+
### Fixed
26+
- Change ordering is now deterministic
27+
- When `to_raw_dict()`, empty lines are preserved.
28+
- When semantic version exists, it is produced. Before, if
29+
depended on some bugs (it was produced sometimes and not
30+
other times, such as when the change was empty or if there
31+
was only the link, something like that...).
32+
This is now more consistent.
33+
934
## [2.0.0.dev2] - 2021-08-04
1035
### Fixed
1136
- `keepachangelog.release` will now properly bump version in case the number of digit to compare was previously increased (such as if version 9 and 10 existed).
@@ -84,7 +109,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
84109
### Added
85110
- Initial release.
86111

87-
[Unreleased]: https://github.com/Colin-b/keepachangelog/compare/v2.0.0.dev2...HEAD
112+
[Unreleased]: https://github.com/Colin-b/keepachangelog/compare/v2.0.0.dev3...HEAD
113+
[2.0.0.dev3]: https://github.com/Colin-b/keepachangelog/compare/v2.0.0.dev2...v2.0.0.dev3
88114
[2.0.0.dev2]: https://github.com/Colin-b/keepachangelog/compare/v2.0.0.dev1...v2.0.0.dev2
89115
[2.0.0.dev1]: https://github.com/Colin-b/keepachangelog/compare/v2.0.0.dev0...v2.0.0.dev1
90116
[2.0.0.dev0]: https://github.com/Colin-b/keepachangelog/compare/v1.0.0...v2.0.0.dev0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<a href="https://github.com/Colin-b/keepachangelog/actions"><img alt="Build status" src="https://github.com/Colin-b/keepachangelog/workflows/Release/badge.svg"></a>
66
<a href="https://github.com/Colin-b/keepachangelog/actions"><img alt="Coverage" src="https://img.shields.io/badge/coverage-100%25-brightgreen"></a>
77
<a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
8-
<a href="https://github.com/Colin-b/keepachangelog/actions"><img alt="Number of tests" src="https://img.shields.io/badge/tests-40 passed-blue"></a>
8+
<a href="https://github.com/Colin-b/keepachangelog/actions"><img alt="Number of tests" src="https://img.shields.io/badge/tests-112 passed-blue"></a>
99
<a href="https://pypi.org/project/keepachangelog/"><img alt="Number of downloads" src="https://img.shields.io/pypi/dm/keepachangelog"></a>
1010
</p>
1111

keepachangelog/_changelog_dataclasses.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
Generator,
1313
Iterable,
1414
Union,
15+
Match,
1516
)
1617

17-
try:
18+
try: # pragma: no cover
1819
from typing import Protocol
19-
except ImportError:
20+
except ImportError: # pragma: no cover
2021
from typing_extensions import Protocol # if Python > 3.8
2122

2223
from keepachangelog._tree import BulletTree, TextNode
@@ -45,7 +46,7 @@ def is_category(line: str) -> bool:
4546
return line.startswith("### ")
4647

4748

48-
def matches_link(line: str) -> re.Match:
49+
def matches_link(line: str) -> Match:
4950
return RE_LINK_LINE.fullmatch(line)
5051

5152

keepachangelog/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Major should be incremented in case there is a breaking change. (eg: 2.5.8 -> 3.0.0)
44
# Minor should be incremented in case there is an enhancement. (eg: 2.5.8 -> 2.6.0)
55
# Patch should be incremented in case there is a bug fix. (eg: 2.5.8 -> 2.5.9)
6-
__version__ = "2.0.0.dev2"
6+
__version__ = "2.0.0.dev3"

0 commit comments

Comments
 (0)