From e0b2cc8ea23f9bd7f6e0c135098cef64203250dce6db5b3324fba651242ceb60 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 9 Dec 2021 00:25:56 +0000 Subject: [PATCH 1/2] Accepting request 936477 from home:pgajdos:python - do not require pytest-runner for build, it is not needed OBS-URL: https://build.opensuse.org/request/show/936477 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyQRCode?expand=0&rev=13 --- python-PyQRCode.changes | 5 +++++ python-PyQRCode.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/python-PyQRCode.changes b/python-PyQRCode.changes index a498cbe..20cffa8 100644 --- a/python-PyQRCode.changes +++ b/python-PyQRCode.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Dec 8 12:10:37 UTC 2021 - pgajdos@suse.com + +- do not require pytest-runner for build, it is not needed + ------------------------------------------------------------------- Thu May 14 11:29:17 UTC 2020 - Antonio Larrosa diff --git a/python-PyQRCode.spec b/python-PyQRCode.spec index 62d5270..2f47a28 100644 --- a/python-PyQRCode.spec +++ b/python-PyQRCode.spec @@ -1,7 +1,7 @@ # # spec file for package python-PyQRCode # -# Copyright (c) 2020 SUSE LLC +# 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 @@ -30,12 +30,12 @@ URL: https://github.com/mnooner256/pyqrcode Source: https://github.com/heuer/pyqrcode/archive/%{version}.tar.gz BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module pypng} -BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch %python_subpackages From d319fa1f9852730dcf0b5763c6f3350bbf5479cc8151bb10e56a6f0d8fa76456 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 9 Dec 2021 16:14:20 +0000 Subject: [PATCH 2/2] - Update to 1.3.6: - Code improvements / refactorings - Optimized generation of numerical QR Codes - MUCH faster PNG writing (approx. twice as fast) - Don't raise a UnicodeError if the user provided binary data and sets the mode explicitly to 'binary'. Fixed by Mathieu (PR #13) - The builder raises more specific exceptions like VersionError, MaskError, DataOverflowError. This change is backwards compatible since all exceptions are inherited from ValueError. - Added "designator" property to QRCode. This encodes the version number and error correction level, i.e. "1-H" - Fixed alphanumeric encoding. The bug was introduced in the 1.3.4 release - Added more test cases - Added CLI docs - (Deprecated) QRCode.terminal() did not work. Fixed. - Initial release of PyQRCode NG (PyQRCode Next Generation) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyQRCode?expand=0&rev=14 --- 1.3.0.tar.gz | 3 --- pyqrcodeNG-1.3.6.tar.gz | 3 +++ python-PyQRCode.changes | 23 +++++++++++++++++++++++ python-PyQRCode.spec | 9 +++++---- 4 files changed, 31 insertions(+), 7 deletions(-) delete mode 100644 1.3.0.tar.gz create mode 100644 pyqrcodeNG-1.3.6.tar.gz diff --git a/1.3.0.tar.gz b/1.3.0.tar.gz deleted file mode 100644 index fdb8d12..0000000 --- a/1.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3097ba5e6ac94cd8b07c413b88aad0f76a28d4d2cf891025fa015d9d5db0e1f1 -size 75539 diff --git a/pyqrcodeNG-1.3.6.tar.gz b/pyqrcodeNG-1.3.6.tar.gz new file mode 100644 index 0000000..eb99752 --- /dev/null +++ b/pyqrcodeNG-1.3.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eaf762c87912a69e95e91a28870015c894f4fbe64b4a06b10ac8ba5ff36b78c8 +size 74077 diff --git a/python-PyQRCode.changes b/python-PyQRCode.changes index 20cffa8..913594e 100644 --- a/python-PyQRCode.changes +++ b/python-PyQRCode.changes @@ -1,3 +1,26 @@ +------------------------------------------------------------------- +Thu Dec 9 16:04:19 UTC 2021 - Matej Cepl + +- Update to 1.3.6: + - Code improvements / refactorings + - Optimized generation of numerical QR Codes + - MUCH faster PNG writing (approx. twice as fast) + - Don't raise a UnicodeError if the user provided binary data + and sets the mode explicitly to 'binary'. Fixed by Mathieu + (PR #13) + - The builder raises more specific exceptions like + VersionError, MaskError, DataOverflowError. This change is + backwards compatible since all exceptions are inherited from + ValueError. + - Added "designator" property to QRCode. This encodes the + version number and error correction level, i.e. "1-H" + - Fixed alphanumeric encoding. The bug was introduced in the + 1.3.4 release + - Added more test cases + - Added CLI docs + - (Deprecated) QRCode.terminal() did not work. Fixed. + - Initial release of PyQRCode NG (PyQRCode Next Generation) + ------------------------------------------------------------------- Wed Dec 8 12:10:37 UTC 2021 - pgajdos@suse.com diff --git a/python-PyQRCode.spec b/python-PyQRCode.spec index 2f47a28..d805a96 100644 --- a/python-PyQRCode.spec +++ b/python-PyQRCode.spec @@ -20,14 +20,14 @@ %define skip_python2 1 %define modname PyQRCode Name: python-PyQRCode -Version: 1.3.0 +Version: 1.3.6 Release: 0 Summary: Python 3 module to generate QR Codes License: MIT URL: https://github.com/mnooner256/pyqrcode # This is unofficial fork with some additional fixes, the canonical # upstream repository is dead. -Source: https://github.com/heuer/pyqrcode/archive/%{version}.tar.gz +Source: https://github.com/pyqrcode/pyqrcodeNG/archive/refs/tags/%{version}.tar.gz#/pyqrcodeNG-%{version}.tar.gz BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module pypng} BuildRequires: %{python_module pytest} @@ -43,8 +43,9 @@ BuildArch: noarch The PyQRCode module is a QR code generator that is simple to use and written in pure python. The module can automates most of the building process for creating QR codes. Most codes can be created using only two lines of code! %prep -%setup -q -n pyqrcodeNG-%{version} -sed -i -e '1{\@^#!%{_bindir}/env python@d}' pyqrcode/{cli,qrspecial}.py +%autosetup -p1 -n pyqrcodeNG-%{version} + +sed -i -e '1{\@^#!%{_bindir}/env python@d}' pyqrcodeng/{cli,qrspecial}.py %build %python_build