forked from pool/python-hatchling
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
This commit is contained in:
commit
57fefcc6e4
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
hatchling-1.3.0.tar.gz
Normal file
3
hatchling-1.3.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1401d45d3dd6a5910f64d539acaa943486d5e8b7dda1a97f2b0040fdddc5b85e
|
||||
size 45480
|
4
python-hatchling.changes
Normal file
4
python-hatchling.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu May 26 16:38:22 UTC 2022 - Benoît Monin <benoit.monin@gmx.fr>
|
||||
|
||||
- creation of the package with version 1.3.0
|
78
python-hatchling.spec
Normal file
78
python-hatchling.spec
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user