summaryrefslogtreecommitdiff
path: root/python-hatch-vcs.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-26 11:34:51 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-26 11:34:51 +0000
commit060462ebc1bc30ca3c910aff80f9c6f026642476 (patch)
tree7fe4a99e036637d1a402f211d30812150be2dea9 /python-hatch-vcs.spec
parent68f9f9d5f4a33aebb7e49415ff05e5f67838ca79 (diff)
automatic import of python-hatch-vcs
Diffstat (limited to 'python-hatch-vcs.spec')
-rw-r--r--python-hatch-vcs.spec69
1 files changed, 69 insertions, 0 deletions
diff --git a/python-hatch-vcs.spec b/python-hatch-vcs.spec
new file mode 100644
index 0000000..1209fdf
--- /dev/null
+++ b/python-hatch-vcs.spec
@@ -0,0 +1,69 @@
+%global _empty_manifest_terminate_build 0
+%global common_description \
+Hatch plugin for versioning with your preferred VCS
+
+Name: python-hatch-vcs
+Version: 0.3.0
+Release: 3
+Summary: Hatch plugin for versioning with your preferred VCS
+
+License: MIT
+URL: https://pypi.org/project/hatch-vcs
+Source0: https://files.pythonhosted.org/packages/04/33/b68d68e532392d938472d16a03e4ce0ccd749ea31b42d18f8baa6547cbfd/hatch_vcs-0.3.0.tar.gz
+Patch0: Fix-setuptools_scm-7.1.0-test-incompatible.patch
+BuildArch: noarch
+
+# Base build requires
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pbr
+BuildRequires: python3-pip
+BuildRequires: python3-wheel
+# General build requires
+BuildRequires: python3-hatchling
+BuildRequires: python3-setuptools-scm
+# General requires
+Requires: python3-hatchling
+Requires: python3-setuptools-scm
+%description
+%{common_description}
+
+
+%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}
+
+%prep
+%autosetup -n hatch_vcs-%{version} -p1
+
+%build
+%pyproject_build
+
+%install
+%pyproject_install hatch_vcs==%{version}
+
+%check
+%{__python3} -m pytest
+
+%files -n python3-hatch-vcs
+%license LICENSE.txt
+%doc README.md
+%{python3_sitelib}/hatch_vcs
+%{python3_sitelib}/hatch_vcs-%{version}*-info
+
+%changelog
+* Thu Aug 22 2024 tzing <zhengting13@huawei.com> - 0.3.0-3
+- remove redundant require
+
+* Fri Sep 01 2023 wulei <wu_lei@hoperun.com> - 0.3.0-2
+- Fix setuptools_scm 7.1.0 test incompatible
+
+* Thu Apr 13 2023 caodongxia <caodongxia@h-partners.com> - 0.3.0-1
+- Package init