From 01b6830b8d1ade6f18d9d566b485d7f6147cc5b32f957c0f6e64131b2d0c9619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 19 Sep 2020 09:50:25 +0000 Subject: [PATCH] Accepting request 835449 from home:jayvdb:branches:devel:languages:python - Activate test suite - Update to 20.8.0 * include dict in iterating context * Fixed reporting some unchanged files as needing modification OBS-URL: https://build.opensuse.org/request/show/835449 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fissix?expand=0&rev=6 --- fissix-20.5.1.tar.gz | 3 --- fissix-20.8.0.tar.gz | 3 +++ python-fissix.changes | 8 ++++++++ python-fissix.spec | 12 ++++++++++-- 4 files changed, 21 insertions(+), 5 deletions(-) delete mode 100644 fissix-20.5.1.tar.gz create mode 100644 fissix-20.8.0.tar.gz diff --git a/fissix-20.5.1.tar.gz b/fissix-20.5.1.tar.gz deleted file mode 100644 index e4f824d..0000000 --- a/fissix-20.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5ed6ca30ff516753eea3a6d337b1788327666c05ececedcff27a760dde5da576 -size 152236 diff --git a/fissix-20.8.0.tar.gz b/fissix-20.8.0.tar.gz new file mode 100644 index 0000000..34a3e45 --- /dev/null +++ b/fissix-20.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6e80a64ac9baff328b8b1b180002eb8b488bf2db0c3c555ef51750ee005571a +size 152701 diff --git a/python-fissix.changes b/python-fissix.changes index ecadc09..b6498eb 100644 --- a/python-fissix.changes +++ b/python-fissix.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Sep 18 15:33:11 UTC 2020 - John Vandenberg + +- Activate test suite +- Update to 20.8.0 + * include dict in iterating context + * Fixed reporting some unchanged files as needing modification + ------------------------------------------------------------------- Wed Jul 1 06:10:52 UTC 2020 - Steve Kowalik diff --git a/python-fissix.spec b/python-fissix.spec index 2e06def..00db827 100644 --- a/python-fissix.spec +++ b/python-fissix.spec @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-fissix -Version: 20.5.1 +Version: 20.8.0 Release: 0 Summary: Backport of lib2to3, with enhancements License: Python-2.0 @@ -27,7 +27,9 @@ URL: https://github.com/jreese/fissix Source: https://files.pythonhosted.org/packages/source/f/fissix/fissix-%{version}.tar.gz BuildRequires: %{python_module appdirs} BuildRequires: %{python_module base >= 3.6} +BuildRequires: %{python_module pytest >= 6.0.1} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module testsuite} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-appdirs @@ -39,13 +41,19 @@ Backport of latest lib2to3, with enhancements. %prep %setup -q -n fissix-%{version} +sed -i '1{/^#!/d}' fissix/pgen2/token.py %build %python_build %install %python_install -%python_expand %fdupes %{buildroot}%{$python_sitelib} +%{python_expand rm -r %{buildroot}%{$python_sitelib}/fissix/tests/ +%fdupes %{buildroot}%{$python_sitelib} +} + +%check +%pytest %files %{python_files} %doc README.md