Skip to content

Commit 4cf9d60

Browse files
authored
Merge pull request #375 from tomschr/bugfix/374-towncrier-config
Fix #374: Adapt pyproject.tom for Towncrier
2 parents 3ec0131 + 24e70e9 commit 4cf9d60

File tree

2 files changed

+17
-32
lines changed

2 files changed

+17
-32
lines changed

changelog.d/374.bugfix.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Correct Towncrier's config entries in the :file:`pyproject.toml` file.
2+
The old entries ``[[tool.towncrier.type]]`` are deprecated and need
3+
to be replaced by ``[tool.towncrier.fragment.<TYPE>]``.

pyproject.toml

Lines changed: 14 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -40,42 +40,24 @@ template = "changelog.d/_template.rst"
4040
# issue_format = "`#{issue} <https://github.com/python-attrs/attrs/issues/{issue}>`_"
4141
# issue_format = ":gh:`{issue}`"
4242

43-
# [[tool.towncrier.type]]
44-
# directory = "breaking"
45-
# name = "Breaking Changes"
46-
# showcontent = true
4743

48-
[[tool.towncrier.type]]
49-
directory = "deprecation"
50-
name = "Deprecations"
51-
showcontent = true
44+
[tool.towncrier.fragment.breaking]
45+
name = "Breaking Changes"
5246

53-
[[tool.towncrier.type]]
54-
directory = "feature"
55-
name = "Features"
56-
showcontent = true
47+
[tool.towncrier.fragment.bugfix]
48+
name = "Bug fixes"
5749

58-
# [[tool.towncrier.type]]
59-
# directory = "improvement"
60-
# name = "Improvements"
61-
# showcontent = true
50+
[tool.towncrier.fragment.deprecation]
51+
name = "Deprecations"
6252

63-
[[tool.towncrier.type]]
64-
directory = "bugfix"
65-
name = "Bug Fixes"
66-
showcontent = true
53+
[tool.towncrier.fragment.doc]
54+
name = "Improved documentation"
6755

68-
[[tool.towncrier.type]]
69-
directory = "doc"
70-
name = "Improved Documentation"
71-
showcontent = true
56+
[tool.towncrier.fragment.feature]
57+
name = "Features"
7258

73-
[[tool.towncrier.type]]
74-
directory = "trivial"
75-
name = "Trivial/Internal Changes"
76-
showcontent = true
59+
[tool.towncrier.fragment.removal]
60+
name = "Removals"
7761

78-
[[tool.towncrier.type]]
79-
directory = "removal"
80-
name = "Removals"
81-
showcontent = true
62+
[tool.towncrier.fragment.trivial]
63+
name = "Trivial/Internal Changes"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy