From 16a38a0bc71527e7760a9ff79eebf9ecf4f78a38e0084d3f87a253a20757a271 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Tue, 10 Jan 2023 10:24:31 +0000 Subject: [PATCH] - Skip same tests for python-3.11 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astor?expand=0&rev=27 --- python-astor.changes | 5 +++++ python-astor.spec | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/python-astor.changes b/python-astor.changes index 4d17ced..0615ccf 100644 --- a/python-astor.changes +++ b/python-astor.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 10 09:47:36 UTC 2023 - Daniel Garcia + +- Skip same tests for python-3.11 + ------------------------------------------------------------------- Mon Sep 12 11:52:11 UTC 2022 - Markéta Machová diff --git a/python-astor.spec b/python-astor.spec index 8dd7084..b749f21 100644 --- a/python-astor.spec +++ b/python-astor.spec @@ -1,7 +1,7 @@ # # spec file for package python-astor # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-astor Version: 0.8.1 @@ -66,8 +65,7 @@ There are some other similar libraries, but astor focuses on the following areas - Enjoy easy access to parent node(s) for tree rewriting %prep -%setup -q -n astor-%{version} -%patch0 -p1 +%autosetup -p1 -n astor-%{version} %build # ugly fix for the use of /usr/bin/env @@ -87,11 +85,13 @@ python38_donttest="test_huge_int" # https://github.com/berkerpeksag/astor/issues/196 python39_donttest="${python38_donttest} or test_convert_stdlib" python310_donttest=${python39_donttest} +python311_donttest=${python310_donttest} %pytest tests ${$python_donttest:+ -k "not (${$python_donttest})"} %files %{python_files} %doc AUTHORS README.rst docs/*.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/astor +%{python_sitelib}/astor-%{version}*-info %changelog