## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Bootstrap mode is needed to break circular dependency with setuptools-scm: # - setuptools_scm >= 10 requires vcs-versioning # - pytest itself also requires setuptools_scm # When bootstrapping, we cannot run tests at all. %bcond bootstrap 0 %bcond tests %{without bootstrap} Name: python-vcs-versioning Version: 2.2.4 Release: %autorelease Summary: The blessed package to manage your versions by vcs metadata License: MIT URL: https://github.com/pypa/setuptools-scm Source: %{pypi_source vcs_versioning} BuildArch: noarch BuildSystem: pyproject BuildOption(install): -l vcs_versioning %if %{with tests} BuildOption(generate_buildrequires): -g test BuildRequires: /usr/bin/git %if %{undefined rhel} BuildRequires: /usr/bin/hg %endif %else # this imports pytest, so we cannot import check it without it BuildOption(check): -e '*.test_api' %endif %global _description %{expand: This package extracts project version information from version control system (VCS) metadata, eliminating the need to manually maintain version numbers in multiple places. It automatically derives versions from VCS tags and commit history.} %description %_description %prep -a # Remove unwanted test dependencies (coverage not needed, # pytest-timeout and pytest-xdist not in RHEL) %pyproject_patch_dependency pytest-cov:ignore %if %{defined rhel} %pyproject_patch_dependency pytest-timeout:ignore %pyproject_patch_dependency pytest-xdist:ignore sed -i -e '/^timeout *=/d' pyproject.toml %endif %package -n python3-vcs-versioning Summary: %{summary} %description -n python3-vcs-versioning %_description %if %{with tests} %check -a %pytest -v %{!?rhel:-n auto} %endif %files -n python3-vcs-versioning -f %{pyproject_files} %doc README.md %{_bindir}/vcs-versioning %changelog ## START: Generated by rpmautospec * Tue Aug 11 2026 Lumir Balhar - 2.2.4-1 - Update to 2.2.4 (rhbz#2512674) * Wed Jul 29 2026 Yaakov Selkowitz - 2.2.2-3 - Avoid pytest-timeout dependency on RHEL * Thu Jul 16 2026 Fedora Release Engineering - 2.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Wed Jul 01 2026 Miro Hrončok - 2.2.2-1 - Update to 2.2.2 - Fixes: rhbz#2494202 * Mon Jun 29 2026 Lumir Balhar - 2.2.1-1 - Update to 2.2.1 (rhbz#2491395) * Wed Jun 03 2026 Python Maint - 1.1.1-2 - Rebuilt for Python 3.15 * Wed Apr 08 2026 Miro Hrončok - 1.1.1-1 - Initial import (rhbz#2453608) ## END: Generated by rpmautospec