Patrick Kanzler
9f5eed0020
add version-strings into the module
...
The version string is in the module as __version__ available.
In the doc the version will be automatically parsed. The version comes
from the installed module if on read the docs or directly from
setuptools_scm if you are working locally.
The CLI will issue the version string if you call it with the option
'version'. The CLI does not accept commands like '--version', since this
would not be conform with the rest of the interface (and argparse).
The configuration for loading the version-string is adapted from
pimutils/vdirsyncer. It autogenerates a version string setuptools_scm at
install-time and then adds it to the __version__ member in __init__.py
I adapted the GitHub-template with a fitting comment and bumped the
changelog.
closes #141
2016-07-17 19:39:42 +02:00
Patrick Kanzler
57dd60c13f
doc: add troubleshooting hint to network-interface
...
closes #142
2016-07-15 13:18:33 +02:00
Patrick Kanzler
0ec83387d5
improve github issues template
2016-07-15 13:05:59 +02:00
Patrick Kanzler
36e0a52e2d
DOC added stump for new changelog-entry
2016-06-26 20:52:31 +02:00
Patrick Kanzler
214b4def14
configure codecov.io
...
fixes #134
2016-06-26 20:39:06 +02:00
Patrick Kanzler
c13a0715e4
SETUP fix trove classififiers
2016-06-24 11:55:27 +02:00
Patrick Kanzler
925d19447d
Merge pull request #117 from python-escpos/development
...
version 2.0.0
2016-06-24 11:16:57 +02:00
Patrick Kanzler
5be81e4703
SETUP register cli entry point in setuptools
2016-06-23 16:53:58 +02:00
Patrick Kanzler
ab39fd2b99
Merge branch 'doc/add-image-helper-class' into development
2016-06-23 15:39:31 +02:00
Patrick Kanzler
685a1f504c
DOC add image helper class
2016-06-23 15:38:55 +02:00
Patrick Kanzler
7529642788
exclude .egg in gitignore
2016-06-23 14:31:38 +02:00
Patrick Kanzler
0907b6aa8b
Merge pull request #138 from python-escpos/setup/check-in-travis
...
Check setup in Travis and make sure that the package is tested
2016-06-20 17:57:03 +02:00
Patrick Kanzler
87438f9efa
SETUP move code to src
...
This way we can ensure that the packaged code is tested.
See https://hynek.me/articles/testing-packaging/ or c62a78c015
+ DOC adapt doc to new structure and test doc with travis
2016-06-20 17:48:14 +02:00
Patrick Kanzler
e8e91eba80
SETUP add pyusb>=1.0 as dependency
...
pyusb 1.0.0 is now released so it can now be regularely installed with pip
2016-06-20 16:29:55 +02:00
Patrick Kanzler
3e5509238e
DOC add trove classifier "Point-Of-Sale"
2016-06-20 16:20:47 +02:00
Patrick Kanzler
08051d48d0
DOC write changelog for version 2.0.0
2016-06-19 22:25:30 +02:00
Patrick Kanzler
2676a802bd
refactor wildcard-import in printer.py
2016-06-19 12:52:15 +02:00
Patrick Kanzler
6697922b74
refactor PEP8 and code style
2016-06-19 12:30:57 +02:00
Patrick Kanzler
e814396bd8
refactor: simplified expressions, remove unused import
2016-06-19 12:30:36 +02:00
Patrick Kanzler
adf73f3790
Merge pull request #136 from python-escpos/feature/mosquito-compatibility
...
Feature/mosquito compatibility
2016-06-19 11:46:47 +02:00
Patrick Kanzler
1e490b6de8
add basic support for multilanguage
2016-06-17 23:35:00 +02:00
Patrick Kanzler
910f2fbf2f
add with-statement
...
* with imported from mosquito (adaption of the code in 86a3e8dfb257e3af0ec141ee5d97717501d6e945 by @mosquito)
* encoding of file to utf-8
* added rudimentary test for with
* implement close function for all printers
2016-06-17 23:34:51 +02:00
Patrick Kanzler
16569067c2
Merge pull request #135 from python-escpos/doc/mention-binary-printing
...
DOC add example on printing commands from binary files
2016-05-02 11:16:49 +02:00
Patrick Kanzler
a0dc993f2f
DOC add example on printing commands from binary files
2016-05-01 15:27:15 +02:00
Patrick Kanzler
1b00477144
Merge pull request #133 from mike42/bugfix/readthedocs
...
Converted references to readthedocs.org -> readthedocs.io
2016-05-01 14:56:44 +02:00
Michael Billington
ddaf126c20
Converted references to readthedocs.org -> readthedocs.io. Resolves python-escpos/python-escpos#132
...
grep -irl --exclude-dir='.*' "readthedocs\." | xargs sed -i 's/python-escpos.readthedocs.org/python-escpos.readthedocs.io/g'
2016-04-30 23:22:14 +10:00
Patrick Kanzler
6a2673d01d
DOC extend image-docstring
2016-04-28 21:57:57 +02:00
Patrick Kanzler
f6ae109bb9
Merge branch 'TheWaWaR-development' into development
2016-04-28 14:06:06 +02:00
Qian Linfeng
0a8057414c
Fix upper method forgot brackets bug
2016-04-28 14:32:00 +08:00
Patrick Kanzler
a34e306ea8
Merge pull request #122 from python-escpos/doc/contributing
...
DOC improve CONTRIBUTING.rst
2016-04-24 19:18:25 +02:00
Patrick Kanzler
2588406831
Merge pull request #124 from python-escpos/improve/packaging
...
Improve packaging
2016-04-15 01:22:51 +02:00
Patrick Kanzler
b6ada13f9b
PCKG updated package-configuration
...
* author/maintainer
* trove-classifiers
* keywords
* supported platforms and versions
2016-04-14 00:41:45 +02:00
Patrick Kanzler
eadd9f7583
DOC improve CONTRIBUTING
...
based on the feedback by @mike42 and @DavisGoglin
2016-04-14 00:16:06 +02:00
Patrick Kanzler
471222eda9
Merge pull request #127 from python-escpos/fix/abstractbaseclass-metaclass
...
FIX abstractbaseclass in Escpos not properly loaded
2016-04-14 00:02:28 +02:00
Patrick Kanzler
c6cc28254e
Merge pull request #128 from mike42/feature/rewrite-image-handling
...
Rewrite image handling
2016-04-14 00:00:52 +02:00
Michael Billington
f903af6730
fix: horizontal/vertical density settings were backwards for bitImageRaster
2016-04-13 22:19:50 +10:00
Michael Billington
a0d8689141
apply fixes, mainly to whitespace ( patch by @patkan in #128 )
2016-04-13 21:27:51 +10:00
Michael Billington
44c79eaf11
Remove trailing semicolons
...
sed -i 's/;$//' escpos/*.py
2016-04-07 22:06:14 +10:00
Michael Billington
4584e3138a
switch default image format to bitImageRaster
...
Printers which don't have native QR rendering are less likely to support the newer GS ( L graphics command.
2016-04-06 21:39:46 +10:00
Michael Billington
6b445b3fb1
update docstrings per QuantifiedCode suggestions
2016-04-06 21:05:32 +10:00
Michael Billington
ba03538c50
remove pypy3 from allowed failures
2016-04-06 07:35:40 +10:00
Michael Billington
b45afbb297
add implementation of GS v 0, GS ( L and GS *.
...
- ported test cases for EscposImage class, copied over 1px and 2px test images from escpos-php
- added test cases over image print function
- updated QR tests to also include image output check
- updated CLI to match new image function options
2016-04-06 07:34:19 +10:00
Michael Billington
59afcf778f
remove image handling support
2016-04-06 07:26:00 +10:00
Patrick Kanzler
36debff72c
FIX abstractbaseclass in Escpos not properly loaded
...
* fixes #126
* adds a test to verify the patch
* uses a helperfunction of six in order to properly load ABCMeta in Python 2 and 3
2016-04-03 22:36:57 +02:00
Patrick Kanzler
2aa0878f54
Merge pull request #123 from python-escpos/refactor/misc-issues
...
Refactor misc issues
2016-04-03 21:46:15 +02:00
Patrick Kanzler
7b18afec75
Merge pull request #125 from mike42/feature/native-qr-update
...
Implement ESC/POS QR code rendering
2016-04-03 11:37:44 +02:00
Michael Billington
f39c4227ec
Implement printer-side rendering of QR codes for printers that support it.
...
Expand settings on escpos.qr to include ec, size,
model and 'native' (send image or send esc/pos QR command).
Default is set as native=False, so existing code will continue to
render QR codes as images.
2016-04-03 13:55:52 +10:00
Patrick Kanzler
481285625b
REFACTOR simplify out-of-bounds-check in control()
2016-04-02 16:02:04 +02:00
Patrick Kanzler
1ee657a750
REFACTOR remove wildcard-import from escpos in printer
2016-04-02 15:33:24 +02:00
Patrick Kanzler
0121aa0bfb
REFACTOR add PEP8-newlines
2016-04-02 15:29:51 +02:00