Commit Graph

581 Commits

Author SHA1 Message Date
Brian 'Redbeard' Harrington c40f2abe07 bug/doc: Fix invalid EAN-13 barcode in examples
In the various examples and python-escpos CLI there are a number of uses
of `13243546557687` as an EAN-13 example.  This EAN barcode is invalid
as the checksum should be `0` and not `7`.

```
$ python test_print.py
Traceback (most recent call last):
  File "test_print.py", line 5, in <module>
    p.barcode('13243546557687', 'EAN13', 64, 2, '', '')
  File "/home/pi/fatt-display/lib/python3.7/site-packages/escpos/escpos.py", line 433, in barcode
    bc=bc,
escpos.exceptions.BarcodeCodeError: No Barcode code was supplied (Barcode '13243546557687' not in a valid format for type 'EAN13')
```

This patch set removes `13243546557687` and replaces it with the valid
number `40063813339310`.

In researching the list of [assigned prefixes issued by
G1][g1-prefixes] there seemed to be no "officially" defined test  prefix, so
this change was made to be minimally invasive using the number from the
existing test cases.

Resolves #350

Affects #176

[g1-prefixes]: https://www.gs1.org/standards/id-keys/company-prefix
[test-code]: https://www.barcodelookup.com/4006381333931
2019-06-29 19:19:16 -07:00
Brian 'Redbeard' Harrington fb82e5dc4a AUTHORS: Adding Brian Redbeard to AUTHORS
As per `CONTRIBUTING.rst` including a commit for Brian 'redbeard'
Harrington to AUTHORS
2019-06-29 19:19:16 -07:00
Patrick Kanzler fa140c2df5 cleanup todo page 2019-06-19 15:50:19 +02:00
Patrick Kanzler 8b3076871f
Merge pull request #346 from python-escpos/development
release v3.0a6
2019-06-19 15:28:46 +02:00
Patrick Kanzler 46429b1092 update changelog 2019-06-19 14:39:52 +02:00
Patrick Kanzler 99ca096f82
Merge pull request #345 from python-escpos/setup-fix-capabilities-path
improve package structure with capabilities file
2019-06-19 14:30:00 +02:00
Patrick Kanzler 2d97c0bbbd improve package structure with capabilities file 2019-06-19 14:14:59 +02:00
Patrick Kanzler 6c6fe9bccf
Merge pull request #342 from python-escpos/108-test-on-windows-travis
Add Windows and macOS configuration for Travis CI
2019-06-16 12:13:30 +02:00
Patrick Kanzler c5e46a888d fix allowed failures 2019-06-16 03:08:19 +02:00
Patrick Kanzler 46942820a5 update env variables 2019-06-16 03:05:42 +02:00
Patrick Kanzler e50e295acc add osx 2019-06-16 03:01:36 +02:00
Patrick Kanzler 2d7458fa49 activate fast_finish 2019-06-16 02:47:46 +02:00
Patrick Kanzler a6f635c0d5 fix capabilities file 2019-06-16 02:45:40 +02:00
Patrick Kanzler 2d0f045457 add first draft of Windows conf for #108 2019-06-16 02:45:40 +02:00
Patrick Kanzler 293b8632ff
Merge pull request #341 from python-escpos/308-update-docstring-qr
fix links and impl (in qr-method) in docstrings
2019-06-16 02:17:27 +02:00
Patrick Kanzler 5ff73595b6 fix links and impl (in qr-method) in docstrings
fixes #308
2019-06-16 01:54:47 +02:00
Patrick Kanzler 4ecab402b8
Merge pull request #339 from python-escpos/development
release v3.0a5
2019-06-16 00:31:07 +02:00
Patrick Kanzler c56e43da84 update changelog 2019-06-16 00:17:04 +02:00
Patrick Kanzler 88af26f46e
Merge pull request #338 from alexdebiasio/development
Implemented _read method of Network printer class. Solves issue #286
2019-06-16 00:01:12 +02:00
Patrick Kanzler 9dd966c2a3 update mailmap 2019-06-15 23:40:00 +02:00
Patrick Kanzler a7d959428f update authors 2019-06-15 22:50:50 +02:00
Alex Debiasio 8bf0e08659 Implemented _read method of Network printer class 2019-06-13 21:28:46 +02:00
Patrick Kanzler 5ac5a24b50
Toolchain update travis drop py2x (#336)
* drop python 2 from supported languages

Python 2 compatibility will not be actively revoked, but will
not be worked on.

* update travis config

* remove flake8-test with Py2.7
2019-06-11 00:24:09 +02:00
Patrick Kanzler 63252515b5
Merge pull request #335 from python-escpos/322-doc-serial-printer-on-windows
doc add example for Serial on Windows
2019-06-10 22:26:34 +02:00
Patrick Kanzler 29a546821b doc add example for Serial on Windows
fixes #322
2019-06-10 22:05:26 +02:00
Patrick Kanzler 4ddd18279f
Merge pull request #320 from ramonpoca/development
Add Win32Raw printer to available printers
2019-06-07 10:11:53 +02:00
Patrick Kanzler de761e96e3
Merge branch 'development' into development 2019-06-07 09:53:14 +02:00
Patrick Kanzler ed7bce6932
Merge pull request #329 from akeonly/patch-1
Update README.rst : example for network printer
2019-06-05 00:05:08 +02:00
Patrick Kanzler edd567785c fix whitespace 2019-06-04 23:57:19 +02:00
Patrick Kanzler f1054876da update authors 2019-06-04 23:55:33 +02:00
Patrick Kanzler 490e0657dd
Merge branch 'development' into patch-1 2019-06-04 23:04:39 +02:00
Patrick Kanzler b4c32b5a4a
Merge branch 'development' into development 2019-06-04 23:04:25 +02:00
Patrick Kanzler 40b30225d3
Merge pull request #330 from om26er/windows-support
Enable Windows Support
2019-06-04 23:04:09 +02:00
Patrick Kanzler 19e3ec6895
Merge pull request #331 from teamorchard/use-pyyaml-safe-load
Update to use pyyaml safe_load()
2019-06-04 22:45:05 +02:00
Patrick Kanzler df539da854
Merge branch 'development' into development 2019-06-04 22:31:47 +02:00
Patrick Kanzler 4534038b39
Merge branch 'development' into patch-1 2019-06-04 22:31:33 +02:00
Patrick Kanzler adf85f7784
Merge branch 'development' into windows-support 2019-06-04 22:31:08 +02:00
Patrick Kanzler aaa8162967
Merge branch 'development' into use-pyyaml-safe-load 2019-06-04 22:30:47 +02:00
Patrick Kanzler 0461adc212 restrict hypothesis-version to below 4 2019-06-04 22:30:23 +02:00
Justin Vieira 91ff83e506 Update to use pyyaml safe_load(), as load() is unsafe and disabled on some systems 2019-05-29 16:43:19 -04:00
Omer Akram 29ef88f591 Better comment 2019-05-22 17:25:33 +05:00
Omer Akram 7c01a30d6c fix a typo 2019-05-22 17:20:15 +05:00
Omer Akram 035c425581 Add author 2019-05-22 17:09:27 +05:00
Omer Akram d20646b2a9 Make windows enablement code more intelligent 2019-05-22 17:01:13 +05:00
Omer Akram 206822ac69 Enable Windows Support 2019-05-22 16:39:26 +05:00
akeonly dc08792e72
Update README.rst : example for network printer
Add example for Network Printer
2019-05-11 18:33:33 +07:00
Ramon Poca 2886075ce9 Fix initializer mess 2018-12-31 14:24:10 +01:00
Ramon Poca 73fff6291d Fix syntax 2018-12-31 13:57:53 +01:00
Ramon Poca d5b9d99093 Update AUTHORS 2018-12-31 10:43:31 +01:00
Ramon Poca 18c51358aa Add Win32Raw printer to available printers 2018-12-13 08:01:05 -08:00