python-escpos / python-escpos

Python library to manipulate ESC/POS printers
https://python-escpos.readthedocs.io
MIT License
978 stars 279 forks source link

split of dependencies for optional installation #546

Closed patkan closed 10 months ago

patkan commented 10 months ago

Description

This checks the build system and splits off the packages so that not all have to be installed. fixes #543

Tested with

If applicable, please describe with which device you have tested.

codecov[bot] commented 10 months ago

Codecov Report

Merging #546 (0180afc) into master (fbabd8e) will increase coverage by 0.87%. The diff coverage is 46.05%.

@@            Coverage Diff             @@
##           master     #546      +/-   ##
==========================================
+ Coverage   65.14%   66.02%   +0.87%     
==========================================
  Files          12       20       +8     
  Lines        1251     1392     +141     
  Branches      214      247      +33     
==========================================
+ Hits          815      919     +104     
- Misses        382      422      +40     
+ Partials       54       51       -3     
Flag Coverage Δ
unittests 66.02% <46.05%> (+0.87%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
src/escpos/constants.py 98.80% <ø> (ø)
src/escpos/escpos.py 68.76% <ø> (ø)
src/escpos/exceptions.py 56.48% <ø> (ø)
src/escpos/printer/usb.py 32.87% <32.87%> (ø)
src/escpos/printer/cups.py 36.48% <36.48%> (ø)
src/escpos/printer/serial.py 38.59% <38.59%> (ø)
src/escpos/printer/file.py 40.74% <40.74%> (ø)
src/escpos/printer/win32raw.py 43.63% <43.63%> (ø)
src/escpos/printer/lp.py 44.44% <44.44%> (ø)
src/escpos/printer/network.py 78.12% <78.12%> (ø)
... and 2 more