Merge pull request #11084 from pradyunsg/fix-release-changelog-generation

Run `towncrier build` instead of `towncrier`
This commit is contained in:
Pradyun Gedam 2022-05-03 12:03:43 +01:00 committed by GitHub
commit e195f7bd3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
38 changed files with 65 additions and 41 deletions

View File

@ -9,6 +9,70 @@
.. towncrier release notes start
21.1b1 (2022-04-30)
===================
Process
-------
- Start migration of distribution metadata implementation from ``pkg_resources``
to ``importlib.metadata``. The new implementation is currently not exposed in
any user-facing way, but included in the code base for easier development.
Deprecations and Removals
-------------------------
- Drop ``--use-deprecated=out-of-tree-build``, according to deprecation message. (`#11001 <https://github.com/pypa/pip/issues/11001>`_)
Features
--------
- Add option to install and uninstall commands to opt-out from running-as-root warning. (`#10556 <https://github.com/pypa/pip/issues/10556>`_)
- Include Project-URLs in ``pip show`` output. (`#10799 <https://github.com/pypa/pip/issues/10799>`_)
- Improve error message when ``pip config edit`` is provided an editor that
doesn't exist. (`#10812 <https://github.com/pypa/pip/issues/10812>`_)
- Add a user interface for supplying config settings to build backends. (`#11059 <https://github.com/pypa/pip/issues/11059>`_)
- Add support for Powershell autocompletion. (`#9024 <https://github.com/pypa/pip/issues/9024>`_)
- Explains why specified version cannot be retrieved when *Requires-Python* is not satisfied. (`#9615 <https://github.com/pypa/pip/issues/9615>`_)
- Validate build dependencies when using ``--no-build-isolation``. (`#9794 <https://github.com/pypa/pip/issues/9794>`_)
Bug Fixes
---------
- Fix conditional checks to prevent ``pip.exe`` from trying to modify itself, on Windows. (`#10560 <https://github.com/pypa/pip/issues/10560>`_)
- Fix uninstall editable from Windows junction link. (`#10696 <https://github.com/pypa/pip/issues/10696>`_)
- Fallback to pyproject.toml-based builds if ``setup.py`` is present in a project, but ``setuptools`` cannot be imported. (`#10717 <https://github.com/pypa/pip/issues/10717>`_)
- When checking for conflicts in the build environment, correctly skip requirements
containing markers that do not match the current environment. (`#10883 <https://github.com/pypa/pip/issues/10883>`_)
- Disable brotli import in vendored urllib3 so brotli could be uninstalled/upgraded by pip. (`#10950 <https://github.com/pypa/pip/issues/10950>`_)
- Prioritize URL credentials over netrc. (`#10979 <https://github.com/pypa/pip/issues/10979>`_)
- Filter available distributions using hash declarations from constraints files. (`#9243 <https://github.com/pypa/pip/issues/9243>`_)
- Fix an error when trying to uninstall packages installed as editable from a network drive. (`#9452 <https://github.com/pypa/pip/issues/9452>`_)
- Fix pip install issues using a proxy due to an inconsistency in how Requests is currently handling variable precedence in session. (`#9691 <https://github.com/pypa/pip/issues/9691>`_)
Vendored Libraries
------------------
- Upgrade CacheControl to 0.12.11
- Upgrade distro to 1.7.0
- Upgrade platformdirs to 2.5.2
- Remove ``progress`` from vendored dependencies.
- Upgrade ``pyparsing`` to 3.0.8 for startup performance improvements.
- Upgrade rich to 12.2.0
- Upgrade tomli to 2.0.1
- Upgrade typing_extensions to 4.2.0
Improved Documentation
----------------------
- Add more dedicated topic and reference pages to the documentation. (`#10899 <https://github.com/pypa/pip/issues/10899>`_)
- Capitalise Y as the default for "Proceed (y/n)?" when uninstalling. (`#10936 <https://github.com/pypa/pip/issues/10936>`_)
- Add ``scheme://`` requirement to ``--proxy`` option's description (`#10951 <https://github.com/pypa/pip/issues/10951>`_)
- The wheel command now references the build interface section instead of stating the legacy
setuptools behavior as the default. (`#10972 <https://github.com/pypa/pip/issues/10972>`_)
- Improved usefulness of ``pip config --help`` output. (`#11074 <https://github.com/pypa/pip/issues/11074>`_)
22.0.4 (2022-03-06)
===================

View File

@ -1 +0,0 @@
Add option to install and uninstall commands to opt-out from running-as-root warning.

View File

@ -1 +0,0 @@
Fix conditional checks to prevent ``pip.exe`` from trying to modify itself, on Windows.

View File

@ -1 +0,0 @@
Replace the git protocol with https in tests.

View File

@ -1 +0,0 @@
Fix uninstall editable from Windows junction link.

View File

@ -1,3 +0,0 @@
Start migration of distribution metadata implementation from ``pkg_resources``
to ``importlib.metadata``. The new implementation is currently not exposed in
any user-facing way, but included in the code base for easier development.

View File

@ -1 +0,0 @@
Fallback to pyproject.toml-based builds if ``setup.py`` is present in a project, but ``setuptools`` cannot be imported.

View File

View File

@ -1 +0,0 @@
Include Project-URLs in ``pip show`` output.

View File

@ -1,2 +0,0 @@
Improve error message when ``pip config edit`` is provided an editor that
doesn't exist.

View File

@ -1,2 +0,0 @@
When checking for conflicts in the build environment, correctly skip requirements
containing markers that do not match the current environment.

View File

@ -1 +0,0 @@
Add more dedicated topic and reference pages to the documentation.

View File

@ -1 +0,0 @@
Capitalise Y as the default for "Proceed (y/n)?" when uninstalling.

View File

@ -1 +0,0 @@
Disable brotli import in vendored urllib3 so brotli could be uninstalled/upgraded by pip.

View File

@ -1 +0,0 @@
Add ``scheme://`` requirement to ``--proxy`` option's description

View File

@ -1,2 +0,0 @@
The wheel command now references the build interface section instead of stating the legacy
setuptools behavior as the default.

View File

@ -1 +0,0 @@
Prioritize URL credentials over netrc.

View File

@ -1 +0,0 @@
Drop ``--use-deprecated=out-of-tree-build``, according to deprecation message.

View File

@ -1 +0,0 @@
Add a user interface for supplying config settings to build backends.

View File

@ -1 +0,0 @@
Improved usefulness of ``pip config --help`` output.

View File

@ -1 +0,0 @@
Update pre-commit hooks.

View File

@ -1 +0,0 @@
Replace ``Iterator[T]`` with ``Generator[T, None, None]``.

View File

@ -1 +0,0 @@
Update black==22.3.0.

View File

@ -1 +0,0 @@
Add support for Powershell autocompletion.

View File

@ -1 +0,0 @@
Filter available distributions using hash declarations from constraints files.

View File

@ -1 +0,0 @@
Fix an error when trying to uninstall packages installed as editable from a network drive.

View File

@ -1 +0,0 @@
Explains why specified version cannot be retrieved when *Requires-Python* is not satisfied.

View File

@ -1 +0,0 @@
Fix pip install issues using a proxy due to an inconsistency in how Requests is currently handling variable precedence in session.

View File

@ -1 +0,0 @@
Validate build dependencies when using ``--no-build-isolation``.

View File

@ -1 +0,0 @@
Upgrade CacheControl to 0.12.11

View File

@ -1 +0,0 @@
Upgrade distro to 1.7.0

View File

@ -1 +0,0 @@
Upgrade platformdirs to 2.5.2

View File

@ -1 +0,0 @@
Remove ``progress`` from vendored dependencies.

View File

@ -1 +0,0 @@
Upgrade ``pyparsing`` to 3.0.8 for startup performance improvements.

View File

@ -1 +0,0 @@
Upgrade rich to 12.2.0

View File

@ -1 +0,0 @@
Upgrade tomli to 2.0.1

View File

@ -1 +0,0 @@
Upgrade typing_extensions to 4.2.0

View File

@ -85,7 +85,7 @@ def commit_file(session: Session, filename: str, *, message: str) -> None:
def generate_news(session: Session, version: str) -> None:
session.install("towncrier")
session.run("towncrier", "--yes", "--version", version, silent=True)
session.run("towncrier", "build", "--yes", "--version", version, silent=True)
def update_version_file(version: str, filepath: str) -> None: