From c85dfd9f3fb651510af9faea6616126cf992ad69b398597d649e247c9f6aaba3 Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Tue, 15 Jul 2025 10:56:20 +0000 Subject: [PATCH] Accepting request 1293404 from home:glaubitz:branches:devel:languages:python:aws - Limit Python files matched in %files section - Switch build system from setuptools to pyproject.toml * Add python-pip and python-wheel to BuildRequires * Replace %python_build with %pyproject_wheel * Replace %python_install with %pyproject_install OBS-URL: https://build.opensuse.org/request/show/1293404 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-jschema-to-python?expand=0&rev=5 --- python-jschema-to-python.changes | 9 +++++++++ python-jschema-to-python.spec | 17 ++++++++++------- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/python-jschema-to-python.changes b/python-jschema-to-python.changes index 632b15f..1a5b062 100644 --- a/python-jschema-to-python.changes +++ b/python-jschema-to-python.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue Jul 15 10:40:50 UTC 2025 - John Paul Adrian Glaubitz + +- Limit Python files matched in %files section +- Switch build system from setuptools to pyproject.toml + * Add python-pip and python-wheel to BuildRequires + * Replace %python_build with %pyproject_wheel + * Replace %python_install with %pyproject_install + ------------------------------------------------------------------- Tue Jun 13 11:03:00 UTC 2023 - ecsos diff --git a/python-jschema-to-python.spec b/python-jschema-to-python.spec index 73bf1c6..6657cab 100644 --- a/python-jschema-to-python.spec +++ b/python-jschema-to-python.spec @@ -1,7 +1,7 @@ # -# spec file for package python-jschema_to_python +# spec file for package python-jschema-to-python # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,9 +24,11 @@ Summary: Generate source code for Python classes from a JSON schema License: MIT URL: https://github.com/microsoft/jschema-to-python Source: https://files.pythonhosted.org/packages/source/j/jschema-to-python/jschema_to_python-%{version}.tar.gz -BuildRequires: python-rpm-macros -BuildRequires: %{python_module setuptools} BuildRequires: %{python_module pbr} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module attrs} BuildRequires: %{python_module jsonpickle} @@ -47,16 +49,17 @@ Generate source code for Python classes from a JSON schema. %setup -q -n jschema_to_python-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest tests/ %files %{python_files} -%{python_sitelib}/* +%{python_sitelib}/jschema_to_python +%{python_sitelib}/jschema_to_python-%{version}.dist-info %changelog