Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make whitespace between releases configurable #552

Open
iliakur opened this issue Oct 17, 2023 · 9 comments
Open

Make whitespace between releases configurable #552

iliakur opened this issue Oct 17, 2023 · 9 comments

Comments

@iliakur
Copy link
Contributor

iliakur commented Oct 17, 2023

Status Quo

towncrier build will generate the following example changelog entry

<!-- towncrier release notes start -->

## <New Release>

### Changed

- Something changed


## Old Release

Notice how there are 2 newlines between Something changed and ## Old Release.

It may be useful in some contexts to customize it. For instance I'm on a team that prefers not to have the second newline between releases.

I think the most flexible solution would be to add a configuration field called something like release_separator. It could have a default value of either \n or \n\n depending on what we consider as an integral part of one release section.

@adiroiban
Copy link
Member

I think that this can be configured by providing a custom Jinja2 template.

Would that work for you?

Cheers

@iliakur
Copy link
Contributor Author

iliakur commented Oct 18, 2023

I tried removing all kinds of whitespace from this template with no success:

{% if sections[""] %}
{% for category, val in definitions.items() if category in sections[""] %}
***{{ definitions[category]['name'] }}***:

{% for text, values in sections[""][category].items() %}
* {{ text }} {{ values|join(', ') }}
{% endfor %}

{% endfor %}
{% else %}
No significant changes.


{% endif %}

lmk if you need any more setup from me to repro this.

@adiroiban
Copy link
Member

I guess that this is an of Jinja whitespace control.

https://jinja.palletsprojects.com/en/3.1.x/templates/#whitespace-control

Just a very quick and brief suggestion.

Have you tried something like ?

{% if sections[""] -%}
{%- for category, val in definitions.items() if category in sections[""] %}

@iliakur
Copy link
Contributor Author

iliakur commented Oct 18, 2023

It's a good call with the jinja whitespace control, I forgot about that.

After trying to remove all possible whitespace in the jinja template without success, I dove into the towncrier code and I think this line is the culprit.

No matter what my template looks like, there are always 2 newlines inserted before the previous releases...

I don't really know of a backwards-compatible way to solve this without exposing a config variable and setting it to \n\n by default.

wdyt?

@adiroiban
Copy link
Member

Thanks for looking into this.

Would it work if the hardcoded newlines are removed from the code and the default template is updated to compensate for that?

If we somehow could get full functionality via the template, I would prefer that, over adding many configuratin flags.

But if this is big issue for you and submit a PR with a new configuration option that is well documented and tested, I would not reject it.


I would prefer to have the core towncrier writer just write fragments, without doing any extra formating.

The full formating be done via templates + other configuration options like the issue template.

@iliakur
Copy link
Contributor Author

iliakur commented Oct 19, 2023

I would also much prefer to move this type of thing into the template. I'm just worried that for anyone who's not using the default template this will be a breaking change.

If you think that's ok, then I can make a PR that moves the whitespace into the default template. Otherwise I could make a PR with the extra config field.

@adiroiban
Copy link
Member

I think this is ok.

My understanding is that most people are using towncrier as a dev tool, and not as a production / user facing tool.

developmenent time for towncrier is limited and is done as a hobby.

so, to simplify the configuration file, I think is best to make this change in the template.

we can add a note in the release note instructing anyone using custom templates to double check their templates.

and if anyone is anoyed by the change, they can try to look over the development of towncrier and help with pre-release feedback.


Also, I am not sure how often people update towncrier in their environments.

I have a release from 2017 that works for me, and I don't see the need to upgrade :)

It just works... so why bother spending extra time with an upgrade without getting anything back :p


so it's your call :)

I'm ok with any option.

the purpose of towncrier is to be useful to developers.

so if any change is useful for you, I am ok with that.

Thanks for the feedback.

@iliakur
Copy link
Contributor Author

iliakur commented Oct 19, 2023

Sounds good, I'll go ahead and make the PR where I move the newlines into the default template!

@iliakur
Copy link
Contributor Author

iliakur commented Oct 19, 2023

@adiroiban PR is up!

github-actions bot pushed a commit to aio-libs/aiohttp that referenced this issue Oct 24, 2023
Bumps [towncrier](https://github.com/twisted/towncrier) from 23.6.0 to
23.10.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/twisted/towncrier/releases">towncrier's
releases</a>.</em></p>
<blockquote>
<h2>Towncrier 23.10.0</h2>
<h1>towncrier 23.10.0 (2023-10-23)</h1>
<p>No significant changes since the previous release candidate.</p>
<h2>Features</h2>
<ul>
<li>
<p>Python 3.12 is now officially supported.
(<code>[#541](twisted/towncrier#541)
&lt;https://github.com/twisted/towncrier/issues/541&gt;</code>_)</p>
</li>
<li>
<p>Initial support was added for monorepo-style setup.
One project with multiple independent news files stored in separate
sub-directories, that share the same towncrier config.
(<code>[#548](twisted/towncrier#548)
&lt;https://github.com/twisted/towncrier/issues/548&gt;</code>_)</p>
</li>
<li>
<p>Two newlines are no longer always added between the current release
notes and the previous content.
The newlines are now defined only inside the template.</p>
<p><strong>Important! If you're using a custom template and want to keep
the same whitespace between releases, you may have to modify your
template.</strong>
(<code>[#552](twisted/towncrier#552)
&lt;https://github.com/twisted/towncrier/issues/552&gt;</code>_)</p>
</li>
</ul>
<h2>Bugfixes</h2>
<ul>
<li>Towncrier now vendors the click-default-group package that prevented
installations on modern Pips.
(<code>[#540](twisted/towncrier#540)
&lt;https://github.com/twisted/towncrier/issues/540&gt;</code>_)</li>
</ul>
<h2>Improved Documentation</h2>
<ul>
<li>The markdown docs now use the default markdown template rather than
a simpler custom one.
(<code>[#545](twisted/towncrier#545)
&lt;https://github.com/twisted/towncrier/issues/545&gt;</code>_)</li>
<li>Cleanup a duplicate backtick in the tutorial.
(<code>[#551](twisted/towncrier#551)
&lt;https://github.com/twisted/towncrier/issues/551&gt;</code>_)</li>
</ul>
<h2>Deprecations and Removals</h2>
<ul>
<li>The support for Python 3.7 has been dropped.
(<code>[#521](twisted/towncrier#521)
&lt;https://github.com/twisted/towncrier/issues/521&gt;</code>_)</li>
</ul>
<h2>Misc</h2>
<ul>
<li><code>[#481](twisted/towncrier#481)
&lt;https://github.com/twisted/towncrier/issues/481&gt;</code><em>,
<code>[#520](twisted/towncrier#520)
&lt;https://github.com/twisted/towncrier/issues/520&gt;</code></em>,
<code>[#522](twisted/towncrier#522)
&lt;https://github.com/twisted/towncrier/issues/522&gt;</code><em>,
<code>[#523](twisted/towncrier#523)
&lt;https://github.com/twisted/towncrier/issues/523&gt;</code></em>,
<code>[#529](twisted/towncrier#529)
&lt;https://github.com/twisted/towncrier/issues/529&gt;</code><em>,
<code>[#536](twisted/towncrier#536)
&lt;https://github.com/twisted/towncrier/issues/536&gt;</code></em></li>
</ul>
<h2>Towncrier 23.10.0rc1</h2>
<h1>towncrier 23.10.0rc1 (2023-10-23)</h1>
<h2>Features</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/twisted/towncrier/blob/trunk/NEWS.rst">towncrier's
changelog</a>.</em></p>
<blockquote>
<h1>towncrier 23.10.0 (2023-10-24)</h1>
<p>No significant changes since the previous release candidate.</p>
<h2>Features</h2>
<ul>
<li>
<p>Python 3.12 is now officially supported.
(<code>[#541](twisted/towncrier#541)
&lt;https://github.com/twisted/towncrier/issues/541&gt;</code>_)</p>
</li>
<li>
<p>Initial support was added for monorepo-style setup.
One project with multiple independent news files stored in separate
sub-directories, that share the same towncrier config.
(<code>[#548](twisted/towncrier#548)
&lt;https://github.com/twisted/towncrier/issues/548&gt;</code>_)</p>
</li>
<li>
<p>Two newlines are no longer always added between the current release
notes and the previous content.
The newlines are now defined only inside the template.</p>
<p><strong>Important! If you're using a custom template and want to keep
the same whitespace between releases, you may have to modify your
template.</strong>
(<code>[#552](twisted/towncrier#552)
&lt;https://github.com/twisted/towncrier/issues/552&gt;</code>_)</p>
</li>
</ul>
<h2>Bugfixes</h2>
<ul>
<li>Towncrier now vendors the click-default-group package that prevented
installations on modern Pips.
(<code>[#540](twisted/towncrier#540)
&lt;https://github.com/twisted/towncrier/issues/540&gt;</code>_)</li>
</ul>
<h2>Improved Documentation</h2>
<ul>
<li>The markdown docs now use the default markdown template rather than
a simpler custom one.
(<code>[#545](twisted/towncrier#545)
&lt;https://github.com/twisted/towncrier/issues/545&gt;</code>_)</li>
<li>Cleanup a duplicate backtick in the tutorial.
(<code>[#551](twisted/towncrier#551)
&lt;https://github.com/twisted/towncrier/issues/551&gt;</code>_)</li>
</ul>
<h2>Deprecations and Removals</h2>
<ul>
<li>The support for Python 3.7 has been dropped.
(<code>[#521](twisted/towncrier#521)
&lt;https://github.com/twisted/towncrier/issues/521&gt;</code>_)</li>
</ul>
<h2>Misc</h2>
<ul>
<li><code>[#481](twisted/towncrier#481)
&lt;https://github.com/twisted/towncrier/issues/481&gt;</code><em>,
<code>[#520](twisted/towncrier#520)
&lt;https://github.com/twisted/towncrier/issues/520&gt;</code></em>,
<code>[#522](twisted/towncrier#522)
&lt;https://github.com/twisted/towncrier/issues/522&gt;</code><em>,
<code>[#523](twisted/towncrier#523)
&lt;https://github.com/twisted/towncrier/issues/523&gt;</code></em>,
<code>[#529](twisted/towncrier#529)
&lt;https://github.com/twisted/towncrier/issues/529&gt;</code><em>,
<code>[#536](twisted/towncrier#536)
&lt;https://github.com/twisted/towncrier/issues/536&gt;</code></em></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/twisted/towncrier/commit/347e9440ae8507adfc22f5c993f4496b20d49ec5"><code>347e944</code></a>
Update for final release.</li>
<li><a
href="https://github.com/twisted/towncrier/commit/ee857403c9a09ca7055f93dd8784e84b5cc2bb3a"><code>ee85740</code></a>
Do RC1 instead of RC0.</li>
<li><a
href="https://github.com/twisted/towncrier/commit/0c3b82c9be435e23019b7064a57fbd7210f54300"><code>0c3b82c</code></a>
venv/bin/towncrier build --yes</li>
<li><a
href="https://github.com/twisted/towncrier/commit/610247f8e0e2146cadb9f46937047dc08f923eab"><code>610247f</code></a>
Update version.</li>
<li><a
href="https://github.com/twisted/towncrier/commit/0b023fa95926470482418d4e11f9ae9f0ada7d56"><code>0b023fa</code></a>
Config location separate from directory containing news file and
fragments (#...</li>
<li><a
href="https://github.com/twisted/towncrier/commit/3f24b6ef7e0c17f3e559b957526598c287774b70"><code>3f24b6e</code></a>
Whitespace between releases can be configured in the template. (<a
href="https://redirect.github.com/twisted/towncrier/issues/553">#553</a>)</li>
<li><a
href="https://github.com/twisted/towncrier/commit/7f37ab5daa72f5a761db1bf14cba1e2d3d87422d"><code>7f37ab5</code></a>
docs(tutorial): Cleanup duplicate backtick typo (<a
href="https://redirect.github.com/twisted/towncrier/issues/551">#551</a>)</li>
<li><a
href="https://github.com/twisted/towncrier/commit/5b732be979642c5b9ab4d22df6fb70ff4bd3ff2f"><code>5b732be</code></a>
[pre-commit.ci] pre-commit autoupdate (<a
href="https://redirect.github.com/twisted/towncrier/issues/549">#549</a>)</li>
<li><a
href="https://github.com/twisted/towncrier/commit/239f84102c374e7395cdc0a50f7b4171cc8c3e83"><code>239f841</code></a>
use markdown default template in markdown docs (<a
href="https://redirect.github.com/twisted/towncrier/issues/546">#546</a>)</li>
<li><a
href="https://github.com/twisted/towncrier/commit/806bec1248b0ea8b86db21e0ce90b1849d3cd721"><code>806bec1</code></a>
Add 3.12 (<a
href="https://redirect.github.com/twisted/towncrier/issues/541">#541</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/twisted/towncrier/compare/23.6.0...23.10.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=towncrier&package-manager=pip&previous-version=23.6.0&new-version=23.10.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
github-actions bot pushed a commit to aio-libs/aiohttp that referenced this issue Oct 24, 2023
Bumps [towncrier](https://github.com/twisted/towncrier) from 23.6.0 to
23.10.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/twisted/towncrier/releases">towncrier's
releases</a>.</em></p>
<blockquote>
<h2>Towncrier 23.10.0</h2>
<h1>towncrier 23.10.0 (2023-10-23)</h1>
<p>No significant changes since the previous release candidate.</p>
<h2>Features</h2>
<ul>
<li>
<p>Python 3.12 is now officially supported.
(<code>[#541](twisted/towncrier#541)
&lt;https://github.com/twisted/towncrier/issues/541&gt;</code>_)</p>
</li>
<li>
<p>Initial support was added for monorepo-style setup.
One project with multiple independent news files stored in separate
sub-directories, that share the same towncrier config.
(<code>[#548](twisted/towncrier#548)
&lt;https://github.com/twisted/towncrier/issues/548&gt;</code>_)</p>
</li>
<li>
<p>Two newlines are no longer always added between the current release
notes and the previous content.
The newlines are now defined only inside the template.</p>
<p><strong>Important! If you're using a custom template and want to keep
the same whitespace between releases, you may have to modify your
template.</strong>
(<code>[#552](twisted/towncrier#552)
&lt;https://github.com/twisted/towncrier/issues/552&gt;</code>_)</p>
</li>
</ul>
<h2>Bugfixes</h2>
<ul>
<li>Towncrier now vendors the click-default-group package that prevented
installations on modern Pips.
(<code>[#540](twisted/towncrier#540)
&lt;https://github.com/twisted/towncrier/issues/540&gt;</code>_)</li>
</ul>
<h2>Improved Documentation</h2>
<ul>
<li>The markdown docs now use the default markdown template rather than
a simpler custom one.
(<code>[#545](twisted/towncrier#545)
&lt;https://github.com/twisted/towncrier/issues/545&gt;</code>_)</li>
<li>Cleanup a duplicate backtick in the tutorial.
(<code>[#551](twisted/towncrier#551)
&lt;https://github.com/twisted/towncrier/issues/551&gt;</code>_)</li>
</ul>
<h2>Deprecations and Removals</h2>
<ul>
<li>The support for Python 3.7 has been dropped.
(<code>[#521](twisted/towncrier#521)
&lt;https://github.com/twisted/towncrier/issues/521&gt;</code>_)</li>
</ul>
<h2>Misc</h2>
<ul>
<li><code>[#481](twisted/towncrier#481)
&lt;https://github.com/twisted/towncrier/issues/481&gt;</code><em>,
<code>[#520](twisted/towncrier#520)
&lt;https://github.com/twisted/towncrier/issues/520&gt;</code></em>,
<code>[#522](twisted/towncrier#522)
&lt;https://github.com/twisted/towncrier/issues/522&gt;</code><em>,
<code>[#523](twisted/towncrier#523)
&lt;https://github.com/twisted/towncrier/issues/523&gt;</code></em>,
<code>[#529](twisted/towncrier#529)
&lt;https://github.com/twisted/towncrier/issues/529&gt;</code><em>,
<code>[#536](twisted/towncrier#536)
&lt;https://github.com/twisted/towncrier/issues/536&gt;</code></em></li>
</ul>
<h2>Towncrier 23.10.0rc1</h2>
<h1>towncrier 23.10.0rc1 (2023-10-23)</h1>
<h2>Features</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/twisted/towncrier/blob/trunk/NEWS.rst">towncrier's
changelog</a>.</em></p>
<blockquote>
<h1>towncrier 23.10.0 (2023-10-24)</h1>
<p>No significant changes since the previous release candidate.</p>
<h2>Features</h2>
<ul>
<li>
<p>Python 3.12 is now officially supported.
(<code>[#541](twisted/towncrier#541)
&lt;https://github.com/twisted/towncrier/issues/541&gt;</code>_)</p>
</li>
<li>
<p>Initial support was added for monorepo-style setup.
One project with multiple independent news files stored in separate
sub-directories, that share the same towncrier config.
(<code>[#548](twisted/towncrier#548)
&lt;https://github.com/twisted/towncrier/issues/548&gt;</code>_)</p>
</li>
<li>
<p>Two newlines are no longer always added between the current release
notes and the previous content.
The newlines are now defined only inside the template.</p>
<p><strong>Important! If you're using a custom template and want to keep
the same whitespace between releases, you may have to modify your
template.</strong>
(<code>[#552](twisted/towncrier#552)
&lt;https://github.com/twisted/towncrier/issues/552&gt;</code>_)</p>
</li>
</ul>
<h2>Bugfixes</h2>
<ul>
<li>Towncrier now vendors the click-default-group package that prevented
installations on modern Pips.
(<code>[#540](twisted/towncrier#540)
&lt;https://github.com/twisted/towncrier/issues/540&gt;</code>_)</li>
</ul>
<h2>Improved Documentation</h2>
<ul>
<li>The markdown docs now use the default markdown template rather than
a simpler custom one.
(<code>[#545](twisted/towncrier#545)
&lt;https://github.com/twisted/towncrier/issues/545&gt;</code>_)</li>
<li>Cleanup a duplicate backtick in the tutorial.
(<code>[#551](twisted/towncrier#551)
&lt;https://github.com/twisted/towncrier/issues/551&gt;</code>_)</li>
</ul>
<h2>Deprecations and Removals</h2>
<ul>
<li>The support for Python 3.7 has been dropped.
(<code>[#521](twisted/towncrier#521)
&lt;https://github.com/twisted/towncrier/issues/521&gt;</code>_)</li>
</ul>
<h2>Misc</h2>
<ul>
<li><code>[#481](twisted/towncrier#481)
&lt;https://github.com/twisted/towncrier/issues/481&gt;</code><em>,
<code>[#520](twisted/towncrier#520)
&lt;https://github.com/twisted/towncrier/issues/520&gt;</code></em>,
<code>[#522](twisted/towncrier#522)
&lt;https://github.com/twisted/towncrier/issues/522&gt;</code><em>,
<code>[#523](twisted/towncrier#523)
&lt;https://github.com/twisted/towncrier/issues/523&gt;</code></em>,
<code>[#529](twisted/towncrier#529)
&lt;https://github.com/twisted/towncrier/issues/529&gt;</code><em>,
<code>[#536](twisted/towncrier#536)
&lt;https://github.com/twisted/towncrier/issues/536&gt;</code></em></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/twisted/towncrier/commit/347e9440ae8507adfc22f5c993f4496b20d49ec5"><code>347e944</code></a>
Update for final release.</li>
<li><a
href="https://github.com/twisted/towncrier/commit/ee857403c9a09ca7055f93dd8784e84b5cc2bb3a"><code>ee85740</code></a>
Do RC1 instead of RC0.</li>
<li><a
href="https://github.com/twisted/towncrier/commit/0c3b82c9be435e23019b7064a57fbd7210f54300"><code>0c3b82c</code></a>
venv/bin/towncrier build --yes</li>
<li><a
href="https://github.com/twisted/towncrier/commit/610247f8e0e2146cadb9f46937047dc08f923eab"><code>610247f</code></a>
Update version.</li>
<li><a
href="https://github.com/twisted/towncrier/commit/0b023fa95926470482418d4e11f9ae9f0ada7d56"><code>0b023fa</code></a>
Config location separate from directory containing news file and
fragments (#...</li>
<li><a
href="https://github.com/twisted/towncrier/commit/3f24b6ef7e0c17f3e559b957526598c287774b70"><code>3f24b6e</code></a>
Whitespace between releases can be configured in the template. (<a
href="https://redirect.github.com/twisted/towncrier/issues/553">#553</a>)</li>
<li><a
href="https://github.com/twisted/towncrier/commit/7f37ab5daa72f5a761db1bf14cba1e2d3d87422d"><code>7f37ab5</code></a>
docs(tutorial): Cleanup duplicate backtick typo (<a
href="https://redirect.github.com/twisted/towncrier/issues/551">#551</a>)</li>
<li><a
href="https://github.com/twisted/towncrier/commit/5b732be979642c5b9ab4d22df6fb70ff4bd3ff2f"><code>5b732be</code></a>
[pre-commit.ci] pre-commit autoupdate (<a
href="https://redirect.github.com/twisted/towncrier/issues/549">#549</a>)</li>
<li><a
href="https://github.com/twisted/towncrier/commit/239f84102c374e7395cdc0a50f7b4171cc8c3e83"><code>239f841</code></a>
use markdown default template in markdown docs (<a
href="https://redirect.github.com/twisted/towncrier/issues/546">#546</a>)</li>
<li><a
href="https://github.com/twisted/towncrier/commit/806bec1248b0ea8b86db21e0ce90b1849d3cd721"><code>806bec1</code></a>
Add 3.12 (<a
href="https://redirect.github.com/twisted/towncrier/issues/541">#541</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/twisted/towncrier/compare/23.6.0...23.10.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=towncrier&package-manager=pip&previous-version=23.6.0&new-version=23.10.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
xiangxli pushed a commit to xiangxli/aiohttp that referenced this issue Dec 4, 2023
Bumps [towncrier](https://github.com/twisted/towncrier) from 23.6.0 to
23.10.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/twisted/towncrier/releases">towncrier's
releases</a>.</em></p>
<blockquote>
<h2>Towncrier 23.10.0</h2>
<h1>towncrier 23.10.0 (2023-10-23)</h1>
<p>No significant changes since the previous release candidate.</p>
<h2>Features</h2>
<ul>
<li>
<p>Python 3.12 is now officially supported.
(<code>[aio-libs#541](twisted/towncrier#541)
&lt;https://github.com/twisted/towncrier/issues/541&gt;</code>_)</p>
</li>
<li>
<p>Initial support was added for monorepo-style setup.
One project with multiple independent news files stored in separate
sub-directories, that share the same towncrier config.
(<code>[aio-libs#548](twisted/towncrier#548)
&lt;https://github.com/twisted/towncrier/issues/548&gt;</code>_)</p>
</li>
<li>
<p>Two newlines are no longer always added between the current release
notes and the previous content.
The newlines are now defined only inside the template.</p>
<p><strong>Important! If you're using a custom template and want to keep
the same whitespace between releases, you may have to modify your
template.</strong>
(<code>[aio-libs#552](twisted/towncrier#552)
&lt;https://github.com/twisted/towncrier/issues/552&gt;</code>_)</p>
</li>
</ul>
<h2>Bugfixes</h2>
<ul>
<li>Towncrier now vendors the click-default-group package that prevented
installations on modern Pips.
(<code>[aio-libs#540](twisted/towncrier#540)
&lt;https://github.com/twisted/towncrier/issues/540&gt;</code>_)</li>
</ul>
<h2>Improved Documentation</h2>
<ul>
<li>The markdown docs now use the default markdown template rather than
a simpler custom one.
(<code>[aio-libs#545](twisted/towncrier#545)
&lt;https://github.com/twisted/towncrier/issues/545&gt;</code>_)</li>
<li>Cleanup a duplicate backtick in the tutorial.
(<code>[aio-libs#551](twisted/towncrier#551)
&lt;https://github.com/twisted/towncrier/issues/551&gt;</code>_)</li>
</ul>
<h2>Deprecations and Removals</h2>
<ul>
<li>The support for Python 3.7 has been dropped.
(<code>[aio-libs#521](twisted/towncrier#521)
&lt;https://github.com/twisted/towncrier/issues/521&gt;</code>_)</li>
</ul>
<h2>Misc</h2>
<ul>
<li><code>[aio-libs#481](twisted/towncrier#481)
&lt;https://github.com/twisted/towncrier/issues/481&gt;</code><em>,
<code>[aio-libs#520](twisted/towncrier#520)
&lt;https://github.com/twisted/towncrier/issues/520&gt;</code></em>,
<code>[aio-libs#522](twisted/towncrier#522)
&lt;https://github.com/twisted/towncrier/issues/522&gt;</code><em>,
<code>[aio-libs#523](twisted/towncrier#523)
&lt;https://github.com/twisted/towncrier/issues/523&gt;</code></em>,
<code>[aio-libs#529](twisted/towncrier#529)
&lt;https://github.com/twisted/towncrier/issues/529&gt;</code><em>,
<code>[aio-libs#536](twisted/towncrier#536)
&lt;https://github.com/twisted/towncrier/issues/536&gt;</code></em></li>
</ul>
<h2>Towncrier 23.10.0rc1</h2>
<h1>towncrier 23.10.0rc1 (2023-10-23)</h1>
<h2>Features</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/twisted/towncrier/blob/trunk/NEWS.rst">towncrier's
changelog</a>.</em></p>
<blockquote>
<h1>towncrier 23.10.0 (2023-10-24)</h1>
<p>No significant changes since the previous release candidate.</p>
<h2>Features</h2>
<ul>
<li>
<p>Python 3.12 is now officially supported.
(<code>[aio-libs#541](twisted/towncrier#541)
&lt;https://github.com/twisted/towncrier/issues/541&gt;</code>_)</p>
</li>
<li>
<p>Initial support was added for monorepo-style setup.
One project with multiple independent news files stored in separate
sub-directories, that share the same towncrier config.
(<code>[aio-libs#548](twisted/towncrier#548)
&lt;https://github.com/twisted/towncrier/issues/548&gt;</code>_)</p>
</li>
<li>
<p>Two newlines are no longer always added between the current release
notes and the previous content.
The newlines are now defined only inside the template.</p>
<p><strong>Important! If you're using a custom template and want to keep
the same whitespace between releases, you may have to modify your
template.</strong>
(<code>[aio-libs#552](twisted/towncrier#552)
&lt;https://github.com/twisted/towncrier/issues/552&gt;</code>_)</p>
</li>
</ul>
<h2>Bugfixes</h2>
<ul>
<li>Towncrier now vendors the click-default-group package that prevented
installations on modern Pips.
(<code>[aio-libs#540](twisted/towncrier#540)
&lt;https://github.com/twisted/towncrier/issues/540&gt;</code>_)</li>
</ul>
<h2>Improved Documentation</h2>
<ul>
<li>The markdown docs now use the default markdown template rather than
a simpler custom one.
(<code>[aio-libs#545](twisted/towncrier#545)
&lt;https://github.com/twisted/towncrier/issues/545&gt;</code>_)</li>
<li>Cleanup a duplicate backtick in the tutorial.
(<code>[aio-libs#551](twisted/towncrier#551)
&lt;https://github.com/twisted/towncrier/issues/551&gt;</code>_)</li>
</ul>
<h2>Deprecations and Removals</h2>
<ul>
<li>The support for Python 3.7 has been dropped.
(<code>[aio-libs#521](twisted/towncrier#521)
&lt;https://github.com/twisted/towncrier/issues/521&gt;</code>_)</li>
</ul>
<h2>Misc</h2>
<ul>
<li><code>[aio-libs#481](twisted/towncrier#481)
&lt;https://github.com/twisted/towncrier/issues/481&gt;</code><em>,
<code>[aio-libs#520](twisted/towncrier#520)
&lt;https://github.com/twisted/towncrier/issues/520&gt;</code></em>,
<code>[aio-libs#522](twisted/towncrier#522)
&lt;https://github.com/twisted/towncrier/issues/522&gt;</code><em>,
<code>[aio-libs#523](twisted/towncrier#523)
&lt;https://github.com/twisted/towncrier/issues/523&gt;</code></em>,
<code>[aio-libs#529](twisted/towncrier#529)
&lt;https://github.com/twisted/towncrier/issues/529&gt;</code><em>,
<code>[aio-libs#536](twisted/towncrier#536)
&lt;https://github.com/twisted/towncrier/issues/536&gt;</code></em></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/twisted/towncrier/commit/347e9440ae8507adfc22f5c993f4496b20d49ec5"><code>347e944</code></a>
Update for final release.</li>
<li><a
href="https://github.com/twisted/towncrier/commit/ee857403c9a09ca7055f93dd8784e84b5cc2bb3a"><code>ee85740</code></a>
Do RC1 instead of RC0.</li>
<li><a
href="https://github.com/twisted/towncrier/commit/0c3b82c9be435e23019b7064a57fbd7210f54300"><code>0c3b82c</code></a>
venv/bin/towncrier build --yes</li>
<li><a
href="https://github.com/twisted/towncrier/commit/610247f8e0e2146cadb9f46937047dc08f923eab"><code>610247f</code></a>
Update version.</li>
<li><a
href="https://github.com/twisted/towncrier/commit/0b023fa95926470482418d4e11f9ae9f0ada7d56"><code>0b023fa</code></a>
Config location separate from directory containing news file and
fragments (#...</li>
<li><a
href="https://github.com/twisted/towncrier/commit/3f24b6ef7e0c17f3e559b957526598c287774b70"><code>3f24b6e</code></a>
Whitespace between releases can be configured in the template. (<a
href="https://redirect.github.com/twisted/towncrier/issues/553">#553</a>)</li>
<li><a
href="https://github.com/twisted/towncrier/commit/7f37ab5daa72f5a761db1bf14cba1e2d3d87422d"><code>7f37ab5</code></a>
docs(tutorial): Cleanup duplicate backtick typo (<a
href="https://redirect.github.com/twisted/towncrier/issues/551">#551</a>)</li>
<li><a
href="https://github.com/twisted/towncrier/commit/5b732be979642c5b9ab4d22df6fb70ff4bd3ff2f"><code>5b732be</code></a>
[pre-commit.ci] pre-commit autoupdate (<a
href="https://redirect.github.com/twisted/towncrier/issues/549">#549</a>)</li>
<li><a
href="https://github.com/twisted/towncrier/commit/239f84102c374e7395cdc0a50f7b4171cc8c3e83"><code>239f841</code></a>
use markdown default template in markdown docs (<a
href="https://redirect.github.com/twisted/towncrier/issues/546">#546</a>)</li>
<li><a
href="https://github.com/twisted/towncrier/commit/806bec1248b0ea8b86db21e0ce90b1849d3cd721"><code>806bec1</code></a>
Add 3.12 (<a
href="https://redirect.github.com/twisted/towncrier/issues/541">#541</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/twisted/towncrier/compare/23.6.0...23.10.0">compare
view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=towncrier&package-manager=pip&previous-version=23.6.0&new-version=23.10.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
pmisik added a commit to pmisik/buildbot that referenced this issue Dec 17, 2023
It generated error:
Warning, treated as error:
/buildbot/buildbot-job/build/master/docs/relnotes/index.rst:25:Bullet list ends without a blank line; unexpected unindent.
make[1]: *** [Makefile:58: html] Error 2

See https://github.com/twisted/towncrier/releases/tag/23.10.0
Two newlines are no longer always added between the current release notes and the previous content. The newlines are now defined only inside the template.

Important! If you're using a custom template and want to keep the same whitespace between releases, you may have to modify your template. (buildbot#552)

twisted/towncrier#552
pmisik added a commit to pmisik/buildbot that referenced this issue Dec 18, 2023
It generated error:
Warning, treated as error:
/buildbot/buildbot-job/build/master/docs/relnotes/index.rst:25:Bullet list ends without a blank line; unexpected unindent.
make[1]: *** [Makefile:58: html] Error 2

See https://github.com/twisted/towncrier/releases/tag/23.10.0
Two newlines are no longer always added between the current release notes and the previous content. The newlines are now defined only inside the template.

Important! If you're using a custom template and want to keep the same whitespace between releases, you may have to modify your template. (buildbot#552)

twisted/towncrier#552
pmisik added a commit to pmisik/buildbot that referenced this issue Dec 19, 2023
It generated error:
Warning, treated as error:
/buildbot/buildbot-job/build/master/docs/relnotes/index.rst:25:Bullet list ends without a blank line; unexpected unindent.
make[1]: *** [Makefile:58: html] Error 2

See https://github.com/twisted/towncrier/releases/tag/23.10.0
Two newlines are no longer always added between the current release notes and the previous content. The newlines are now defined only inside the template.

Important! If you're using a custom template and want to keep the same whitespace between releases, you may have to modify your template. (buildbot#552)

twisted/towncrier#552
pmisik added a commit to pmisik/buildbot that referenced this issue Dec 19, 2023
It generated error:
Warning, treated as error:
/buildbot/buildbot-job/build/master/docs/relnotes/index.rst:25:Bullet list ends without a blank line; unexpected unindent.
make[1]: *** [Makefile:58: html] Error 2

See https://github.com/twisted/towncrier/releases/tag/23.10.0
Two newlines are no longer always added between the current release notes and the previous content. The newlines are now defined only inside the template.

Important! If you're using a custom template and want to keep the same whitespace between releases, you may have to modify your template. (buildbot#552)

twisted/towncrier#552
pmisik added a commit to pmisik/buildbot that referenced this issue Dec 20, 2023
It generated error:
Warning, treated as error:
/buildbot/buildbot-job/build/master/docs/relnotes/index.rst:25:Bullet list ends without a blank line; unexpected unindent.
make[1]: *** [Makefile:58: html] Error 2

See https://github.com/twisted/towncrier/releases/tag/23.10.0
Two newlines are no longer always added between the current release notes and the previous content. The newlines are now defined only inside the template.

Important! If you're using a custom template and want to keep the same whitespace between releases, you may have to modify your template. (buildbot#552)

twisted/towncrier#552
pmisik added a commit to pmisik/buildbot that referenced this issue Dec 20, 2023
It generated error:
Warning, treated as error:
/buildbot/buildbot-job/build/master/docs/relnotes/index.rst:25:Bullet list ends without a blank line; unexpected unindent.
make[1]: *** [Makefile:58: html] Error 2

See https://github.com/twisted/towncrier/releases/tag/23.10.0
Two newlines are no longer always added between the current release notes and the previous content. The newlines are now defined only inside the template.

Important! If you're using a custom template and want to keep the same whitespace between releases, you may have to modify your template. (buildbot#552)

twisted/towncrier#552
pmisik added a commit to pmisik/buildbot that referenced this issue Dec 20, 2023
It generated error:
Warning, treated as error:
/buildbot/buildbot-job/build/master/docs/relnotes/index.rst:25:Bullet list ends without a blank line; unexpected unindent.
make[1]: *** [Makefile:58: html] Error 2

See https://github.com/twisted/towncrier/releases/tag/23.10.0
Two newlines are no longer always added between the current release notes and the previous content. The newlines are now defined only inside the template.

Important! If you're using a custom template and want to keep the same whitespace between releases, you may have to modify your template. (buildbot#552)

twisted/towncrier#552
pmisik added a commit to pmisik/buildbot that referenced this issue Dec 22, 2023
It generated error:
Warning, treated as error:
/buildbot/buildbot-job/build/master/docs/relnotes/index.rst:25:Bullet list ends without a blank line; unexpected unindent.
make[1]: *** [Makefile:58: html] Error 2

See https://github.com/twisted/towncrier/releases/tag/23.10.0
Two newlines are no longer always added between the current release notes and the previous content. The newlines are now defined only inside the template.

Important! If you're using a custom template and want to keep the same whitespace between releases, you may have to modify your template. (buildbot#552)

twisted/towncrier#552
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants