From 1f25a47a98adca0ae0f3c3a7f9cf4ab48c85813d84bbf7a20d66337e38c29db8 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 29 Jun 2024 13:03:21 +0000 Subject: [PATCH 1/3] - 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. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyproject-hooks?expand=0&rev=5 --- pyproject_hooks-1.0.0.tar.gz | 3 --- pyproject_hooks-1.1.0-gh.tar.gz | 3 +++ python-pyproject-hooks.changes | 11 +++++++++++ python-pyproject-hooks.spec | 21 +++++++++++---------- 4 files changed, 25 insertions(+), 13 deletions(-) delete mode 100644 pyproject_hooks-1.0.0.tar.gz create mode 100644 pyproject_hooks-1.1.0-gh.tar.gz diff --git a/pyproject_hooks-1.0.0.tar.gz b/pyproject_hooks-1.0.0.tar.gz deleted file mode 100644 index b960d34..0000000 --- a/pyproject_hooks-1.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f271b298b97f5955d53fb12b72c1fb1948c22c1a6b70b315c54cedaca0264ef5 -size 16901 diff --git a/pyproject_hooks-1.1.0-gh.tar.gz b/pyproject_hooks-1.1.0-gh.tar.gz new file mode 100644 index 0000000..42df8af --- /dev/null +++ b/pyproject_hooks-1.1.0-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1cbbabcd93ea1ac50cca7f23e5b640904684ae6c85003c6f7cf02b598c33f28f +size 18774 diff --git a/python-pyproject-hooks.changes b/python-pyproject-hooks.changes index 9df548c..2209814 100644 --- a/python-pyproject-hooks.changes +++ b/python-pyproject-hooks.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Sat Jun 29 12:29:33 UTC 2024 - Dirk Müller + +- 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 12:31:09 UTC 2023 - Dirk Müller diff --git a/python-pyproject-hooks.spec b/python-pyproject-hooks.spec index ecc416e..572add3 100644 --- a/python-pyproject-hooks.spec +++ b/python-pyproject-hooks.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyproject-hooks # -# Copyright (c) 2022 SUSE LLC +# 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 @@ -15,23 +15,24 @@ # 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 +Version: 1.1.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} +Source: https://github.com/pypa/pyproject-hooks/archive/refs/tags/v%{version}.tar.gz#/%{fname}-%{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 setuptools} +BuildRequires: %{python_module testpath} BuildRequires: fdupes +BuildRequires: python-rpm-macros %if 0%{?python_version_nodots} < 311 Requires: python-tomli >= 1.1.0 %endif @@ -48,7 +49,7 @@ This is an underlying piece for `pip`, `build` and other "build frontends" use t Note: The ``pep517`` project has been replaced by this project (low level) and the ``build`` project (high level). %prep -%setup -q -n %{fname}-%{version} +%setup -q -n pyproject-hooks-%{version} %build %pyproject_wheel From 3ad6331aaabda92fd0b9bab0932241277222f82c0eb59ff51b644acc937dc886 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 30 Jun 2024 19:02:03 +0000 Subject: [PATCH 2/3] - skip test that fails with setuptools 70.1 (gh#pypa/pyproject-hooks#203) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyproject-hooks?expand=0&rev=6 --- python-pyproject-hooks.changes | 6 ++++++ python-pyproject-hooks.spec | 7 +++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/python-pyproject-hooks.changes b/python-pyproject-hooks.changes index 2209814..fec3720 100644 --- a/python-pyproject-hooks.changes +++ b/python-pyproject-hooks.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Jun 30 18:58:23 UTC 2024 - Dirk Müller + +- skip test that fails with setuptools 70.1 + (gh#pypa/pyproject-hooks#203) + ------------------------------------------------------------------- Sat Jun 29 12:29:33 UTC 2024 - Dirk Müller diff --git a/python-pyproject-hooks.spec b/python-pyproject-hooks.spec index 572add3..6be4d31 100644 --- a/python-pyproject-hooks.spec +++ b/python-pyproject-hooks.spec @@ -16,7 +16,6 @@ # -%define fname pyproject_hooks %{?sle15_python_module_pythons} Name: python-pyproject-hooks Version: 1.1.0 @@ -24,12 +23,11 @@ Release: 0 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#/%{fname}-%{version}-gh.tar.gz +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 setuptools} BuildRequires: %{python_module testpath} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -59,7 +57,8 @@ Note: The ``pep517`` project has been replaced by this project (low level) and t %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +# https://github.com/pypa/pyproject-hooks/issues/203 +%pytest -k "not test_setup" %files %{python_files} %{python_sitelib}/pyproject_hooks From ff4a8ab8fb9d58ea9c70003e048f403cc5190a5b34b4f90d3ca493b0705229c0 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 30 Jun 2024 19:02:50 +0000 Subject: [PATCH 3/3] * 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. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyproject-hooks?expand=0&rev=7 --- python-pyproject-hooks.changes | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/python-pyproject-hooks.changes b/python-pyproject-hooks.changes index fec3720..f087f56 100644 --- a/python-pyproject-hooks.changes +++ b/python-pyproject-hooks.changes @@ -9,11 +9,13 @@ Sat Jun 29 12:29:33 UTC 2024 - Dirk Müller - 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. + * 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 12:31:09 UTC 2023 - Dirk Müller