Patrick Kanzler
c7c01cdbff
fix rtd theme ( #553 )
...
* use rtd_theme
* add types for serial
* annotate types where possible
* fix imports
2023-08-25 01:19:23 +02:00
Patrick Kanzler
c11d192e65
Fix import issues with qrcode in sphinx 7.2 ( #552 )
...
* 7.2 introduces the issue
* mock module qrcode for documentation build
This prevents issues with sphinx 7.2
2023-08-24 23:02:33 +02:00
Patrick Kanzler
3177c8d411
split off dependencies for optional installation ( #546 )
...
* add inheritance diagrams to all printers and exceptions
* split off printer implementations into separate files
* add wrapper that thros RuntimeError if not importable
* add dependency check for lp
* add dependency check for pyserial
* added check for usability
* import Win32Raw
* include WIn32Raw in documentation
* enable all extras on tox
* update github workflow
2023-08-17 01:37:50 +02:00
Patrick Kanzler
fbabd8ed88
Drop Py37, improve typing and docstrings ( #544 )
...
Drops Py3.7, improves typing and adds a mypy config, improves the docstrings and isorts the imports.
* configure isort
* sort with isort
* add github action
* enable flake8-docstrings
* fix docstrings
* add mypy env
* no implicit optional
* add type for raw
* add some type hints
2023-08-15 01:03:36 +02:00
Patrick Kanzler
2b62c8e28d
modernize and cleanup documentation ( #542 )
...
* disable system packages on rtd
* install pycups on rtd
* enable cups binding in documentation
* document CupsPrinter
* fix formatting
* revise methods and installation
* revise user/printers
* revise raspi section
* further revise
2023-08-10 01:38:47 +02:00
Patrick Kanzler
4c2dcdfac6
Clean up tests and migrate ( #540 )
...
* migrate
* abstract base class test
* remove assert_equal in test_cli
* remove nose from test_cli
* remove nose dependencies
* use tempfile
* configure coverage
* flag python version in name
* enable comment
* drop EOL py37
2023-08-10 00:18:02 +02:00
Patrick Kanzler
60c4f481ae
Add printer profile list to documentation ( #536 )
...
* add first draft of printer profile listing
* add todos
* Update doc/capability_templates/capabilities-template.jinja
* Update doc/capability_templates/capabilities-template.jinja
* restructure documentation
* add encoding list
* add color and encoding table
* add notes on usage
* add feature table
2023-07-29 02:02:13 +02:00
Patrick Kanzler
757fe3328c
fix passenv
2023-04-19 22:18:25 +02:00
Patrick Kanzler
0a8d8ae6c4
py311 in tests
2023-04-19 22:15:47 +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
f7962576b4
fix tox config
2020-05-11 23:44:10 +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
Patrick Kanzler
7ea58625e6
use tox plugin for github
2020-05-09 01:08:16 +02:00
Patrick Kanzler
95ec6d5c08
update hypothesis
2020-05-09 00:39:41 +02:00
Patrick Kanzler
4836dcd486
change pytest call in tox
2020-05-09 00:27:58 +02:00
Patrick Kanzler
c53575a155
update tox config
2020-05-09 00:02:28 +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
0461adc212
restrict hypothesis-version to below 4
2019-06-04 22:30:23 +02:00
Patrick Kanzler
f649814091
Fix travis-builds and tests in general ( #295 )
...
* add explicit location of capabilities.json for travis
* pass on env variables in tox builds
* drop support for python 3.3 and remove python3.3 from supported versions list
2018-05-14 18:06:31 +02:00
Patrick Kanzler
a748563395
blacklist hypothesis version
2018-05-13 18:04:48 +02:00
Patrick Kanzler
01e28bbcf6
ammend blacklisting from cd1bcb57b4
...
the last comment was a bit rushed and did not properly blacklist both
bad versions of pytest
2017-12-03 23:49:46 +01:00
Patrick Kanzler
2a7e2a6a36
blacklist pytest 3.3.0
...
see pytest-dev/pytest#2957
2017-12-03 23:43:23 +01: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
27c843935f
add viivakoodi to dep in tox-file
2017-08-04 15:17:05 +02: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
43e30707be
add flake8 config
2017-01-30 01:36:07 +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
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
Patrick Kanzler
1b2f509758
use jaconv instead of jcconv for japanese chars
...
jaconv is available for more Python-versions and seems to be more
professional. Apart from that I added jaconv to the test-requirements
but not the requirements. (If the katakana-stuff really works we can
later add it as a real dependency)
2016-09-27 20:31:39 +02:00
Patrick Kanzler
915adf8fd3
fix file-printer-tests by using pytest-mock
2016-09-27 20:05:16 +02:00
Michael Elsdörfer
68c17f1181
Generate coverage reports.
2016-08-30 15:57:51 +02:00
Michael Elsdörfer
4496ea91bd
Make pytest the test runner.
2016-08-30 13:17:41 +02:00
Patrick Kanzler
a2e188cecf
move pypy3 to the allowed failures and add hypothesis
...
pypy3 is not compatible with hypothesis, which is needed for testing
2016-08-02 00:10:39 +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
Davis Goglin
76f300ea18
Fix text argument
2016-03-28 14:51:48 -07:00
Patrick Kanzler
126e0e269a
ADD coverage analysis
...
* branch coverage
* visualization with codecov.io
* added codecov-badge to README
2016-03-22 12:07:21 +01:00
Michael Billington
8b454c4765
Clean up non-float value, add v3.5 to tox test
2016-03-17 21:59:47 +11:00
Patrick Kanzler
70307d0f24
FIX tox not executing nosetests
2016-03-08 20:07:16 +01:00
Patrick Kanzler
029549aaae
IMPROVE packaging and testing
...
* uses now tox (currently with no tests) on python 2.7 and 3.4
* upgraded setup.py to setuptools
2015-12-30 16:58:28 +01:00