commit 6c3df2f2c9dcf849af9ca0c282387a9840b4e339932f3ed8edfdab08508f7b88 Author: Markéta Machová Date: Tue Apr 8 15:09:31 2025 +0000 - Fix dependencies OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-towncrier?expand=0&rev=9 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-towncrier.changes b/python-towncrier.changes new file mode 100644 index 0000000..381db03 --- /dev/null +++ b/python-towncrier.changes @@ -0,0 +1,159 @@ +------------------------------------------------------------------- +Tue Apr 8 11:25:44 UTC 2025 - Ben Greiner + +- Fix dependencies + +------------------------------------------------------------------- +Sun Sep 8 13:29:25 UTC 2024 - Dirk Müller + +- update to 24.8.0: + * Add .gitkeep as an ignored filename. + * Config ignore option now supports wildcard matching via + fnmatch. + * Add a config for enforcing issue names using regex. + * The template file is now ignored based only on the file name. + * Control of the header formatting is once again completely up + to the user when they are writing markdown files (fixes a + regression introduced in + [#610](https://github.com/twisted/towncrier/pull/610)). + * Fixed an issue where issue_template failed recognizing the + issue name of files with a non-category suffix (.md) + * Fixed a bug where orphan news fragments (e.g. + +abc1234.feature) would fail when an issue_pattern is + configured. Orphan news fragments are now excempt from + issue_pattern checks. + * Moved towncrier version definition from + src/towncrier/_version.py to pyproject.toml + towncrier.__version__ was removed, after being deprecated in + 23.6.0. (#640) + * #640, #657 + * When the template file is stored in the same directory with + the news fragments, it is automatically ignored when checking + for valid fragment file names. + * #629, #630 + * towncrier build now handles removing news fragments which are + not part of the git repository. For example, uncommitted or + unstaged files. (#357) + * Inferring the version of a Python package now tries to use + the metadata of the installed package before importing the + package explicitly (which only looks for + [package].__version__). (#432) + * If no filename is given when doing towncrier create, + interactively ask for the issue number and fragment type (and + then launch an interactive editor for the fragment content). + Now by default, when creating a fragment it will be appended + with the filename option's extension (unless an extension is + explicitly provided). For example, towncrier create + 123.feature will create news/123.feature.rst. This can be + changed in configuration file by setting add_extension = + false. A new line is now added by default to the end of the + fragment contents. This can be reverted in the configuration + file by setting add_newline = false. (#482) + * The temporary file towncrier create creates now uses the + correct .rst or .md extension, which may help your editor + with with syntax highlighting. (#594) + * Running towncrier will now traverse back up directories + looking for the configuration file. (#601) + * The towncrier create action now uses sections defined in your + config (either interactively, or via the new --section + option). (#603) + * News fragments are now sorted by issue number even if they + have non-digit characters. For example: - some issue (gh-3, + gh-10) - another issue (gh-4) - yet another issue (gh-11) + The sorting algorithm groups the issues first by non-text + characters and then by number. (#608) + * The title_format configuration option now uses a markdown + format for markdown templates. (#610) + * newsfragment categories can now be marked with check = false, + causing them to be ignored in towncrier check (#617) + * towncrier check will now fail if any news fragments have + invalid filenames. Added a new configuration option called + ignore that allows you to specify a list of filenames that + should be ignored. If this is set, towncrier build will also + fail if any filenames are invalid, except for those in the + list. (#622) + * Add explicit encoding to read_text. + * The default Markdown template now renders a title containing + the release version and date, even when the name + configuration is left empty. + * Orphan news fragments, fragments not associated with an + issue, consisting of only digits (e.g. '+12345678.feature') + now retain their leading marker character. + * Orphan news fragments, fragments not associated with an + issue, will now still show in categories that are marked to + not show content, since they do not have an issue number to + show. + * Clarify version discovery behavior. + * The tutorial now introduces the filename option in the + appropriate paragraph and mentions its default value. + * Add docs to explain how towncrier create +.feature.rst + (orphan fragments) works. + * #491, #561, #562, #568, #569, #571, #574, #575, #582, #591, + #596, #597, #625 + * build now treats a missing fragments directory the same as an + empty one, consistent with other operations. + +------------------------------------------------------------------- +Tue Mar 19 08:05:27 UTC 2024 - Dirk Müller + +- update to 23.11.0: + * Fragments with filenames like fix-1.2.3.feature are now + associated with the ticket fix-1.2.3. In previous versions + they were incorrectly associated to ticket 3. + * Orphan newsfragments containing numeric values are no longer + accidentally associated to tickets. In previous versions the + orphan marker was ignored and the newsfragment was associated + to a ticket having the last numerical value from the + filename. + * No significant changes since the previous release candidate. + * Python 3.12 is now officially supported. (#541) + * Python 3.12 is now officially supported. + * 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. (#548) + * 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. + * 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. + (#552) + * 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. + * The support for Python 3.7 has been dropped. + * Provide a default Markdown template if the configured + filename ends with .md. + * Towncrier no longer depends on setuptools & uses + importlib.resources (or its backport) instead. (#496) + * Towncrier no longer depends on setuptools & uses + importlib.resources (or its backport) instead. + * Calling towncrier check without an existing configuration, + will just show only an error message. In previous versions, a + traceback was generated instead of the error message. (#501) + * Calling towncrier check without an existing configuration, + will just show only an error message. + * In previous versions, a traceback was generated instead of + the error message. + * No changes since the previous release candidate. + * 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) + * 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. + * Python 3.11 is now officially supported. + +------------------------------------------------------------------- +Mon May 18 09:10:34 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- +Fri Dec 27 12:14:05 PM UTC 2019 - John Vandenberg + +- Initial spec for v19.2.0 diff --git a/python-towncrier.spec b/python-towncrier.spec new file mode 100644 index 0000000..8ab9ab4 --- /dev/null +++ b/python-towncrier.spec @@ -0,0 +1,88 @@ +# +# spec file for package python-towncrier +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-towncrier +Version: 24.8.0 +Release: 0 +Summary: Building newsfiles for your project +License: MIT +Group: Development/Languages/Python +URL: https://github.com/hawkowl/towncrier +Source: https://files.pythonhosted.org/packages/source/t/towncrier/towncrier-%{version}.tar.gz +BuildRequires: %{python_module Jinja2} +BuildRequires: %{python_module click} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module importlib-metadata >= 4.6 if %python-base < 3.10} +BuildRequires: %{python_module importlib-resources >= 5 if %python-base < 3.10} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module tomli if %python-base < 3.11} +BuildRequires: fdupes +BuildRequires: git-core +BuildRequires: python-rpm-macros +Requires: git-core +Requires: python-Jinja2 +Requires: python-click +%if 0%{?python_version_nodots} < 310 +Requires: python-importlib-metadata >= 4.6 +Requires: python-importlib-resources >= 5 +%endif +%if 0%{?python_version_nodots} < 311 +Requires: python-tomli +%endif +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module Twisted} +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +Building newsfiles for your project. + +%prep +%setup -q -n towncrier-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/towncrier +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export LANG=en_US.UTF-8 +%pytest + +%post +%python_install_alternative towncrier + +%postun +%python_uninstall_alternative towncrier + +%files %{python_files} +%doc NEWS.rst README.rst +%license LICENSE +%python_alternative %{_bindir}/towncrier +%{python_sitelib}/towncrier +%{python_sitelib}/towncrier-%{version}.dist-info + +%changelog diff --git a/towncrier-23.11.0.tar.gz b/towncrier-23.11.0.tar.gz new file mode 100644 index 0000000..7914994 --- /dev/null +++ b/towncrier-23.11.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13937c247e3f8ae20ac44d895cf5f96a60ad46cfdcc1671759530d7837d9ee5d +size 51483 diff --git a/towncrier-24.8.0.tar.gz b/towncrier-24.8.0.tar.gz new file mode 100644 index 0000000..cfe24f1 --- /dev/null +++ b/towncrier-24.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:013423ee7eed102b2f393c287d22d95f66f1a3ea10a4baa82d298001a7f18af3 +size 61635