From 6fdea99e05723f02441d0ad7a12f19ebd392dc624bbacb0fbc627e15779120ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 10 Oct 2020 06:56:40 +0000 Subject: [PATCH] Accepting request 840506 from home:jayvdb:branches:devel:languages:python - Use %pytest - Avoid Python 3.8 specific test cases to support Leap 15.x - Update to v202009.1044 OBS-URL: https://build.opensuse.org/request/show/840506 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lib3to6?expand=0&rev=8 --- lib3to6-202002.32.tar.gz | 3 --- lib3to6-202009.1044.tar.gz | 3 +++ python-lib3to6.changes | 19 +++++++++++++++++++ python-lib3to6.spec | 8 +++++--- 4 files changed, 27 insertions(+), 6 deletions(-) delete mode 100644 lib3to6-202002.32.tar.gz create mode 100644 lib3to6-202009.1044.tar.gz diff --git a/lib3to6-202002.32.tar.gz b/lib3to6-202002.32.tar.gz deleted file mode 100644 index d9218c6..0000000 --- a/lib3to6-202002.32.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0527f60d0a9a22c605a4df70e04ab5b4fb943a2150067d5fe4cb08fa4f591b48 -size 42359 diff --git a/lib3to6-202009.1044.tar.gz b/lib3to6-202009.1044.tar.gz new file mode 100644 index 0000000..e8c05fc --- /dev/null +++ b/lib3to6-202009.1044.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2f88bea589bdcc82ffa60a9b56ae8e0a65b3c9be738c248086075605fd0fa236 +size 70231 diff --git a/python-lib3to6.changes b/python-lib3to6.changes index ca8b805..a4ddfd3 100644 --- a/python-lib3to6.changes +++ b/python-lib3to6.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Sat Oct 10 04:23:46 UTC 2020 - John Vandenberg + +- Use %pytest +- Avoid Python 3.8 specific test cases to support Leap 15.x +- Update to v202009.1044 + * per-file opt-in/opt-out `# lib3to6: [enabled|disabled]` +- from v202006.1041 + * Add detection of invalid imports and point to available backports + Use `install_requires` option to whitelist installed backports + * Checkers produce better error messages + * Colouring of diffs when using `lib3to6` cli command + * Checker for `yield from` syntax depending on target version + * Checker for `@` operator depending on target version + * Fix `--target-version` argument is ignored + * Remove `from __future__ import X` depending on target version + * Convert Forward Reference Annotations to strings + * Don't apply keyword only args fixer for target version 3.0+ + ------------------------------------------------------------------- Mon May 25 06:50:36 UTC 2020 - Petr Gajdos diff --git a/python-lib3to6.spec b/python-lib3to6.spec index 119b9ba..5a98256 100644 --- a/python-lib3to6.spec +++ b/python-lib3to6.spec @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-lib3to6 -Version: 202002.32 +Version: 202009.1044 Release: 0 Summary: Module to compile Python 3.6+ code to Python 2.7+ License: MIT @@ -32,6 +32,7 @@ Requires: python-astor Requires: python-click Requires: python-pathlib2 Requires: python-typing +Requires: python-wheel Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch @@ -39,7 +40,7 @@ BuildArch: noarch BuildRequires: %{python_module astor} BuildRequires: %{python_module click} BuildRequires: %{python_module pathlib2} -BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module typing} # /SECTION %python_subpackages @@ -61,7 +62,8 @@ sed -i '1{/^#!/d}' src/lib3to6/__main__.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py pytest +# Avoid Python 3.8 specific test cases to support Leap 15.x +%pytest -k 'not (fixture7 or fixture17 or fixture53 or fixture54 or fixture55 or fixture56 or fixture57)' %post %python_install_alternative lib3to6