Revisions of python-qrcode
buildservice-autocommit
accepted
request 1144106
from
Steve Kowalik (StevenK)
(revision 27)
baserev update by copy to link target
Steve Kowalik (StevenK)
committed
(revision 26)
- Add missing Requires on pypng. - Switch to pyproject macros. - Stop using greedy globs in %files.
buildservice-autocommit
accepted
request 1143969
from
Dirk Mueller (dirkmueller)
(revision 25)
baserev update by copy to link target
Dirk Mueller (dirkmueller)
committed
(revision 24)
- update to 7.4.1: * Restructure the factory drawers, allowing different shapes in SVG image factories as well. * Add a --factory-drawer option to the qr console script. * Optimize the output for the SVGPathImage factory (more than 30% reduction in file sizes). * Add a pypng image factory as a pure Python PNG solution. If pillow is not installed, then this becomes the default factory. * The pymaging image factory has been removed, but its factory shortcut and the actual PymagingImage factory class now just link to the PyPNGImage factory. - Fix console_script.py missing +x
buildservice-autocommit
accepted
request 1122209
from
Markéta Machová (mcalabkova)
(revision 23)
baserev update by copy to link target
Markéta Machová (mcalabkova)
accepted
request 1122201
from
Andreas Schneider (gladiac)
(revision 22)
- Use sle15_python_module_pythons
buildservice-autocommit
accepted
request 967910
from
Matej Cepl (mcepl)
(revision 21)
baserev update by copy to link target
Matej Cepl (mcepl)
accepted
request 967727
from
Petr Gajdos (pgajdos)
(revision 20)
- python-mock is not required for build
Matej Cepl (mcepl)
accepted
request 927508
from
Axel Braun (DocB)
(revision 19)
- version 7.3.1 * Improvements for embeded image. * Skip color mask if QR is black and white * Add Styled PIL image factory, allowing different color masks and shapes in QR codes * Small performance inprovement * Add check for border size parameter * Add --ascii parameter to command line interface allowing to output ascii when stdout is piped * Add --output parameter to command line interface to specify output file * Accept RGB tuples in fill_color and back_color * Add to_string method to SVG images * Replace inline styles with SVG attributes to avoid CSP issues * Add Python3.10 to supported versions * Drop Python < 3.6 support.
buildservice-autocommit
accepted
request 807267
from
Tomáš Chvátal (scarabeus_iv)
(revision 18)
baserev update by copy to link target
Tomáš Chvátal (scarabeus_iv)
accepted
request 807227
from
Petr Gajdos (pgajdos)
(revision 17)
submit
buildservice-autocommit
accepted
request 689261
from
Tomáš Chvátal (scarabeus_iv)
(revision 16)
baserev update by copy to link target
Tomáš Chvátal (scarabeus_iv)
accepted
request 689092
from
Petr Gajdos (pgajdos)
(revision 15)
- version update to 6.1 * Fix short chunks of data not being optimized to the correct mode. * Tests fixed for Python 3 * Fix optimize length being ignored in ``QRCode.add_data``. * Better calculation of the best mask pattern and related optimizations.
buildservice-autocommit
accepted
request 506507
from
Jan Matejek (matejcik)
(revision 14)
baserev update by copy to link target
Jan Matejek (matejcik)
committed
(revision 13)
- pass -s to pytest, to work around bad interaction with older pytest
buildservice-autocommit
accepted
request 501164
from
Jan Matejek (matejcik)
(revision 12)
baserev update by copy to link target
Jan Matejek (matejcik)
committed
(revision 11)
- convert to singlespec - make binary python3-only - enable tests - add proper requirements (fixes boo#1040540) - update to 5.3 * better support for tty output in python3 * --error-correction option * fix incomplete block table for QR version 15 * fix BaseImage.get_image
buildservice-autocommit
accepted
request 325451
from
Todd R (TheBlackCat)
(revision 10)
baserev update by copy to link target
Todd R (TheBlackCat)
accepted
request 325414
from
Bruno Friedmann (bruno_friedmann)
(revision 9)
- Make qr binary alternative ready (preparing for python3 packaging) - man1 & qr alternative -py_ver to avoid conflict with python3 - get ride of previous installed binary and man page - Fix console_script.py missing +x - Allow python3 packaging of qrcode old: devel:languages:python/python-qrcode new: home:bruno_friedmann:branches:devel:languages:python/python-qrcode rev None Index: python-qrcode.changes =================================================================== --- python-qrcode.changes (revision 8) +++ python-qrcode.changes (revision 5) @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Sat Aug 22 07:58:58 UTC 2015 - bruno@ioda-net.ch + +- Make qr binary alternative ready (preparing for python3 packaging) +- man1 & qr alternative -py_ver to avoid conflict with python3 +- Fix console_script.py missing +x + +------------------------------------------------------------------- Fri Jun 5 13:11:40 UTC 2015 - hguo@suse.com - Since factory project cannot make use of download_file service, the package Index: python-qrcode.spec =================================================================== --- python-qrcode.spec (revision 8) +++ python-qrcode.spec (revision 5) @@ -26,6 +26,8 @@ Source: http://pypi.python.org/packages/source/q/qrcode/qrcode-%{version}.tar.gz BuildRequires: python-devel BuildRequires: python-setuptools +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} @@ -46,11 +48,47 @@ %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +# Prepare for update-alternatives usage +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +mv -v %{buildroot}%{_bindir}/qr %{buildroot}%{_bindir}/qr-%{py_ver} +# rename man page too +mv -v %{buildroot}%{_mandir}/man1/qr.1 %{buildroot}%{_mandir}/man1/qr-%{py_ver}.1 + +ln -s -f %{_sysconfdir}/alternatives/qr %{buildroot}%{_bindir}/qr +ln -s -f %{_sysconfdir}/alternatives/qr.1%{?ext_man} %{buildroot}%{_mandir}/man1/qr.1%{?ext_man} + +# create a dummy targets for /etc/alternatives +touch %{buildroot}%{_sysconfdir}/alternatives/qr +touch %{buildroot}%{_sysconfdir}/alternatives/qr.1%{?ext_man} + +# Fix warning about missing +x mode +chmod +x %{buildroot}%{python_sitelib}/qrcode/console_scripts.py + +%pre +# Since /usr/bin/qr became ghosted to be used with update-alternatives, we have to get rid +# of the old binary resulting from the non-update-alternativies-ified package: +[ -h %{_bindir}/qr ] || rm -f %{_bindir}/qr +[ -h %{_mandir}/man1/qr.1%{?ext_man} ] || rm -f %{_mandir}/man1/qr.1%{?ext_man} + +%post +%_sbindir/update-alternatives \ + --install %{_bindir}/qr qr %{_bindir}/qr-%{py_ver} 30 \ + --slave %{_mandir}/man1/qr.1%{?ext_man} qr.1%{?ext_man} %{_mandir}/man1/qr-%{py_ver}.1%{?ext_man} + +%postun +if [ $1 -eq 0 ] ; then + %_sbindir/update-alternatives --remove qr %{_bindir}/qr-%{py_ver} +fi + %files %defattr(-,root,root,-) %doc CHANGES.rst LICENSE README.rst %{_bindir}/qr +%{_bindir}/qr-%{py_ver} +%{_mandir}/man1/qr.1%{?ext_man} +%{_mandir}/man1/qr-%{py_ver}.1%{?ext_man} +%ghost %{_sysconfdir}/alternatives/qr +%ghost %{_sysconfdir}/alternatives/qr.1%{?ext_man} %{python_sitelib}/* -%doc %{_mandir}/man1/qr.* %changelog
Dominique Leuenberger (dimstar_suse)
accepted
request 312380
from
Howard Guo (guohouzuo)
(revision 8)
initialized devel package after accepting 312380
Displaying revisions 1 - 20 of 27