python-poetry-dynamic-versi.../python-poetry-dynamic-versioning.spec
Richard Rahl d2a4f00133 - update to 1.7.0:
* The enable command now supports the bypass/override environment variables
    to use a different placeholder version than 0.0.0.
  * The enable command would add "version" to project.dynamic even if it were
    already present.
  * The enable command would set tool.poetry.version to "0.0.0" even if the
    field were already present with a different value.
- update to 1.6.0:
  * CLI: show command to print the version without changing any files.
- update to 1.5.2:
  * The formatting of project.dynamic and tool.poetry.version could be changed
    when triggering the plugin via poetry dynamic-versioning or pip install
    (but not via poetry build or poetry-dynamic-versioning).
- update to 1.5.1:
  * Array formatting was not preserved when changing project.dynamic in
    pyproject.toml.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-poetry-dynamic-versioning?expand=0&rev=13
2025-01-18 17:59:42 +00:00

74 lines
2.3 KiB
RPMSpec

#
# spec file for package python-poetry-dynamic-versioning
#
# 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-poetry-dynamic-versioning
Version: 1.7.0
Release: 0
Summary: Plugin for Poetry to enable dynamic versioning based on VCS tags
License: MIT
Group: Development/Libraries/Python
URL: https://github.com/mtkennerly/poetry-dynamic-versioning
Source: https://files.pythonhosted.org/packages/source/p/poetry-dynamic-versioning/poetry_dynamic_versioning-%{version}.tar.gz
BuildRequires: %{python_module devel >= 3.7.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core >= 1.2.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Jinja2
Requires: python-dunamai >= 1.21.0
Requires: python-tomlkit
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
%{summary}.
%prep
%autosetup -p1 -n poetry_dynamic_versioning-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/poetry-dynamic-versioning
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%prepare_alternative poetry-dynamic-versioning
%{python_compileall}
%post
%python_install_alternative poetry-dynamic-versioning
%postun
%python_uninstall_alternative poetry-dynamic-versioning
%check
#every test reaches out to the internet
%files %{python_files}
%python_alternative %{_bindir}/poetry-dynamic-versioning
%{python_sitelib}/poetry_dynamic_versioning
%{python_sitelib}/poetry_dynamic_versioning-%{version}.dist-info
%changelog