From ee748dc055436f63733cfd2ad8d2a7627cae65d631ea10978a7614bc2e02cac2 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 13 Jun 2025 05:42:07 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-asttokens?expand=0&rev=24 --- python-asttokens.changes | 5 +++++ python-asttokens.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/python-asttokens.changes b/python-asttokens.changes index 87a7b70..f7c2c62 100644 --- a/python-asttokens.changes +++ b/python-asttokens.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 13 05:35:07 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Wed Apr 30 12:07:17 UTC 2025 - Daniel Garcia diff --git a/python-asttokens.spec b/python-asttokens.spec index 8623a0d..2fa8a77 100644 --- a/python-asttokens.spec +++ b/python-asttokens.spec @@ -30,6 +30,7 @@ URL: https://github.com/gristlabs/asttokens Source: https://files.pythonhosted.org/packages/source/a/asttokens/asttokens-%{version}.tar.gz BuildRequires: %{python_module astroid} BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools >= 44} BuildRequires: %{python_module setuptools_scm >= 3.4.3} @@ -48,11 +49,11 @@ Annotate AST trees with source code positions %build export LC_ALL=en_US.utf8 -%python_build +%pyproject_wheel %install export LC_ALL=en_US.utf8 -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -64,7 +65,7 @@ donttest+=" or test_deep_recursion" %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/asttokens-%{version}-*-info +%{python_sitelib}/asttokens-%{version}.dist-info %{python_sitelib}/asttokens %changelog