commit 57fefcc6e4fb424c63f484148a00f3d36b819c6aeaa5bcb07eb1ad03b69bf2d9 Author: Markéta Machová Date: Sat May 28 07:26:43 2022 +0000 Accepting request 979509 from home:benoit_monin This is the extensible, standards compliant build backend used by Hatch. I am submitting it to d:l:p, it will be needed by python packages using it (future versions of tox for example). OBS-URL: https://build.opensuse.org/request/show/979509 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatchling?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/hatchling-1.3.0.tar.gz b/hatchling-1.3.0.tar.gz new file mode 100644 index 0000000..ffd2df8 --- /dev/null +++ b/hatchling-1.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1401d45d3dd6a5910f64d539acaa943486d5e8b7dda1a97f2b0040fdddc5b85e +size 45480 diff --git a/python-hatchling.changes b/python-hatchling.changes new file mode 100644 index 0000000..13aeeb0 --- /dev/null +++ b/python-hatchling.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu May 26 16:38:22 UTC 2022 - Benoît Monin + +- creation of the package with version 1.3.0 diff --git a/python-hatchling.spec b/python-hatchling.spec new file mode 100644 index 0000000..f242b23 --- /dev/null +++ b/python-hatchling.spec @@ -0,0 +1,78 @@ +# +# spec file for package python-hatchling +# +# Copyright (c) 2022 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/ +# + + +%define skip_python2 1 +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-hatchling +Version: 1.3.0 +Release: 0 +Summary: Build backend used by Hatch +License: MIT +URL: https://hatch.pypa.io/latest/ +Source0: https://files.pythonhosted.org/packages/source/h/hatchling/hatchling-%{version}.tar.gz +BuildRequires: %{python_module editables >= 0.3} +BuildRequires: %{python_module importlib-metadata if %python-base < 3.8} +BuildRequires: %{python_module packaging >= 21.3} +BuildRequires: %{python_module pathspec >= 0.9} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pluggy >= 1.0.0} +BuildRequires: %{python_module tomli >= 1.2.2 if %python-base < 3.11} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-editables >= 0.3 +Requires: python-packaging >= 21.3 +Requires: python-pathspec >= 0.9 +Requires: python-pluggy >= 1.0.0 +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch +%if 0%{?python_version_nodots} < 38 +Requires: python-importlib-metadata +%endif +%if 0%{?python_version_nodots} < 311 +Requires: python-tomli >= 1.2.2 +%endif +%python_subpackages + +%description +This is the extensible, standards compliant build backend used by Hatch. + +%prep +%autosetup -n hatchling-%{version} -p1 + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_clone -a %{buildroot}%{_bindir}/hatchling + +%post +%python_install_alternative hatchling + +%postun +%python_uninstall_alternative hatchling + +%files %{python_files} +%license LICENSE.txt +%{python_sitelib}/hatchling +%{python_sitelib}/hatchling-%{version}.dist-info +%python_alternative %{_bindir}/hatchling + +%changelog