From 8373d5b899093b418f6c3d8d9ea5acd2c6a4eca8 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Fri, 5 May 2023 12:43:56 +0200 Subject: [PATCH] py-towncrier: update to 22.12.0. towncrier 22.12.0 (2022-12-21) ============================== No changes since the previous release candidate. towncrier 22.12.0rc1 (2022-12-20) ================================= Features -------- - Added ``--keep`` option to the ``build`` command that allows generating a newsfile, but keeps the newsfragments in place. This option can not be used together with ``--yes``. (`#129 `_) - Python 3.11 is now officially supported. (`#427 `_) - You can now create fragments that are not associated with issues. Start the name of the fragment with ``+`` (e.g. ``+anything.feature``). The content of these orphan news fragments will be included in the release notes, at the end of the category corresponding to the file extension. To help quickly create a unique orphan news fragment, ``towncrier create +.feature`` will append a random string to the base name of the file, to avoid name collisions. (`#428 `_) Improved Documentation ---------------------- - Improved contribution documentation. (`#415 `_) - Correct a typo in the readme that incorrectly documented custom fragments in a format that does not work. (`#424 `_) - The documentation has been restructured and (hopefully) improved. (`#435 `_) - Added a Markdown-based how-to guide. (`#436 `_) - Defining custom fragments using a TOML array is not deprecated anymore. (`#438 `_) Deprecations and Removals ------------------------- - Default branch for `towncrier check` is now "origin/main" instead of "origin/master". If "origin/main" does not exist, fallback to "origin/master" with a deprecation warning. (`#400 `_) Misc ---- - `#406 `_, `#408 `_, `#411 `_, `#412 `_, `#413 `_, `#414 `_, `#416 `_, `#418 `_, `#419 `_, `#421 `_, `#429 `_, `#430 `_, `#431 `_, `#434 `_, `#446 `_, `#447 `_ towncrier 22.8.0 (2022-08-29) ============================= No significant changes since the previous release candidate. towncrier 22.8.0.rc1 (2022-08-28) ================================= Features -------- - Make the check subcommand succeed for branches that change the news file This should enable the ``check`` subcommand to be used as a CI lint step and not fail when a pull request only modifies the configured news file (i.e. when the news file is being assembled for the next release). (`#337 `_) - Added support to tables in toml settings, which provides a more intuitive way to configure custom types. (`#369 `_) - The `towncrier create` command line now has a new `-m TEXT` argument that is used to define the content of the newly created fragment. (`#374 `_) Bugfixes -------- - The extra newline between the title and rendered content when using ``--draft`` is no longer inserted. (`#105 `_) - The detection of duplicate release notes was fixed and recording changes of same version is no longer triggered. Support for having the release notes for each version in a separate file is working again. This is a regression introduced in VERSION 19.9.0rc1. (`#391 `_) Improved Documentation ---------------------- - Improve ``CONTRIBUTING.rst`` and add PR template. (`#342 `_) - Move docs too the main branch and document custom fragment types. (`#367 `_) - The CLI help messages were updated to contain more information. (`#384 `_) Deprecations and Removals ------------------------- - Support for all Python versions older than 3.7 has been dropped. (`#378 `_) Misc ---- - `#292 `_, `#330 `_, `#366 `_, `#376 `_, `#377 `_, `#380 `_, `#381 `_, `#382 `_, `#383 `_, `#393 `_, `#399 `_, `#402 `_ towncrier 21.9.0 (2022-02-04) ============================= Features -------- - towncrier --version` was added to the command line interface to show the product version. (`#339 `_) - Support Toml v1 syntax with tomli on Python 3.6+ (`#354 `_) Bugfixes -------- - Stop writing title twice when ``title_format`` is specified. (`#346 `_) - Disable universal newlines when reading TOML (`#359 `_) Misc ---- - `#332 `_, `#333 `_, `#334 `_, `#338 `_ towncrier 21.3.0 (2021-04-02) ============================= No significant changes since the previous release candidate. towncrier 21.3.0.rc1 (2021-03-21) ================================= Features -------- - Ticket number from file names will be stripped down to avoid ticket links such as ``#007``. (`#126 `_) - Allow definition of the project ``version`` and ``name`` in the configuration file. This allows use of towncrier seamlessly with non-Python projects. (`#165 `_) - Improve news fragment file name parsing to allow using file names like ``123.feature.1.ext`` which are convenient when one wants to use an appropriate extension (e.g. ``rst``, ``md``) to enable syntax highlighting. (`#173 `_) - The new ``--edit`` option of the ``create`` subcommand launches an editor for entering the contents of the newsfragment. (`#275 `_) - CPython 3.8 and 3.9 are now part of our automated test matrix and are officially supported. (`#291 `_) - When searching for the project, first check for an existing importable instance. This helps if the version is only available in the installed version and not the source. (`#297 `_) - Support building with PEP 517. (`#314 `_) Bugfixes -------- - Configuration errors found during command line execution now trigger a message to stderr and no longer show a traceback. (`#84 `_) - A configuration error is triggered when the newsfragment files couldn't be discovered. (`#85 `_) - Invoking towncrier as `python -m towncrier` works. (`#163 `_) - ``check`` subcommand defaults to UTF-8 encoding when ``sys.stdout.encoding`` is ``None``. This happens, for example, with Python 2 on GitHub Actions or when the output is piped. (`#175 `_) - Specifying ``title_format`` disables default top line creation to avoid duplication. (`#180 `_) Improved Documentation ---------------------- - The README now mentions the possibility to name the configuration file ``towncrier.toml`` (in addition to ``pyproject.toml``). (`#172 `_) - ``start_line`` corrected to ``start_string`` in the readme to match the long standing implementation. (`#277 `_) towncrier 19.9.0 (2021-03-20) ============================= No significant changes. towncrier 19.9.0rc1 (2019-09-16) ================================ Features -------- - Add ``create`` subcommand, which can be used to quickly create a news fragment command in the location defined by config. (`#4 `_) - Add support for subcommands, meaning the functionality of the ``towncrier`` executable is now replaced by the ``build`` subcommand:: $ towncrier build --draft A new ``check`` subcommand is exposed. This is an alternative to calling the ``towncrier.check`` module manually:: $ towncrier check Calling ``towncrier`` without a subcommand will result in a call to the ``build`` subcommand to ensure backwards compatibility. This may be removed in a future release. (`#144 `_) - Towncrier's templating now allows configuration of the version header. *CUSTOM TEMPLATE USERS PLEASE NOTE: You will need to add the version header information to your template!* (`#147 `_) - towncrier now accepts the --config argument to specify a custom configuration file (`#157 `_) - There is now the option for ``all_bullets = false`` in the configuration. Setting ``all_bullets`` to false means that news fragments have to include the bullet point if they should be rendered as enumerations, otherwise they are rendered directly (this means fragments can include a header.). It is necessary to set this option to avoid (incorrect) automatic indentation of multiline fragments that do not include bullet points. The ``single-file-no-bullets.rst`` template gives an example of using these options. (`#158 `_) - The ``single_file`` option can now be added to the configuration file. When set to ``true``, the filename key can now be formattable with the ``name``, ``version``, and ``project_date`` format variables. This allows subsequent versions to be written out to new files instead of appended to an existing one. (`#161 `_) - You can now specify Towncrier-bundled templates in your configuration file. Available templates are `default`, `hr-between-versions` (as used in attrs), and `single-file-no-bullets`. (`#162 `_) Bugfixes -------- - Accept newsfragment filenames with multiple dots, like `fix-1.2.3.bugfix`. (`#142 `_) Deprecations and Removals ------------------------- - The `--pyproject` option for `towncrier check` is now replaced with `--config`, for consistency with other commands. (`#162 `_) --- py-towncrier/Makefile | 22 +++++++++++++++++----- py-towncrier/PLIST | 40 +++++++++++++++++++++++++++++++++------- py-towncrier/distinfo | 6 +++--- 3 files changed, 53 insertions(+), 15 deletions(-) diff --git a/py-towncrier/Makefile b/py-towncrier/Makefile index fe1ca614f33..c5cee9ecb29 100644 --- a/py-towncrier/Makefile +++ b/py-towncrier/Makefile @@ -1,6 +1,6 @@ # $NetBSD$ -DISTNAME= towncrier-19.2.0 +DISTNAME= towncrier-22.12.0 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= devel python MASTER_SITES= ${MASTER_SITE_PYPI:=t/towncrier/} @@ -10,12 +10,24 @@ HOMEPAGE= https://github.com/hawkowl/towncrier COMMENT= Building newsfiles for your project LICENSE= mit -DEPENDS+= ${PYPKGPREFIX}-click>=7.1.2:../../devel/py-click -DEPENDS+= ${PYPKGPREFIX}-incremental>=17.5.0:../../devel/py-incremental -DEPENDS+= ${PYPKGPREFIX}-jinja2>=2.11.2:../../textproc/py-jinja2 -DEPENDS+= ${PYPKGPREFIX}-toml>=0.10.2:../../textproc/py-toml +DEPENDS+= ${PYPKGPREFIX}-click>=0:../../devel/py-click +DEPENDS+= ${PYPKGPREFIX}-click-default-group>=0:../../devel/py-click-default-group +DEPENDS+= ${PYPKGPREFIX}-incremental>=0:../../devel/py-incremental +DEPENDS+= ${PYPKGPREFIX}-jinja2>=0:../../textproc/py-jinja2 +DEPENDS+= ${PYPKGPREFIX}-setuptools>=0:../../devel/py-setuptools +TEST_DEPENDS+= ${PYPKGPREFIX}-test>=0:../../devel/py-test +TEST_DEPENDS+= ${PYPKGPREFIX}-twisted>=0:../../net/py-twisted USE_LANGUAGES= # none +do-test: + cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} + +.include "../../lang/python/pyversion.mk" + +.if ${PYTHON_VERSION} < 311 +DEPENDS+= ${PYPKGPREFIX}-toml>=0:../../textproc/py-toml +.endif + .include "../../lang/python/egg.mk" .include "../../mk/bsd.pkg.mk" diff --git a/py-towncrier/PLIST b/py-towncrier/PLIST index ee70f4b279c..61e3c7c1ca0 100644 --- a/py-towncrier/PLIST +++ b/py-towncrier/PLIST @@ -22,28 +22,54 @@ ${PYSITELIB}/towncrier/_git.pyo ${PYSITELIB}/towncrier/_project.py ${PYSITELIB}/towncrier/_project.pyc ${PYSITELIB}/towncrier/_project.pyo -${PYSITELIB}/towncrier/_settings.py -${PYSITELIB}/towncrier/_settings.pyc -${PYSITELIB}/towncrier/_settings.pyo +${PYSITELIB}/towncrier/_settings/__init__.py +${PYSITELIB}/towncrier/_settings/__init__.pyc +${PYSITELIB}/towncrier/_settings/__init__.pyo +${PYSITELIB}/towncrier/_settings/fragment_types.py +${PYSITELIB}/towncrier/_settings/fragment_types.pyc +${PYSITELIB}/towncrier/_settings/fragment_types.pyo +${PYSITELIB}/towncrier/_settings/load.py +${PYSITELIB}/towncrier/_settings/load.pyc +${PYSITELIB}/towncrier/_settings/load.pyo +${PYSITELIB}/towncrier/_shell.py +${PYSITELIB}/towncrier/_shell.pyc +${PYSITELIB}/towncrier/_shell.pyo ${PYSITELIB}/towncrier/_version.py ${PYSITELIB}/towncrier/_version.pyc ${PYSITELIB}/towncrier/_version.pyo ${PYSITELIB}/towncrier/_writer.py ${PYSITELIB}/towncrier/_writer.pyc ${PYSITELIB}/towncrier/_writer.pyo +${PYSITELIB}/towncrier/build.py +${PYSITELIB}/towncrier/build.pyc +${PYSITELIB}/towncrier/build.pyo ${PYSITELIB}/towncrier/check.py ${PYSITELIB}/towncrier/check.pyc ${PYSITELIB}/towncrier/check.pyo -${PYSITELIB}/towncrier/templates/template.rst +${PYSITELIB}/towncrier/create.py +${PYSITELIB}/towncrier/create.pyc +${PYSITELIB}/towncrier/create.pyo +${PYSITELIB}/towncrier/templates/default.rst +${PYSITELIB}/towncrier/templates/hr-between-versions.rst +${PYSITELIB}/towncrier/templates/single-file-no-bullets.rst ${PYSITELIB}/towncrier/test/__init__.py ${PYSITELIB}/towncrier/test/__init__.pyc ${PYSITELIB}/towncrier/test/__init__.pyo +${PYSITELIB}/towncrier/test/helpers.py +${PYSITELIB}/towncrier/test/helpers.pyc +${PYSITELIB}/towncrier/test/helpers.pyo +${PYSITELIB}/towncrier/test/test_build.py +${PYSITELIB}/towncrier/test/test_build.pyc +${PYSITELIB}/towncrier/test/test_build.pyo +${PYSITELIB}/towncrier/test/test_builder.py +${PYSITELIB}/towncrier/test/test_builder.pyc +${PYSITELIB}/towncrier/test/test_builder.pyo ${PYSITELIB}/towncrier/test/test_check.py ${PYSITELIB}/towncrier/test/test_check.pyc ${PYSITELIB}/towncrier/test/test_check.pyo -${PYSITELIB}/towncrier/test/test_cli.py -${PYSITELIB}/towncrier/test/test_cli.pyc -${PYSITELIB}/towncrier/test/test_cli.pyo +${PYSITELIB}/towncrier/test/test_create.py +${PYSITELIB}/towncrier/test/test_create.pyc +${PYSITELIB}/towncrier/test/test_create.pyo ${PYSITELIB}/towncrier/test/test_format.py ${PYSITELIB}/towncrier/test/test_format.pyc ${PYSITELIB}/towncrier/test/test_format.pyo diff --git a/py-towncrier/distinfo b/py-towncrier/distinfo index fe2c60069c4..b934d239c67 100644 --- a/py-towncrier/distinfo +++ b/py-towncrier/distinfo @@ -1,5 +1,5 @@ $NetBSD$ -RMD160 (towncrier-19.2.0.tar.gz) = 8d52b9b09c273ef5ad04662c7e68504ebcc9ef31 -SHA512 (towncrier-19.2.0.tar.gz) = 729cb0830b87d9ae7c630b50341b42eeb4b3e624785fbdcf529f69631e90d39e35457d874fd6248d1798b2f03dfc04c1a58397b67084d2cc9024a055a84e5b75 -Size (towncrier-19.2.0.tar.gz) = 20250 bytes +BLAKE2s (towncrier-22.12.0.tar.gz) = 26adb5497c55805d80f159ca6983ef99c129024eb46167b37698f4de8cee4885 +SHA512 (towncrier-22.12.0.tar.gz) = af602610ddf77ad2d241347bd59ac915637123b65aa9da41197674ea338f8d7c86d1faa59e58e8675286c44ea266915896041bf6e16c3e920e40ca85cf04e52d +Size (towncrier-22.12.0.tar.gz) = 46201 bytes