58 lines
1.8 KiB
RPMSpec
58 lines
1.8 KiB
RPMSpec
%global _description %{expand:
|
|
This is a Python 3.7+ plugin for Poetry 1.2.0+ and Poetry Core 1.0.0+ to enable
|
|
dynamic versioning based on tags in your version control system, powered by
|
|
Dunamai. Many different version control systems are supported, including Git
|
|
and Mercurial; please refer to the Dunamai page for the full list (and minimum
|
|
supported version where applicable).
|
|
|
|
poetry-dynamic-versioning provides a build backend that patches Poetry Core to
|
|
enable the versioning system in PEP 517 build frontends. When installed with
|
|
the plugin feature (i.e., poetry-dynamic-versioning[plugin]), it also
|
|
integrates with the Poetry CLI to trigger the versioning in commands like
|
|
poetry build.}
|
|
|
|
Name: python-poetry-dynamic-versioning
|
|
Version: 1.0.0
|
|
Release: 1
|
|
Summary: Plugin for Poetry to enable dynamic versioning based on VCS tags
|
|
|
|
License: MIT
|
|
URL: https://github.com/mtkennerly/poetry-dynamic-versioning
|
|
Source0: %{url}/archive/v%{version}/poetry_dynamic_versioning-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
%description %_description
|
|
|
|
%package -n python3-poetry-dynamic-versioning
|
|
Summary: %{summary}
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-setuptools_scm
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
BuildRequires: python3-poetry-core
|
|
|
|
%description -n python3-poetry-dynamic-versioning %_description
|
|
|
|
%prep
|
|
%autosetup -n poetry_dynamic_versioning-%{version}
|
|
|
|
%build
|
|
%pyproject_build
|
|
|
|
%install
|
|
%pyproject_install
|
|
|
|
%files -n python3-poetry-dynamic-versioning
|
|
%license LICENSE
|
|
%doc README.md CHANGELOG.md
|
|
%{_bindir}/poetry-dynamic-versioning
|
|
%{python3_sitelib}/poetry_dynamic_versioning/
|
|
%{python3_sitelib}/poetry_dynamic_versioning-*dist-info/
|
|
|
|
%changelog
|
|
* Fri Aug 18 2023 mengzhaoa <mengzhaoa@isoftstone.com> - 1.0.0-1
|
|
- Init package.
|