Commit Graph

571 Commits

Author SHA1 Message Date
TAHRI Ahmed efec3e508c Fix SerialException when trying to close device on __del__ without verifing if is actually opened. 2017-06-19 13:42:46 +02:00
Patrick Kanzler c3e952befa
cat authorsfiles during check 2017-06-19 11:15:04 +00:00
Patrick Kanzler 83b426f5fd Merge pull request #222 from MicroJoe/software-barcode
First implementation of software barcode
2017-06-19 12:57:05 +02:00
Romain Porte b963c5668b Using viivakoodi instead of pyBarcode 2017-06-11 10:06:57 +02:00
Patrick Kanzler 4882c31531 Clarifiy and update usage.rst
relevant to #230
clarifies the config-file  in the usage.rst
2017-06-10 23:35:26 +00:00
Patrick Kanzler 7c17141fb2
integrate author check into travis 2017-05-26 02:36:16 +02:00
Romain Porte 3f9d44ff15 Added authors file and generate_authors.sh (#227)
* Added authors file

Generated using `git shortlog -s -n` and sorted by alphabetical order
using vim.

* Added generate_authors.sh script and ordered author list

* Regenerated AUTHORS with .mailmap
2017-05-26 00:27:17 +02:00
Romain Porte a069009696 Lists should not be right-espaced in reST 2017-05-24 23:57:38 +02:00
Patrick Kanzler 024b0df7d2
added new trove for 3.6 and 3.7 2017-05-24 10:58:55 +02:00
Patrick Kanzler 74ef9aed7f
add .mailmap in order to normalize shortlog 2017-05-24 10:23:01 +02:00
Romain Porte c4dd4f2960 Added ImageWidthError and its implementation (#226)
* Added ImageWidthError and its implementation

* Added unit tests for ImageWidthError

* Parse max_width to int before compare
2017-05-23 15:13:28 +02:00
Romain Porte d348712439 PEP8 software barcode example 2017-05-22 20:25:51 +02:00
Romain Porte 22cf6ad00b Allow users to change impl for soft_barcode 2017-05-22 20:21:35 +02:00
Patrick Kanzler 5bf2636753 rewrite to Dummy() 2017-05-22 00:57:48 +02:00
TAHRI Ahmed 1f427953a8 Preliminary support of pos 'line display' printing 2017-05-22 00:40:40 +02:00
Romain Porte a6e1d0df00 Using booleans for handling text size 2017-05-21 22:50:07 +02:00
Romain Porte c0b4d03692 Updated documentation of set method 2017-05-21 22:50:07 +02:00
Romain Porte a16d6bde06 Refactor of the set method, with tests 2017-05-21 22:50:07 +02:00
Romain Porte 737cc3176e First implementation of software barcode
Actually the hardware barcode implementation is very specific and not
generic enough for just adding a `soft_render=True` argument to it. This
is a first work that can be improved with other commits, maybe for
merging this method in the `barcode` method after some cleanup.

The width, height and text_distance were set using empiric
print-and-retry tests so that the generated barcode looks nice to the
eye (and to the eye of an Android scanner tool.

!WARNING! Printing a barcode that is too large in width will result in
the printer to go crazy trying to print an image that is too large for
it. This may be fixed by raising an exception in the `image` method.
2017-05-16 20:56:27 +02:00
Romain Porte 4b04a5c425 Fixed bad format of :code: in documentation 2017-05-14 21:33:43 +02:00
Patrick Kanzler df33945458 Release v3.0a1 (#209 from python-escpos/development)
Release v3.0a1
2017-03-29 16:02:10 +02:00
Patrick Kanzler c1a7d71fd7
update changelog 2017-03-29 15:45:06 +02:00
Dmytro Katyukha a7ee11a78c Bugfix in `control` method. print_and_feed default `n=1` 2017-03-29 15:24:36 +02:00
Dmytro Katyukha 43e0a87a74 Updated capabilities data to new version 2017-03-29 15:24:36 +02:00
Dmytro Katyukha abbe32f845 Refactored `cut` method. added `print_and_feed` method 2017-03-29 15:24:25 +02:00
Dmytro Katyukha 29cc8baab7 Handle cases when fullCut or partCut not available 2017-03-29 15:24:25 +02:00
Patrick Kanzler 0f33d68f3a
add doc for ESCPOS_CAPABILITIES_FILE 2017-03-27 15:30:14 +02:00
Sam Cheng a0ef820947 add support for an ESCPOS_CAPABILITIES_FILE environment variable. This is useful in situations where package structure is changed, such as using cx-freeze 2017-03-27 14:39:49 +02:00
Patrick Kanzler 7b24df6581 remove patch-coverage because we don't use it 2017-03-23 15:35:32 +01:00
Patrick Kanzler 5078c49b3a
add github upload for travis
This automatically uploads succesfull release builds into the GitHub
release.
2017-02-05 15:42:09 +01:00
Patrick Kanzler 4b81a27407 v3.0a (#199) from python-escpos/development
Merge for v3.0a
2017-01-31 04:50:29 +01:00
Patrick Kanzler e8aefd8388
update CHANGELOG 2017-01-31 04:23:26 +01:00
Patrick Kanzler 3ee787e8b1
change license to MIT 2017-01-31 03:55:50 +01:00
Patrick Kanzler b76fb75702
add python36 to travis 2017-01-31 03:29:14 +01:00
Patrick Kanzler 2bcb1766ae
update python versions for travis
this "skips" py36 since it has not been released
2017-01-31 03:23:55 +01:00
Patrick Kanzler e92f00cdf3
fix AttributeError when executing close
When self.device is already None an AttributeError will occur.
This is relevant to #189.
2017-01-30 16:14:58 +01:00
Patrick Kanzler 1038844567
run flake8 in both python2 and python3 2017-01-30 03:01:32 +01:00
Patrick Kanzler 1579f05cb7
use print function in example 2017-01-30 03:00:23 +01:00
Patrick Kanzler f885de2f2a
switch to python2 with flake8 for now 2017-01-30 02:56:15 +01:00
Patrick Kanzler fc5ad1673c
add notice that we could add flake8-docstrings once 2017-01-30 02:44:26 +01:00
Patrick Kanzler 337e8ee19e
add flake8-checks to travis 2017-01-30 02:29:08 +01:00
Patrick Kanzler 81028f9a35
refactor not ... in to ... not in ... 2017-01-30 02:16:22 +01:00
Patrick Kanzler fb18bb34cc
normalize imports 2017-01-30 02:15:40 +01:00
Patrick Kanzler 94a0f2b94b
normalize whitespace 2017-01-30 01:57:36 +01:00
Patrick Kanzler ce94a1fc18
normalize whitespace 2017-01-30 01:52:26 +01:00
Patrick Kanzler ca880dd8ec
remove trailing whitespace in version.py 2017-01-30 01:44:15 +01:00
Patrick Kanzler fc69754a21
constants.py is custom-formatted 2017-01-30 01:42:34 +01:00
Patrick Kanzler b4920aafe2
increase allowed line-length, fix whitespace in cli.py 2017-01-30 01:41:01 +01:00
Patrick Kanzler 43e30707be
add flake8 config 2017-01-30 01:36:07 +01:00
Patrick Kanzler c48a0bee51
use not in instead of not ... in 2017-01-30 00:50:58 +01:00