python-releases/python-releases.spec

97 lines
3.1 KiB
RPMSpec
Raw Normal View History

#
# 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/
#
%global flavor @BUILD_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}
- 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. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-releases?expand=0&rev=21
2023-05-12 10:19:39 +02:00
Version: 2.1.1
Release: 0
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
- 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. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-releases?expand=0&rev=21
2023-05-12 10:19:39 +02:00
# PATCH-FIX-OPENSUSE remove-icecream.patch to remove icecream dependency
Patch1: remove-icecream.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
- 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. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-releases?expand=0&rev=21
2023-05-12 10:19:39 +02:00
Requires: python-Sphinx >= 4
Requires: python-semantic_version
BuildArch: noarch
%if %{with test}
- 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. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-releases?expand=0&rev=21
2023-05-12 10:19:39 +02:00
BuildRequires: %{python_module Sphinx >= 3}
BuildRequires: %{python_module invocations}
BuildRequires: %{python_module invoke}
- 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. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-releases?expand=0&rev=21
2023-05-12 10:19:39 +02:00
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
- 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. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-releases?expand=0&rev=21
2023-05-12 10:19:39 +02:00
%pytest tests
%endif
%if !%{with test}
%files %{python_files}
%doc README.rst
%license LICENSE
- 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. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-releases?expand=0&rev=21
2023-05-12 10:19:39 +02:00
%{python_sitelib}/releases
%{python_sitelib}/releases-%{version}*-info
%endif
%changelog