Blob Blame History Raw
# Let’s try to build this as early as we can, since it’s a dependency for
# some important libraries, such as python-platformdirs.
%bcond_with bootstrap
%if %{without bootstrap}
%bcond_without tests
%bcond_with tests

Name:           python-hatch-vcs
Version:        0.3.0
Release:        %autorelease
Summary:        Hatch plugin for versioning with your preferred VCS

License:        MIT
Source0:        %{pypi_source hatch_vcs}

BuildArch:      noarch

# Work with setuptools_scm 7.1 (fix #25)
Patch:          %{url}/pull/26.patch

BuildRequires:  python3-devel

%if %{with tests}
BuildRequires:  python3dist(pytest)
BuildRequires:  git-core

%global common_description %{expand:
This provides a plugin for Hatch that uses your preferred version control
system (like Git) to determine project versions.}

%description %{common_description}

%package -n python3-hatch-vcs
Summary:        %{summary}

%description -n python3-hatch-vcs %{common_description}

%autosetup -n hatch_vcs-%{version} -p1



%pyproject_save_files hatch_vcs

%if %{with tests}

%files -n python3-hatch-vcs -f %{pyproject_files}