# # spec file # # Copyright (c) 2023 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/ # %define skip_python2 1 %define skip_python36 1 %define skip_python38 1 %define skip_python39 1 %define skip_python311 1 %global flavor %{nil} %if "%{flavor}" == "test" %define psuffix -%{flavor} %bcond_without test %else %define psuffix %{nil} %bcond_with test %endif %{?sle15_python_module_pythons} Name: python-releases%{psuffix} Version: 2.1.1 Release: 1.3 Summary: A Sphinx extension for changelog manipulation License: BSD-2-Clause URL: https://github.com/bitprophet/releases Source: https://files.pythonhosted.org/packages/source/r/releases/releases-%{version}.tar.gz Patch0: semanticversioning.patch # PATCH-FIX-OPENSUSE remove-icecream.patch to remove icecream dependency Patch1: remove-icecream.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Sphinx >= 4 Requires: python-semantic_version BuildArch: noarch %if %{with test} BuildRequires: %{python_module Sphinx >= 3} BuildRequires: %{python_module invocations} BuildRequires: %{python_module invoke} BuildRequires: %{python_module pytest-relaxed} BuildRequires: %{python_module pytest} BuildRequires: %{python_module semantic_version} %endif %python_subpackages %description Releases is a Python 2+3 compatible `Sphinx <http://sphinx-doc.org>`_ extension designed to help you keep a source control friendly, merge friendly changelog file & turn it into useful, human readable HTML output. Specifically: * The source format (kept in your Sphinx tree as ``changelog.rst``) is a stream-like timeline that plays well with source control & only requires one entry per change (even for changes that exist in multiple release lines). * The output (when you have the extension installed and run your Sphinx build command) is a traditional looking changelog page with a section for every release; multi-release issues are copied automatically into each release. * By default, feature and support issues are only displayed under feature releases, and bugs are only displayed under bugfix releases. This can be overridden on a per-issue basis. %prep %autosetup -p1 -n releases-%{version} %build %python_build %install %if !%{with test} %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %endif %if %{with test} %check %pytest tests %endif %if !%{with test} %files %{python_files} %doc README.rst %license LICENSE %{python_sitelib}/releases %{python_sitelib}/releases-%{version}*-info %endif %changelog * Fri May 12 2023 Daniel Garcia <daniel.garcia@suse.com> - Delete migrate-to-pytest.patch - Delete remove-mock.patch - Add remove-icecream.patch - Update to 2.1.1: * [Bug]: Fix up an internal utility which monkeypatches a Sphinx/docutils internal, so that it accepts arbitrary args/kwargs instead of exploding on newer Sphinxes. - 2.0.1: * [Bug]: Fix up an internal utility which monkeypatches a Sphinx/docutils internal, so that it accepts arbitrary args/kwargs instead of exploding on newer Sphinxes. - 2.1.0: * [Feature]: Allow controlling the name of your development branch for source code links (eg “Next 1.x feature release†section headers) via the new releases_development_branch config option. * [Feature]: Add a new configuration setting, releases_supported_versions, allowing you to limit how many “Next 1.x feature release†(or bugfix, etc) sections appear at the top of your changelog. - 2.0.0: * [Bug]: Don’t make tmpdirs in releases.util.make_app when being given explicit directory args. * [Bug]: Changelog transformation sometimes failed to occur when running under a ‘single HTML file’ Sphinx builder (eg singlehtml), which resulted in ‘unknown node’ errors. This has been fixed. * [Support]: Migrated the test suite to use pytest-relaxed (and thus pytest) instead of spec. * [Support]: Dropped support for Sphinx <4. We tried to support 1.8+, but too many transitive dependencies have clearly “moved on†and cause various cells in the test matrix to fail hard. * [Support]: Dropped support for Python 2.7, Python 3.4, and Python 3.5, to align slightly better with upstream (and ecosystem) EOLs. * [Support]: The releases_release_uri/releases_issue_uri settings now allow modern (.format/f-strings) string formatting, in addition to the old %%s-based interpolation. * [Support]: Administrivia overhaul: enhanced README, packaging metadata cleaned up/expanded, CI moved to Circle-CI, renamed dev branch to main, and more besides. * Fri Apr 21 2023 Dirk Müller <dmueller@suse.com> - add sle15_python_module_pythons (jsc#PED-68) * Thu Apr 13 2023 Matej Cepl <mcepl@suse.com> - Make calling of %%{sle15modernpython} optional. * Tue Apr 12 2022 Steve Kowalik <steven.kowalik@suse.com> - Add patch remove-mock.patch: * Use stdlib mock, not external mock. - Drop mock BuildRequires. * Tue Dec 14 2021 Ben Greiner <code@bnavigator.de> - refresh migrate-to-pytest.patch: remove pytest-relaxed * Mon Sep 13 2021 Steve Kowalik <steven.kowalik@suse.com> - Add patch migrate-to-pytest.patch: * Migrate to pytest, lightly rebased from upstream. * Mon May 25 2020 Benjamin Greiner <code@bnavigator.de> - Restore semanticversioning.patch to allow semantic_version >= 2.7 gh#bitprophet/releases#84 gh#bitprophet/releases#86 - remove color printout in tests * Wed Mar 18 2020 Tomáš Chvátal <tchvatal@suse.com> - Update to 1.6.3: - :support:`87 backported` (via :issue:`88`) Our upper Sphinx version limit was mostly defensive and at this point is just too old to even build on ReadTheDocs successfully. Removed it for the time being. Thanks to José Sánchez-Gallego for the nudge and the patch. - :support:`84 backported` Pin us to ``semantic-version<2.7`` as they changed their APIs (...) in that version in a way that breaks us. We do not need anything they've added recently, so the conservative response is to just pin until we truly need to upgrade. Thanks to everyone who reported and submitted workarounds for this. - Drop merged patch semanticversioning.patch * Tue Sep 17 2019 Tomáš Chvátal <tchvatal@suse.com> - Do not generate test subpackage * Thu Sep 12 2019 Tomáš Chvátal <tchvatal@suse.com> - Add patch to fix build with new semantic versioning: * semanticversioning.patch * Wed Aug 29 2018 tchvatal@suse.com - Move the Name definition above lua code to work on 42.3 * Sat Aug 11 2018 tchvatal@suse.com - Enable testsuite in multibuild mode as it creates cycle otherwise * Sat Aug 11 2018 tchvatal@suse.com - Update to 1.6.1: * Support sphinx 1.7 * Fri May 18 2018 toddrme2178@gmail.com - Update to 1.5.0 * Allow multiple changelog files -- releases_document_name may now optionally be a list of strings instead of a single string. - Update to 1.4.2 * We never pulled our README into our setup.py metadata, resulting in a rather sparse PyPI page! This has been fixed. - Update to 1.4.1 * Sphinx 1.7.x changed some semi-public APIs; given this is the second minor release in a row to do so, we're explicitly bracketing our ``setup.py`` dependencies to Sphinx >= 1.3 and < 1.7. We expect to bump this up one minor release at a time as we add compatibility back in. - Update to 1.4.0 * Drop Python 2.6 and 3.3 support, to correspond with earlier changes in Sphinx and most other public Python projects. * Identified a handful of issues with our Sphinx pin & subsequently, internal changes in Sphinx 1.6 which broke (and/or appear to break, such as noisy warnings) our own behavior. These have (hopefully) all been fixed. - Update to 1.3.2 * Update packaging requirements to allow for sphinx>=1.3,<2. * Thu Oct 19 2017 toddrme2178@gmail.com - Initial version