From b0ea9aec41d2347b88ee7332260e9d722d96acef Mon Sep 17 00:00:00 2001 From: Romain Porte Date: Mon, 7 Oct 2019 07:25:28 +0200 Subject: [PATCH] barcodes: replace viivakoodi with python-barcode python-barcode is yet another clone of the PyPI barcode library, but which is still developped compared to viivakoodi. Signed-off-by: Romain Porte --- README.rst | 2 +- doc/requirements.txt | 2 +- setup.cfg | 1 + tox.ini | 3 ++- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index cc1bc7b..86683b0 100644 --- a/README.rst +++ b/README.rst @@ -43,7 +43,7 @@ This library makes use of: * `Pillow `_ for image printing * `qrcode `_ for the generation of QR-codes * `pyserial `_ for serial printers -* `viivakoodi `_ for the generation of barcodes +* `python-barcode `_ for the generation of barcodes Documentation and Usage ----------------------- diff --git a/doc/requirements.txt b/doc/requirements.txt index 9f38356..89cd833 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -5,4 +5,4 @@ pyserial sphinx-rtd-theme setuptools-scm docutils>=0.12 -viivakoodi +python-barcode>=0.11.0,<1 diff --git a/setup.cfg b/setup.cfg index a2dcf83..10e0396 100644 --- a/setup.cfg +++ b/setup.cfg @@ -39,6 +39,7 @@ install_requires = Pillow>=2.0 qrcode>=4.0 pyserial + python-barcode>=0.9.1,<1 six appdirs PyYAML diff --git a/tox.ini b/tox.ini index 53211f3..d0f9361 100644 --- a/tox.ini +++ b/tox.ini @@ -18,6 +18,7 @@ deps = nose pytest-cov pytest-mock hypothesis>4 + python-barcode viivakoodi commands = pytest --cov escpos passenv = ESCPOS_CAPABILITIES_PICKLE_DIR ESCPOS_CAPABILITIES_FILE CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_* CODECOV_* @@ -27,7 +28,7 @@ basepython = python changedir = doc deps = sphinx>=1.5.1 setuptools_scm - viivakoodi + python-barcode commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html [testenv:flake8]