Commit Graph

79 Commits

Author SHA1 Message Date
Patrick Kanzler 70d4da1364 format with black 2023-04-19 22:11:09 +02:00
Patrick Kanzler 5bb0642b5d
housekeeping tasks (#464)
* update settings to use black

* update python versions

* enquote version numbers

* update dependency

* set explicit build command

* add newline

* add command to checkout

* add run step

* chain

* sudo

* test

* newer sphinx version

* update sphinx

* clean up setuptools usage

* use tox

* install tox

* tox
2021-10-30 22:21:34 +02:00
Patrick Kanzler 435f2bba24 reformat codebase 2021-10-30 18:15:22 +02:00
Patrick Kanzler a2e348d04a fix typos 2020-10-04 14:30:03 +02:00
Patrick Kanzler 40c8399a68 update documentation on STAR TSP100
fixes #410 and #403
2020-10-04 14:28:09 +02:00
Patrick Kanzler 2d798ca7e5 add hint on proper script names
fixes #404
2020-09-28 19:51:49 +02:00
Maximilian Wagenbach c57b9c35dc Use https links. 2020-05-31 16:21:42 +02:00
Patrick Kanzler e3cf088d69 improve output of authors script 2020-05-26 21:29:16 +02:00
Patrick Kanzler 323db98318 make gen authors more robust 2020-05-26 20:43:24 +02:00
Patrick Kanzler ff39908674
Merge branch 'master' into 390-add-spellcheck-to-sphinx 2020-05-11 23:45:34 +02:00
Patrick Kanzler f4e214ad17 add spellchecker with first conf, fix some errors 2020-05-11 23:39:56 +02:00
Patrick Kanzler 9e406efc86 add sphinxcontrib-spelling 2020-05-11 23:22:40 +02:00
Patrick Kanzler b9e3827867 use pkg_resources
This change uses if no path for e capabilities-file is supplied a
temporary file created by pkg_resources, which should be more robust
than directly accessing the file. (This failed sometimes, for example
in zipped distributions or uncommon structures)
2020-05-11 22:54:22 +02:00
Romain Porte b0ea9aec41 barcodes: replace viivakoodi with python-barcode
python-barcode is yet another clone of the PyPI barcode library, but
which is still developped compared to viivakoodi.

Signed-off-by: Romain Porte <microjoe@microjoe.org>
2020-05-10 13:36:16 +02:00
Romain Porte cb30d7a881 drop Python 2.7 support
Python 2.7 EOL is arriving on 2020-01-01: https://pythonclock.org/

This will allow us to use Python 3 only libraries, like python-barcode,
which can maintain a reduced, simpler codebase, due to only one version
to support.

Closes #371.

Signed-off-by: Romain Porte <microjoe@microjoe.org>
2020-05-10 10:55:44 +02:00
Alexander Bougakov e350a49cad
Clarify the positions of vendor_id and product_id
An existing example uses same value, `0x1a2b`  in both `Vendor id` and `Product id` fields, which can confuse a new user.
2020-03-22 13:36:49 +03:00
Patrick Kanzler fa140c2df5 cleanup todo page 2019-06-19 15:50:19 +02:00
Patrick Kanzler 29a546821b doc add example for Serial on Windows
fixes #322
2019-06-10 22:05:26 +02:00
Patrick Kanzler 1439b14686
tell sort to ignore case 2017-08-31 13:43:07 +02:00
Patrick Kanzler c259263f26 blacklist pytest 3.2.0 because it breaks our tests
see pytest-dev/pytest#2644 for reference
2017-08-04 15:17:05 +02:00
Patrick Kanzler c3e952befa
cat authorsfiles during check 2017-06-19 11:15:04 +00: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
Patrick Kanzler 0f33d68f3a
add doc for ESCPOS_CAPABILITIES_FILE 2017-03-27 15:30:14 +02:00
Patrick Kanzler d3f76a5f6d
doc update modules in autogeneration 2017-01-29 22:33:15 +01:00
Patrick Kanzler e595bc2150
doc update methods and printers and use autodoc 2017-01-26 00:28:33 +01:00
Patrick Kanzler a15d02b50c change dependency to docutils to newer version of sphinx
This is a revert to f8b7238801
2017-01-06 18:05:59 +01:00
Asuki Kono 938f9890ab Update doc about installation for raspi (#194)
* Update dec about installation for raspi

* Rollback syntax about warning on raspi doc

* Add a link of installation-manual on raspi doc

* Update last reviewed date for raspi doc
2017-01-05 21:51:07 +01:00
Patrick Kanzler 1e5a41ba4e Merge pull request #193 from python-escpos/fix-docutils-problem
downgrade docutils
2016-12-09 21:33:32 +01:00
Patrick Kanzler f8b7238801
downgrade docutils
version 0.13 of docutils seems to have problems. See
sphinx-doc/sphinx#3212
2016-12-09 21:24:57 +01:00
Thijs Triemstra 24731f433e fix typos 2016-12-09 16:56:23 +01:00
Thijs Triemstra 6158ba344f fix typos 2016-12-09 16:42:23 +01:00
Patrick Kanzler bd57c01794
update doc-page on Raspi 2016-12-07 20:31:49 +01:00
ysuolmai da0d49c787 Update raspi.rst 2016-11-25 21:44:47 +11:00
Michael Billington 2c8bc1180d Merge branch 'text-encoding' of https://github.com/miracle2k/python-escpos into miracle2k-text-encoding 2016-09-11 14:19:34 +10:00
Curtis // mashedkeyboard f5c706db34 Extended underline to fit the wording of the new subtitle 2016-09-01 12:10:35 +01:00
Curtis // mashedkeyboard b29ef6df69 Corrected set() command documentation
The documentation currently says that `printer.set(type="B")` is the way to bold text. It won't work - you need to use `printer.set(text_type="B")`.
2016-09-01 11:57:58 +01:00
Michael Elsdörfer f6ce7e45da Merge branch 'capabilities' into text-encoding 2016-08-26 15:29:31 +02:00
Patrick Kanzler 340a47d2f6 Merge pull request #152 from python-escpos/fix/large-image-printing
Fix/large image printing
2016-08-07 12:22:25 +02:00
Patrick Kanzler 38f9835931
fix printing of CODE128
The control sequence {A or {B or {C can't be part of the qr code.
For this the user has to supply this sequence.
2016-08-02 15:39:31 +02:00
Patrick Kanzler 13937ab0da doc update documentation regarding codepages 2016-08-02 04:42:21 +02:00
Patrick Kanzler 7c732ee615
doc fix lists 2016-08-02 04:38:04 +02:00
Patrick Kanzler 10977b06e7
doc add hint on image preprocessing 2016-08-01 14:02:49 +02:00
Patrick Kanzler fd3f1067fe
DOC update documentation on installation and CLI 2016-07-23 11:34:18 +02:00
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 685a1f504c
DOC add image helper class 2016-06-23 15:38:55 +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 a0dc993f2f
DOC add example on printing commands from binary files 2016-05-01 15:27:15 +02:00
Patrick Kanzler 7547bfddd2
DOC fix underline length in doc 2016-04-02 15:27:47 +02:00