# # spec file for package python-pyproject-hooks # # Copyright (c) 2024 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/ # %{?sle15_python_module_pythons} Name: python-pyproject-hooks Version: 1.2.0 Release: 1.5 Summary: Wrappers to call pyproject.toml-based build backend hooks License: MIT URL: https://github.com/pypa/pyproject-hooks Source: https://github.com/pypa/pyproject-hooks/archive/refs/tags/v%{version}.tar.gz#/pyproject_hooks-%{version}-gh.tar.gz BuildRequires: %{python_module devel >= 3.7} BuildRequires: %{python_module flit-core} BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module testpath} BuildRequires: fdupes BuildRequires: python-rpm-macros %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 pyproject-hooks-%{version} %build %pyproject_wheel %install %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check # https://github.com/pypa/pyproject-hooks/issues/203 %pytest -k "not test_setup" %files %{python_files} %{python_sitelib}/pyproject_hooks %{python_sitelib}/pyproject_hooks-%{version}.dist-info %changelog * Mon Oct 28 2024 Dirk Müller <dmueller@suse.com> - update to 1.2.0: * Improve interoperability with ``importlib.metadata``, fixing a regression in setuptools compatibility in 1.1 (#199). * Clean up the ``_in_process`` directory inside the package from ``sys.path`` before imporing the backend (#193). * Sun Jun 30 2024 Dirk Müller <dmueller@suse.com> - skip test that fails with setuptools 70.1 (gh#pypa/pyproject-hooks#203) * Sat Jun 29 2024 Dirk Müller <dmueller@suse.com> - update to 1.1.0: * Add type annotations to the public API. * More careful handling of the backend-path key from pyproject.toml. Previous versions would load the backend and then check that it was loaded from the specified path; the new version only loads it from the specified path. The BackendInvalid exception is now a synonym for :exc:`BackendUnavailable`, and code should move to using the latter name. * Fri Apr 21 2023 Dirk Müller <dmueller@suse.com> - add sle15_python_module_pythons (jsc#PED-68) * Thu Apr 13 2023 Matej Cepl <mcepl@suse.com> - Make calling of %%{sle15modernpython} optional. * Sun Dec 4 2022 Torsten Gruner <simmphonie@opensuse.org> - Initial release 1.0.0