This module uses image libraries, Python Imaging Library (PIL) by
default, to generate QR Codes.
A Quick Response code is a two-dimensional pictographic code used
for its fast readability and comparatively large storage capacity.
The code consists of black modules arranged in a square pattern on
a white background. The information encoded can be made up of any
kind of data (e.g., binary, alphanumeric, or Kanji symbols)
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-qrcode listed in the above command, you can pick from the names under the Packages section.
textproc/py-qrcode: Update to 8.0
Changes since 7.4:
- Added support for Python 3.11 and 3.12.
- Drop support for Python <=3.8.
- Change local development setup to use Poetry_.
- Testsuite and code quality checks are done through Github Actions.
- Code quality and formatting utilises ruff_.
- Removed ``typing_extensions`` as a dependency, as it's no longer
(Only the first 15 lines of the commit message are shown above )
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568>
textproc/py-qrcode: Update to 7.4
Changes since 7.3:
- Improvements for embedded image.
- 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.
Reported by: portscout
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
textproc/py-qrcode: Update to 7.3
Changes since 6.1:
- 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
(Only the first 15 lines of the commit message are shown above )
graphics/py-pillow: Update to 7.0.0
* Repo-Copy the Pillow 6.2.2 release to graphics/py-pillow6 to retain
backwards compatibility for Python 2 consumers as the Pillow 7.0.0 release
dropped the support for Python 2.
* Apply conditional statements to use either Pillow 7.x or Pillow 6.x for
consumers that can be built for Python 2 or newer.
* Exceptions are ports that can be built only for either Python 2 or
Python 3. For the first case, consumers are just assigned to the
repo-copied graphics/py-pillow6.
* Also remove Pillow from BUILD_DEPENDS of math/py-PyWavelets as it is not
listed in setup.py as a build dependency [1] and relax the version
(Only the first 15 lines of the commit message are shown above )
textproc/py-qrcode: Update to 6.1. From CHANGES.rst:
- Fix short chunks of data not being optimized to the correct mode.
- Tests fixed for Python 3
Reported by: portscout
Approved by: matthew (mentor, implicit)
Update to 6.0:
- Fix optimize length being ignored in QRCode.add_data.
- Better calculation of the best mask pattern and related
optimizations.
Reviewed by: matthew (mentor)
Approved by: matthew (mentor)
Differential Revision: https://reviews.freebsd.org/D15930
Patch setup.py to install the man page in ${PREFIX}/man/man1
instead of ${PREFIX}/share/man/man1
Assume matainership (the current maintainer requests being removed
in PR 224219).
PR: 224219
Reviewed by: ler (mentor)
Approved by: ler (mentor)
Differential Revision: https://reviews.freebsd.org/D13902
Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored. They will
automatically get flavors (py27, py34, py35, py36) depending on what
versions they support.
There is also a USE_PYTHON=flavors for ports that do not use distutils
but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if
using distutils but flavors are not wanted.
A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
added to cope with Python ports that did not have the Python
PKGNAMEPREFIX but are flavored.
USES=python now also exports a PY_FLAVOR variable that contains the
(Only the first 15 lines of the commit message are shown above )
textproc/py-qrcode: Add port
This module uses image libraries, Python Imaging Library (PIL) by
default, to generate QR Codes.
A Quick Response code is a two-dimensional pictographic code used
for its fast readability and comparatively large storage capacity.
The code consists of black modules arranged in a square pattern on
a white background. The information encoded can be made up of any
kind of data (e.g., binary, alphanumeric, or Kanji symbols)
WWW: https://github.com/lincolnloop/python-qrcode
PR: 196046
Differential Revision: https://reviews.freebsd.org/D1631
Submitted by: kyuupichan@gmail.com
Approved by: koobs (mentor)