rtfc 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,122 @@
1
+ Metadata-Version: 2.4
2
+ Name: rtfc
3
+ Version: 0.1.0
4
+ Author-email: Victorien <contact@vctrn.dev>
5
+ License-Expression: MIT
6
+ License-File: LICENSE
7
+ Classifier: Development Status :: 4 - Beta
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: Operating System :: OS Independent
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3 :: Only
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Programming Language :: Python :: 3.14
16
+ Classifier: Programming Language :: Python :: 3.15
17
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
+ Classifier: Typing :: Typed
19
+ Requires-Python: >=3.11
20
+ Requires-Dist: jinja2>=3.1.6
21
+ Requires-Dist: tomli-w>=1.2.0
22
+ Requires-Dist: typing-extensions>=4.16.0
23
+ Description-Content-Type: text/x-rst
24
+
25
+ ====
26
+ rtfc
27
+ ====
28
+
29
+ |Pythons| |PyPI| |Docs| |Ruff|
30
+
31
+ .. |Pythons| image:: https://img.shields.io/pypi/pyversions/rdfm.svg
32
+ :alt: Supported Python versions
33
+ :target: https://pypi.org/project/rdfm/
34
+
35
+ .. |PyPI| image:: https://img.shields.io/pypi/v/rdfm.svg
36
+ :alt: PyPI - Version
37
+ :target: https://pypi.org/project/rdfm/
38
+
39
+ .. |Docs| image:: https://img.shields.io/readthedocs/rtfc.svg
40
+ :alt: Documentation status
41
+ :target: https://rtfc.readthedocs.io
42
+
43
+ .. |Ruff| image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
44
+ :alt: Ruff
45
+ :target: https://github.com/astral-sh/ruff
46
+
47
+ *Read the freaking changelog* is a tool to manage changelogs and versioning.
48
+
49
+ As the name implies, rtfc helps you produce clear, well-structured changelogs,
50
+ leaving your users no excuse for being surprised by what changed between releases.
51
+
52
+ rtfc is heavily inspired by the great `Towncrier`_ project.
53
+
54
+ .. _`Towncrier`: https://towncrier.readthedocs.io/en/stable/
55
+
56
+ Installation
57
+ ------------
58
+
59
+ From PyPI:
60
+
61
+ .. code:: bash
62
+
63
+ pip install rtfc
64
+
65
+ Usage
66
+ -----
67
+
68
+ Configure rtfc in the ``[tool.rtfc]`` table of your ``pyproject.toml`` (or in
69
+ an ``rtfc.toml`` file), and add the insert marker to your changelog document:
70
+
71
+ .. code:: toml
72
+
73
+ [tool.rtfc]
74
+ changelog = "docs/source/changelog.rst"
75
+
76
+ .. code:: rst
77
+
78
+ Changelog
79
+ =========
80
+
81
+ .. rtfc-insert
82
+
83
+ Changelog entries are individual files created along the changes of a pull
84
+ request, avoiding the merge conflicts a shared changelog file causes:
85
+
86
+ .. code:: console
87
+
88
+ $ rtfc new --section bugfix --meta gh_issue=123 --content "Fix a bug."
89
+ Created changelog/d0592011.bugfix.rtfc
90
+
91
+ Each entry holds a TOML frontmatter and the change description, written in the
92
+ documentation format of your project:
93
+
94
+ .. code:: text
95
+
96
+ +++
97
+ date = 2026-08-06
98
+ nonce = "d0592011"
99
+ section = "bugfix"
100
+
101
+ [metadata]
102
+ gh_issue = 123
103
+ +++
104
+ Fix a bug.
105
+
106
+ Validate the configuration and the entries, typically in CI:
107
+
108
+ .. code:: console
109
+
110
+ $ rtfc check
111
+ OK: 1 valid entries
112
+
113
+ On release, combine the entries into the changelog. The version block is
114
+ inserted after the marker, and the entry files are deleted:
115
+
116
+ .. code:: console
117
+
118
+ $ rtfc build --version 1.2.0
119
+ Updated docs/source/changelog.rst
120
+
121
+ A sphinx extension is also provided, rendering the not-yet-released entries
122
+ when building your documentation.
@@ -0,0 +1,20 @@
1
+ rtfc/__init__.py,sha256=2Gdt2aIA9F4LF_IX3NHwNqSKRbBk7oRu3OUOws2KPnE,162
2
+ rtfc/__main__.py,sha256=uWkpImb8cYH1yMZkUNLc5eApAp0xzkCThS7OZN5Ggdg,159
3
+ rtfc/_changelog.py,sha256=b3qVSGP_t42EGp9A706J93ZS_P6BnqQb9PNNKgubLE0,1471
4
+ rtfc/_cli.py,sha256=ezMoTg_t1NyMg1XfLjHXTWYeT_TjP5j-Hxyx3h4rg2M,8281
5
+ rtfc/_config.py,sha256=_xxyJMwTfZNTXSXM_g3dPZeMPyyL6XcwXEGFNYUi6IU,11020
6
+ rtfc/_entry.py,sha256=FIVGDt2OF5DmWi_4v7ZzbLSeaBX-veWp9iNhcupECnc,8926
7
+ rtfc/_validation.py,sha256=OCjXwTgEXzebAhcZqcs4GMCPdlXV6dXLmm9MTUcS_Qk,19415
8
+ rtfc/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ rtfc/sphinx.py,sha256=cActwlRXiflz8nx3J94NMlDetWCj9EBigYUvP0eHR34,3704
10
+ rtfc/_format/__init__.py,sha256=6A-kjJDYVEUSSf_MkwmJmmV7dajCSzaYXyCe7gAurDg,1387
11
+ rtfc/_format/base.py,sha256=--vZjFZ2vXQSCdS57ASYCGCAQW1XOFcopSdL0VOaLEE,2004
12
+ rtfc/_format/rst.py,sha256=2U2ynMlimmR_MKirn0XGZPfukuuXjD4uBaYu1ZAftUg,597
13
+ rtfc/_render/__init__.py,sha256=zNvSSHE9sh1skry24Ht20GITeljhoXlV172vKyB7exY,701
14
+ rtfc/_render/base.py,sha256=T1C0CDxj8SGruwvAtmWAy5Kf0pkRhP2ff-jLEH9ikOU,3468
15
+ rtfc/_render/jinja.py,sha256=wg-iR6Dx_3CXgXXFIxDhlFZyFTf8IuTtDAi2MK6WzF4,2904
16
+ rtfc-0.1.0.dist-info/METADATA,sha256=NbV8LOjDf7ujvO5H1Qio1jQ_sfiFybGXUqdull0tdTs,3293
17
+ rtfc-0.1.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
18
+ rtfc-0.1.0.dist-info/entry_points.txt,sha256=Etq7TvAZUMj90rVfhKS-iVRMPhiX5DLeO-WE2GvuaY0,40
19
+ rtfc-0.1.0.dist-info/licenses/LICENSE,sha256=A04j6CjugHTujrL2VRuEw7A8NjQv4PX4cVrxqq8DOno,1066
20
+ rtfc-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.31.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ rtfc = rtfc._cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Victorien
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.