From 851261885dce4553b77920721f4cdda821285c54f3a6876b34e1a8a94ab415ea Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 26 Mar 2019 18:33:31 +0000 Subject: [PATCH] Accepting request 688863 from home:mcepl:branches:devel:languages:python - Upgrade to 1.3.0 (from https://github.com/heuer/pyqrcode/): - Added support for meCards etc. contributed by Riccardo Metere - Skip detecting content type if constructor mode is given to constructor. Contributed by Martijn van Rheenen. - Moved tests from nose to pytest since nose is deprecated - Updated test environment: Added PyPy, PyPy3 and Python 3.6 - QRCode.get_png_size() is deprecated, use QRCode.symbol_size(). The latter returns a (width, height) tuple, not an integer. - Deprecated QRCode.png_as_base64_str(), use QRCode.png_data_uri() which returns a valid URI instead of a Base64 encoded string - Faster PNG generation - Added CLI - Added term() method to QRCode which prints the QR Code to the terminal. This works with Windows and Unix. - Deprecated QRCode.terminal() in favor of QRCode.term() - Added "scale" parameter to QRCode.text - Initial packaging of the version 1.2.1 OBS-URL: https://build.opensuse.org/request/show/688863 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyQRCode?expand=0&rev=4 --- python-PyQRCode.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python-PyQRCode.spec b/python-PyQRCode.spec index 5d4e34e..8270f32 100644 --- a/python-PyQRCode.spec +++ b/python-PyQRCode.spec @@ -28,10 +28,11 @@ 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 -BuildRequires: %{python_module Sphinx} -BuildRequires: %{python_module pypng} +BuildRequires: %{python_module devel} BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pypng} +BuildRequires: %{python_module Sphinx} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -46,6 +47,7 @@ The PyQRCode module is a QR code generator that is simple to use and written in %setup -q -n pyqrcode-%{version} sed -i -e '1{\@^#!/usr/bin/env python@d}' pyqrcode/{cli,qrspecial}.py + %build %python_build python3 setup.py build_sphinx -v