From 4a5f01e4554b8d9d33f34c4b4a068bd3851bdbc33a3639b19974bca6e138dc26 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Sun, 26 Dec 2021 20:56:40 +0000 Subject: [PATCH] Accepting request 942651 from home:jayvdb:branches:devel:languages:python:django - Use GitHub tarball to activate tests - Tidy spec - Update to v4.2.1 OBS-URL: https://build.opensuse.org/request/show/942651 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tokenize-rt?expand=0&rev=4 --- python-tokenize-rt.changes | 16 ++++++++++++++++ python-tokenize-rt.spec | 30 +++++++++++++++++------------- tokenize-rt-4.2.1.tar.gz | 3 +++ tokenize_rt-4.0.0.tar.gz | 3 --- 4 files changed, 36 insertions(+), 16 deletions(-) create mode 100644 tokenize-rt-4.2.1.tar.gz delete mode 100644 tokenize_rt-4.0.0.tar.gz diff --git a/python-tokenize-rt.changes b/python-tokenize-rt.changes index 92af72b..bd10493 100644 --- a/python-tokenize-rt.changes +++ b/python-tokenize-rt.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Sun Dec 26 20:33:05 UTC 2021 - John Vandenberg + +- Use GitHub tarball to activate tests +- Tidy spec +- Update to v4.2.1 + * Fix token offsets following multiline string +- from v4.2.0 + * Fix position of empty NEWLINE at no-eol eof + * Remove ?s now that offsets are populated + * Fix UNIMPORTANT_WS offsets for implicit continuation + * Add offsets for added tokens +- from v4.1.0 + * Add link to future-annotations + * Add performance hack from python3.10 + ------------------------------------------------------------------- Sat Jul 4 09:58:26 UTC 2020 - Sebastian Wagner diff --git a/python-tokenize-rt.spec b/python-tokenize-rt.spec index 7ead4d7..dcb9af9 100644 --- a/python-tokenize-rt.spec +++ b/python-tokenize-rt.spec @@ -1,7 +1,7 @@ # -# spec file for package python-tokenize_rt +# spec file for package python-tokenize-rt # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,39 +12,40 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-tokenize-rt -Version: 4.0.0 +Version: 4.2.1 Release: 0 -License: MIT Summary: A wrapper around the stdlib `tokenize` which roundtrips -Url: https://github.com/asottile/tokenize-rt +License: MIT Group: Development/Languages/Python -Source: https://files.pythonhosted.org/packages/source/t/tokenize-rt/tokenize_rt-%{version}.tar.gz -BuildRequires: python-rpm-macros +URL: https://github.com/asottile/tokenize-rt +Source: https://github.com/asottile/tokenize-rt/archive/refs/tags/v{%{version}}.tar.gz#/tokenize-rt-%{version}.tar.gz +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes -Requires(post): update-alternatives -Requires(postun): update-alternatives +BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch - %python_subpackages %description A wrapper around the stdlib `tokenize` which roundtrips. %prep -%setup -q -n tokenize_rt-%{version} +%setup -q -n tokenize-rt-%{version} %build %python_build %install %python_install -%python_clone -a %{buildroot}%{_bindir}/tokenize-rt +%{python_clone -a %{buildroot}%{_bindir}/tokenize-rt} %python_expand %fdupes %{buildroot}%{$python_sitelib} %post @@ -53,6 +54,9 @@ A wrapper around the stdlib `tokenize` which roundtrips. %postun %python_uninstall_alternative tokenize-rt +%check +%pytest + %files %{python_files} %license LICENSE %doc README.md diff --git a/tokenize-rt-4.2.1.tar.gz b/tokenize-rt-4.2.1.tar.gz new file mode 100644 index 0000000..dbbeb5f --- /dev/null +++ b/tokenize-rt-4.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:abcfb18236b709aa2e3dc4ae3597e518e19c701c0560394a27a0f397e7ad3bba +size 7712 diff --git a/tokenize_rt-4.0.0.tar.gz b/tokenize_rt-4.0.0.tar.gz deleted file mode 100644 index 1e46a03..0000000 --- a/tokenize_rt-4.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:07d5f88b6a953612159b160129bcf9425677c8d062b0cb83250968ba803e1c64 -size 5464