Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']

steps:
- uses: actions/checkout@v7
Expand Down
10 changes: 5 additions & 5 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
pyusb
Pillow>=2.0
qrcode>=4.0
Pillow>=12.0
qrcode>=8.0
pyserial
sphinx-rtd-theme==3.1.0
setuptools
setuptools-scm
docutils>=0.12
sphinxcontrib-spelling>=8.0.0
python-barcode>=0.15.0,<1
docutils>=0.22
sphinxcontrib-spelling>=8.0.2
python-barcode>=0.16.0,<1
importlib-metadata
importlib_resources
sphinxcontrib.datatemplates
Expand Down
2 changes: 1 addition & 1 deletion examples/docker-flask/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use the official Python image as the base image
FROM python:3.9-slim
FROM python:3.10-slim

# Set the working directory
WORKDIR /app
Expand Down
4 changes: 2 additions & 2 deletions examples/docker-flask/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ Pillow==12.3.0
pycups==2.0.1
pypng==0.20220715.0
pyserial==3.5
python-barcode==0.14.0
python-barcode==0.16.1
python-escpos==3.0a9
pyusb==1.2.1
PyYAML==6.0
qrcode==7.4.2
qrcode==8.2.0
six==1.16.0
typing_extensions==4.5.0
Werkzeug==3.1.6
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ ignore_missing_imports = true

[tool.tox]
requires = ["tox>=4.11"]
envlist = ["3.9", "3.10", "3.11", "3.12", "3.13", "docs", "flake8", "mypy"]
envlist = ["3.10", "3.11", "3.12", "3.13", "3.14", "docs", "flake8", "mypy"]


[tool.tox.gh.python]
"3.14" = ["3.14"]
"3.13" = ["3.13"]
"3.12" = ["3.12"]
"3.11" = ["3.11"]
"3.10" = ["3.10"]
"3.9" = ["3.9"]


[tool.tox.env_run_base]
Expand All @@ -49,7 +49,7 @@ deps = [
"pytest-cov",
"pytest-mock",
"hypothesis>=6.83",
"python-barcode>=0.15.0,<1",
"python-barcode>=0.16.0,<1",
]
extras = ["all"]
commands = [["pytest"]]
Expand All @@ -72,9 +72,9 @@ changedir = "doc"
deps = [
"sphinx>=7.2.3",
"setuptools_scm",
"python-barcode>=0.15.0,<1",
"python-barcode>=0.16.0,<1",
"sphinx-argparse",
"sphinxcontrib-spelling>=8.0.0",
"sphinxcontrib-spelling>=8.0.2",
"sphinxcontrib.datatemplates",
"sphinx-autodoc-typehints",
"sphinx_rtd_theme",
Expand Down
11 changes: 5 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ classifiers =
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
Programming Language :: Python :: 3.14
Programming Language :: Python :: Implementation :: CPython
Topic :: Software Development :: Libraries :: Python Modules
Topic :: Office/Business :: Financial :: Point-Of-Sale
Expand All @@ -38,9 +37,9 @@ python_requires = >=3.8
zip_safe = false
include_package_data = true
install_requires =
Pillow>=2.0
qrcode>=4.0
python-barcode>=0.15.0,<1
Pillow>=12.0
qrcode>=8.0
python-barcode>=0.16.0,<1
setuptools
six
platformdirs
Expand All @@ -58,7 +57,7 @@ tests_require =
mock
hypothesis>=6.83
flake8>7
sphinxcontrib-spelling>=8.0.0
sphinxcontrib-spelling>=8.0.2

[options.extras_require]
usb =
Expand Down
2 changes: 1 addition & 1 deletion src/escpos/magicencode.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def reset_encoding(self):
"""Invalidate cached encoding state after a printer-side code page reset.
Some printers silently reset their active code page after certain
commands (e.g. image rendering, font switches, hardware init).
commands (e.g. image rendering, font switches, hardware initialization).
Calling this method discards both the cached current encoding and the
set of previously-used encodings so that the next write() call
performs a fresh code page selection and re-emits CODEPAGE_CHANGE.
Expand Down