From 4115f6f4f0dfa846d955e24934c8a8ab3fea5ee3e47b4644b48f079a0052f998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 22:13:42 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-pyproject-hooks revision c39d16a837bebc764c0e0cebb912874a --- .gitattributes | 23 ++++++++++++ pyproject_hooks-1.0.0.tar.gz | 3 ++ python-pyproject-hooks.changes | 15 ++++++++ python-pyproject-hooks.spec | 67 ++++++++++++++++++++++++++++++++++ 4 files changed, 108 insertions(+) create mode 100644 .gitattributes create mode 100644 pyproject_hooks-1.0.0.tar.gz create mode 100644 python-pyproject-hooks.changes create mode 100644 python-pyproject-hooks.spec 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/pyproject_hooks-1.0.0.tar.gz b/pyproject_hooks-1.0.0.tar.gz new file mode 100644 index 0000000..b960d34 --- /dev/null +++ b/pyproject_hooks-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f271b298b97f5955d53fb12b72c1fb1948c22c1a6b70b315c54cedaca0264ef5 +size 16901 diff --git a/python-pyproject-hooks.changes b/python-pyproject-hooks.changes new file mode 100644 index 0000000..9df548c --- /dev/null +++ b/python-pyproject-hooks.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Fri Apr 21 12:31:09 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:43:52 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Sun Dec 4 16:43:25 UTC 2022 - Torsten Gruner + +- Initial release 1.0.0 + diff --git a/python-pyproject-hooks.spec b/python-pyproject-hooks.spec new file mode 100644 index 0000000..ecc416e --- /dev/null +++ b/python-pyproject-hooks.spec @@ -0,0 +1,67 @@ +# +# spec file for package python-pyproject-hooks +# +# 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 fname pyproject_hooks +%{?sle15_python_module_pythons} +Name: python-pyproject-hooks +Version: 1.0.0 +Release: 0 +Summary: Wrappers to call pyproject.toml-based build backend hooks +License: MIT +URL: https://github.com/pypa/pyproject-hooks +Source: https://files.pythonhosted.org/packages/source/p/pyproject_hooks/%{fname}-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module flit-core} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module testpath} +BuildRequires: %{python_module devel >= 3.7} +BuildRequires: fdupes +%if 0%{?python_version_nodots} < 311 +Requires: python-tomli >= 1.1.0 +%endif +BuildArch: noarch +%python_subpackages + +%description +This is a low-level library for calling build-backends in ``pyproject.toml``-based project. +It provides the basic functionality to help write tooling that generates distribution files from Python projects. + +If you want a tool that builds Python packages, you'll want to use https://github.com/pypa/build instead. +This is an underlying piece for `pip`, `build` and other "build frontends" use to call "build backends" within them. + +Note: The ``pep517`` project has been replaced by this project (low level) and the ``build`` project (high level). + +%prep +%setup -q -n %{fname}-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%{python_sitelib}/pyproject_hooks +%{python_sitelib}/pyproject_hooks-%{version}.dist-info + +%changelog