pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/graphics/py-qrcode



Module Name:    pkgsrc
Committed By:   adam
Date:           Sat Jan  6 09:24:27 UTC 2024

Modified Files:
        pkgsrc/graphics/py-qrcode: Makefile PLIST distinfo

Log Message:
py-qrcode: updated to 7.4.2

7.4.2 (6 February 2023)

- Allow ``pypng`` factory to allow for saving to a string (like
  ``qr.save("some_file.png")``) in addition to file-like objects.

7.4.1 (3 February 2023)

- Fix bad over-optimization in v7.4 that broke large QR codes. Thanks to
  mattiasj-axis!

7.4 (1 February 2023)

- 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.

7.3.1 (1 October 2021)

- Improvements for embedded image.

7.3 (19 August 2021)

- Skip color mask if QR is black and white

7.2 (19 July 2021)

- Add Styled PIL image factory, allowing different color masks and shapes in QR codes
- Small performance inprovement
- Add check for border size parameter

7.1 (1 July 2021)

- 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


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 pkgsrc/graphics/py-qrcode/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/graphics/py-qrcode/PLIST
cvs rdiff -u -r1.9 -r1.10 pkgsrc/graphics/py-qrcode/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/py-qrcode/Makefile
diff -u pkgsrc/graphics/py-qrcode/Makefile:1.17 pkgsrc/graphics/py-qrcode/Makefile:1.18
--- pkgsrc/graphics/py-qrcode/Makefile:1.17     Wed Jan  5 15:41:12 2022
+++ pkgsrc/graphics/py-qrcode/Makefile  Sat Jan  6 09:24:27 2024
@@ -1,25 +1,25 @@
-# $NetBSD: Makefile,v 1.17 2022/01/05 15:41:12 wiz Exp $
+# $NetBSD: Makefile,v 1.18 2024/01/06 09:24:27 adam Exp $
 
-DISTNAME=      qrcode-6.1
+DISTNAME=      qrcode-7.4.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   2
 CATEGORIES=    graphics python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=q/qrcode/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      https://pypi.python.org/pypi/qrcode
-COMMENT=       Python QR Code image generator
+HOMEPAGE=      https://github.com/lincolnloop/python-qrcode
+COMMENT=       QR Code image generator
 LICENSE=       modified-bsd
 
-DEPENDS+=      ${PYPKGPREFIX}-lxml-[0-9]*:../../textproc/py-lxml
-DEPENDS+=      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
-
-PYTHON_VERSIONED_DEPENDENCIES= Pillow
-
-USE_PKG_RESOURCES=     yes
+DEPENDS+=      ${PYPKGPREFIX}-pypng-[0-9]*:../../graphics/py-pypng
+DEPENDS+=      ${PYPKGPREFIX}-typing-extensions-[0-9]*:../../devel/py-typing-extensions
+# pil
+DEPENDS+=      ${PYPKGPREFIX}-Pillow>=9.1.0:../../graphics/py-Pillow
+TEST_DEPENDS+= ${PYPKGPREFIX}-coverage-[0-9]*:../../devel/py-coverage
 
 USE_LANGUAGES= # none
 
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
 REPLACE_PYTHON+=       qrcode/console_scripts.py
 
 SUBST_CLASSES+=                        pkgmandir
@@ -35,6 +35,5 @@ post-install:
                ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/qr-${PYVERSSUFFIX}.1 || ${TRUE}
 
 .include "../../lang/python/application.mk"
-.include "../../lang/python/egg.mk"
-.include "../../lang/python/versioned_dependencies.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/graphics/py-qrcode/PLIST
diff -u pkgsrc/graphics/py-qrcode/PLIST:1.6 pkgsrc/graphics/py-qrcode/PLIST:1.7
--- pkgsrc/graphics/py-qrcode/PLIST:1.6 Sun Oct  7 08:55:13 2018
+++ pkgsrc/graphics/py-qrcode/PLIST     Sat Jan  6 09:24:27 2024
@@ -1,12 +1,11 @@
-@comment $NetBSD: PLIST,v 1.6 2018/10/07 08:55:13 adam Exp $
+@comment $NetBSD: PLIST,v 1.7 2024/01/06 09:24:27 adam Exp $
 bin/qr-${PYVERSSUFFIX}
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
-${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/qrcode/LUT.py
 ${PYSITELIB}/qrcode/LUT.pyc
 ${PYSITELIB}/qrcode/LUT.pyo
@@ -16,6 +15,15 @@ ${PYSITELIB}/qrcode/__init__.pyo
 ${PYSITELIB}/qrcode/base.py
 ${PYSITELIB}/qrcode/base.pyc
 ${PYSITELIB}/qrcode/base.pyo
+${PYSITELIB}/qrcode/compat/__init__.py
+${PYSITELIB}/qrcode/compat/__init__.pyc
+${PYSITELIB}/qrcode/compat/__init__.pyo
+${PYSITELIB}/qrcode/compat/etree.py
+${PYSITELIB}/qrcode/compat/etree.pyc
+${PYSITELIB}/qrcode/compat/etree.pyo
+${PYSITELIB}/qrcode/compat/pil.py
+${PYSITELIB}/qrcode/compat/pil.pyc
+${PYSITELIB}/qrcode/compat/pil.pyo
 ${PYSITELIB}/qrcode/console_scripts.py
 ${PYSITELIB}/qrcode/console_scripts.pyc
 ${PYSITELIB}/qrcode/console_scripts.pyo
@@ -37,6 +45,27 @@ ${PYSITELIB}/qrcode/image/pil.pyo
 ${PYSITELIB}/qrcode/image/pure.py
 ${PYSITELIB}/qrcode/image/pure.pyc
 ${PYSITELIB}/qrcode/image/pure.pyo
+${PYSITELIB}/qrcode/image/styledpil.py
+${PYSITELIB}/qrcode/image/styledpil.pyc
+${PYSITELIB}/qrcode/image/styledpil.pyo
+${PYSITELIB}/qrcode/image/styles/__init__.py
+${PYSITELIB}/qrcode/image/styles/__init__.pyc
+${PYSITELIB}/qrcode/image/styles/__init__.pyo
+${PYSITELIB}/qrcode/image/styles/colormasks.py
+${PYSITELIB}/qrcode/image/styles/colormasks.pyc
+${PYSITELIB}/qrcode/image/styles/colormasks.pyo
+${PYSITELIB}/qrcode/image/styles/moduledrawers/__init__.py
+${PYSITELIB}/qrcode/image/styles/moduledrawers/__init__.pyc
+${PYSITELIB}/qrcode/image/styles/moduledrawers/__init__.pyo
+${PYSITELIB}/qrcode/image/styles/moduledrawers/base.py
+${PYSITELIB}/qrcode/image/styles/moduledrawers/base.pyc
+${PYSITELIB}/qrcode/image/styles/moduledrawers/base.pyo
+${PYSITELIB}/qrcode/image/styles/moduledrawers/pil.py
+${PYSITELIB}/qrcode/image/styles/moduledrawers/pil.pyc
+${PYSITELIB}/qrcode/image/styles/moduledrawers/pil.pyo
+${PYSITELIB}/qrcode/image/styles/moduledrawers/svg.py
+${PYSITELIB}/qrcode/image/styles/moduledrawers/svg.pyc
+${PYSITELIB}/qrcode/image/styles/moduledrawers/svg.pyo
 ${PYSITELIB}/qrcode/image/svg.py
 ${PYSITELIB}/qrcode/image/svg.pyc
 ${PYSITELIB}/qrcode/image/svg.pyo
@@ -49,21 +78,24 @@ ${PYSITELIB}/qrcode/release.pyo
 ${PYSITELIB}/qrcode/tests/__init__.py
 ${PYSITELIB}/qrcode/tests/__init__.pyc
 ${PYSITELIB}/qrcode/tests/__init__.pyo
-${PYSITELIB}/qrcode/tests/svg.py
-${PYSITELIB}/qrcode/tests/svg.pyc
-${PYSITELIB}/qrcode/tests/svg.pyo
 ${PYSITELIB}/qrcode/tests/test_example.py
 ${PYSITELIB}/qrcode/tests/test_example.pyc
 ${PYSITELIB}/qrcode/tests/test_example.pyo
 ${PYSITELIB}/qrcode/tests/test_qrcode.py
 ${PYSITELIB}/qrcode/tests/test_qrcode.pyc
 ${PYSITELIB}/qrcode/tests/test_qrcode.pyo
+${PYSITELIB}/qrcode/tests/test_qrcode_svg.py
+${PYSITELIB}/qrcode/tests/test_qrcode_svg.pyc
+${PYSITELIB}/qrcode/tests/test_qrcode_svg.pyo
 ${PYSITELIB}/qrcode/tests/test_release.py
 ${PYSITELIB}/qrcode/tests/test_release.pyc
 ${PYSITELIB}/qrcode/tests/test_release.pyo
 ${PYSITELIB}/qrcode/tests/test_script.py
 ${PYSITELIB}/qrcode/tests/test_script.pyc
 ${PYSITELIB}/qrcode/tests/test_script.pyo
+${PYSITELIB}/qrcode/tests/test_util.py
+${PYSITELIB}/qrcode/tests/test_util.pyc
+${PYSITELIB}/qrcode/tests/test_util.pyo
 ${PYSITELIB}/qrcode/util.py
 ${PYSITELIB}/qrcode/util.pyc
 ${PYSITELIB}/qrcode/util.pyo

Index: pkgsrc/graphics/py-qrcode/distinfo
diff -u pkgsrc/graphics/py-qrcode/distinfo:1.9 pkgsrc/graphics/py-qrcode/distinfo:1.10
--- pkgsrc/graphics/py-qrcode/distinfo:1.9      Tue Oct 26 10:46:48 2021
+++ pkgsrc/graphics/py-qrcode/distinfo  Sat Jan  6 09:24:27 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.9 2021/10/26 10:46:48 nia Exp $
+$NetBSD: distinfo,v 1.10 2024/01/06 09:24:27 adam Exp $
 
-BLAKE2s (qrcode-6.1.tar.gz) = cf52a131c44c017a5ca0f699ca0ae4c17ec4e0c857af1f5b9732d2b960a81e0a
-SHA512 (qrcode-6.1.tar.gz) = 4831553932442f5535cba15d5958a656b399112f0f379c28ad9b610c33d88ec6d0613dc7047a2315606e49f027bfd13a15a332ce86b80040d56e1114a0f62251
-Size (qrcode-6.1.tar.gz) = 29363 bytes
+BLAKE2s (qrcode-7.4.2.tar.gz) = bfbd11c6733a69c4c3a0a934cb76c79e249f1570e1a436c01c190b267ec858bc
+SHA512 (qrcode-7.4.2.tar.gz) = a8642845990341034e39c43ef674f5b4ce8d3175a44d6062f711af2c24ffd45bda5f3ecf8a7825b7ebafe734b6396d52a37bb59177c544f921e43eaa9f1f5405
+Size (qrcode-7.4.2.tar.gz) = 535974 bytes



Home | Main Index | Thread Index | Old Index