ref(project-metadata): migrate to PEP 621 by hasansezertasan · Pull Request #701 · python-escpos/python-escpos · GitHub
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
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 = "dev@pkanzler.de"},
]
maintainers = [
{name = "Patrick Kanzler", email = "dev@pkanzler.de"},
]
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
45 changes: 0 additions & 45 deletions setup.py

This file was deleted.

Loading