15
0
Files
python-towncrier/python-towncrier.spec
Dirk Mueller 5f2ca434fc - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-towncrier?expand=0&rev=7
2024-09-08 13:30:28 +00:00

89 lines
2.5 KiB
RPMSpec

#
# spec file for package python-towncrier
#
# Copyright (c) 2024 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 hatchling}
BuildRequires: %{python_module importlib-resources}
BuildRequires: %{python_module incremental}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: git-core
Requires: python-Jinja2
Requires: python-click
Requires: python-importlib-resources
Requires: python-incremental
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%if 0%{?python_version_nodots} < 311
Requires: python-tomli
%endif
# SECTION test requirements
BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module click}
BuildRequires: %{python_module incremental}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module tomli}
BuildRequires: git-core
# /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