Skip to content

Commit 9dc70ff

Browse files
committed
Add default for version
1 parent fe738fe commit 9dc70ff

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ The **third number** is for emergencies when we need to start branches for older
1313

1414
## [Unreleased](https://github.com/hynek/hatch-fancy-pypi-readme/compare/23.2.0...HEAD)
1515

16+
### Fixed
17+
18+
- Added a default to an internal API that is used by *scikit-build-core*.
19+
1620

1721
## [23.2.0](https://github.com/hynek/hatch-fancy-pypi-readme/compare/23.1.0...23.2.0) - 2023-12-31
1822

src/hatch_fancy_pypi_readme/_builder.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@
1515
def build_text(
1616
fragments: list[Fragment],
1717
substitutions: list[Substituter],
18-
version: str,
18+
version: str = "",
1919
) -> str:
20+
"""
21+
Try avoiding breaking the API unnecessarily; it's used directly by
22+
scikit-build-core.
23+
"""
2024
text = "".join(f.render() for f in fragments)
2125

2226
for sub in substitutions:

0 commit comments

Comments
 (0)