Skip to content
Draft
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
6 changes: 3 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"**/node_modules/*/**": true,
"**/.eggs/**": true,
"**/.hypothesis/**": true,
"**/.tox/**": true,
"**/.tox/**": true
},
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
Expand All @@ -15,5 +15,5 @@
"source.organizeImports": "explicit"
},
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
}
"python.testing.pytestEnabled": true
}
13 changes: 0 additions & 13 deletions MANIFEST.in

This file was deleted.

106 changes: 106 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,114 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"


[project]
name = "python-escpos"
dynamic = ["version"]
description = "Python library to manipulate ESC/POS Printers"
readme = "README.rst"
license = {text = "MIT"}
authors = [
{name = "python-escpos developers", email = "[email protected]"},
]
maintainers = [
{name = "Patrick Kanzler", email = "[email protected]"},
]
keywords = [
"ESC/POS",
"printer",
"printing",
"receipt",
"thermoprinter",
"voucher",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Office/Business :: Financial :: Point-Of-Sale",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.8"
dependencies = [
"argcomplete",
"importlib_resources",
"Pillow>=2.0",
"platformdirs",
"python-barcode>=0.15.0,<1",
"PyYAML",
"qrcode>=4.0",
"setuptools",
"six",
]


[project.optional-dependencies]
all = [
"pycups; platform_system!='Windows'",
"pyserial",
"pyusb>=1.0.0",
"pywin32; platform_system=='Windows'",
]
cups = [
"pycups; platform_system!='Windows'",
]
serial = [
"pyserial",
]
usb = [
"pyusb>=1.0.0",
]
win32 = [
"pywin32; platform_system=='Windows'",
]


[project.scripts]
python-escpos = "escpos.cli:main"


[project.urls]
"Bug Tracker" = "https://github.com/python-escpos/python-escpos/issues"
Documentation = "https://python-escpos.readthedocs.io/en/latest/"
Homepage = "https://github.com/python-escpos/python-escpos"
"Release Notes" = "https://github.com/python-escpos/python-escpos/releases"


[tool.setuptools_scm]
version_file = "src/escpos/version.py"
version_file_template = """\
#!/usr/bin/python
# -*- coding: utf-8 -*-
\"\"\"Version identifier.

file generated by setuptools_scm
don't change, don't track in version control
\"\"\"

version = '{version}'
"""


[tool.black]
extend-exclude = 'capabilities-data'


[tool.isort]
profile = "black"


[tool.pytest.ini_options]
minversion = "6.0"
addopts = "--doctest-modules --cov escpos --cov-report=xml"
Expand All @@ -14,6 +119,7 @@ testpaths = [
"escpos",
]


[[tool.mypy.overrides]]
module = ["pytest",
"jaconv",
Expand Down
10 changes: 10 additions & 0 deletions requirements.test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
jaconv
tox>=4.11
pytest>=7.4
pytest-cov
pytest-mock
scripttest
mock
hypothesis>=6.83
flake8
sphinxcontrib-spelling>=8.0.0
77 changes: 0 additions & 77 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,80 +1,3 @@
[metadata]
name = python-escpos
url = https://github.com/python-escpos/python-escpos
description = Python library to manipulate ESC/POS Printers
long_description = file: README.rst
long_description_content_type = text/x-rst
license = MIT
license_file = LICENSE
author = python-escpos developers
author_email = [email protected]
maintainer = Patrick Kanzler
maintainer_email = [email protected]
keywords = ESC/POS, thermoprinter, voucher printer, printing, receipt
classifiers =
Development Status :: 4 - Beta
Environment :: Console
Intended Audience :: Developers
License :: OSI Approved :: MIT License
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 :: Implementation :: CPython
Topic :: Software Development :: Libraries :: Python Modules
Topic :: Office/Business :: Financial :: Point-Of-Sale
project_urls =
Bug Tracker = https://github.com/python-escpos/python-escpos/issues
Documentation = https://python-escpos.readthedocs.io/en/latest/
Release Notes = https://github.com/python-escpos/python-escpos/releases

[options]
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
setuptools
six
platformdirs
PyYAML
argcomplete
importlib_resources
setup_requires = setuptools_scm
tests_require =
jaconv
tox>=4.11
pytest>=7.4
pytest-cov
pytest-mock
scripttest
mock
hypothesis>=6.83
flake8
sphinxcontrib-spelling>=8.0.0

[options.extras_require]
usb =
pyusb>=1.0.0
serial =
pyserial
cups =
pycups; platform_system!='Windows'
win32 =
pywin32; platform_system=='Windows'
all =
pyusb>=1.0.0
pyserial
pycups; platform_system!='Windows'
pywin32; platform_system=='Windows'

[flake8]
exclude = .git,.venv,.tox,.github,.eggs,__pycache__,doc/conf.py,build,dist,capabilities-data,test,src/escpos/constants.py
max-line-length = 120
Expand Down
45 changes: 0 additions & 45 deletions setup.py

This file was deleted.

Loading