Commit Graph

53 Commits

Author SHA1 Message Date
Patrick Kanzler d78a6f1699
completely fix tests
The feature use_coverage of hypothesis caused the failing tests, because
the printer_file_test is sensitive to the coverage analysis of
hypothesis.

Fixed by disabling use_coverage for the crashing tests
2017-09-27 10:38:42 +02:00
Patrick Kanzler 5e784c060a
fix tests failing (for now)
hypothesis introduced a regression in 3.29.0 (or at least changed
behaviour). Until I have found the problem I will pin it to the last
working version.

Also two tests should be prevented from failing when they are slow.
2017-09-27 10:29:19 +02:00
Patrick Kanzler 5bed0bfbb4
fix name of pyyaml for PyPi 2017-08-09 10:41:25 +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 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 024b0df7d2
added new trove for 3.6 and 3.7 2017-05-24 10:58:55 +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
Patrick Kanzler 3ee787e8b1
change license to MIT 2017-01-31 03:55:50 +01:00
Patrick Kanzler 337e8ee19e
add flake8-checks to travis 2017-01-30 02:29:08 +01:00
Patrick Kanzler ca880dd8ec
remove trailing whitespace in version.py 2017-01-30 01:44:15 +01:00
Patrick Kanzler 43e30707be
add flake8 config 2017-01-30 01:36:07 +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 Billington 7b68d97f5f test fixes - just case-changes to match code page names, seems to need 'future' pip module 2016-09-13 20:28:54 +10:00
Patrick Kanzler f467cacdd8
improve import capabilities from a submodule
The capabilities are now imported as a submodule from
mike42/escpos-printer-db
fixes #174
2016-09-02 17:13:38 +02:00
Michael Elsdörfer 4496ea91bd Make pytest the test runner. 2016-08-30 13:17:41 +02:00
Michael Elsdörfer ea7769f8b2 Merge remote-tracking branch 'origin/development' into capabilities 2016-08-30 13:04:17 +02:00
Michael Elsdörfer a07f84a5bc Match the current printer-db format. 2016-08-30 12:26:09 +02:00
Michael Elsdörfer 5c3d7dab72 Change setup.py shebang.
This supports using the current virtualenv.
2016-08-26 10:30:29 +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 80b714fdae
add basic argcomplete support 2016-07-23 10:39:40 +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 c13a0715e4
SETUP fix trove classififiers 2016-06-24 11:55:27 +02:00
Patrick Kanzler 5be81e4703
SETUP register cli entry point in setuptools 2016-06-23 16:53:58 +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 6697922b74 refactor PEP8 and code style 2016-06-19 12:30:57 +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
Davis Goglin 76f300ea18 Fix text argument 2016-03-28 14:51:48 -07:00
Davis Goglin c26c875b61 Convert ini format to yaml format. 2016-03-28 09:58:42 -07:00
Davis Goglin 39e912bef4 I guess localconfig needs future 2016-03-28 09:58:42 -07:00
Davis Goglin 1adc66992d Replace future and ConfigParser with localconfig 2016-03-28 09:58:42 -07:00
Davis Goglin 6096c15b80 Add future requirement to be able to use configparser 2016-03-28 09:58:42 -07:00
Patrick Kanzler 81b3c1a63a
DOC add bugtrack_url 2016-03-28 17:18:28 +02:00
Patrick Kanzler 64e63b0180 PCKG automatically generate version from git-tags
* uses setuptools_scm
2016-03-11 14:46:36 +01:00
Patrick Kanzler e49c35abc1 PCKG fix setup.py and improve Manifest 2016-03-11 14:46:36 +01:00
Patrick Kanzler 5d5412ba73 REFACTOR use bytes in constants-section
adds six for cross-version int/byte-conversion
2016-03-08 20:07:16 +01:00
Patrick Kanzler d672ca1268
improve packaging and test environment 2016-02-11 18:37:13 +01:00
Patrick Kanzler 95f5b5ed48 Merge changes from 'master' into 'development'
(merges in the version bump)
2016-02-08 17:44:26 +01:00
Patrick Kanzler 331fe6a93a version bump to 1.0.9 2016-01-24 15:32:54 +01:00
Patrick Kanzler f25521f22f REFACTOR fix minor PEP8 and similar mistakes 2016-01-08 03:34:14 +01:00
Patrick Kanzler 020ba4145c DOC add python version information to setup 2016-01-07 23:22:31 +01:00
Patrick Kanzler 8b8ab80e5f ADD travis-configuration-file and comments in setup.py 2016-01-05 10:39:28 +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
Patrick Kanzler 8b5798eedf ADD requirements.txt and requirements to setup.py 2015-11-27 23:13:48 +01:00
Manuel F Martinez 7e3b6ce586 Updated README and documentation 2015-10-27 13:45:15 -07:00
Manuel F Martinez 37d7f34241 Updated project version 2015-08-22 13:10:13 -07:00
Manuel F Martinez e623799fd7 Updated setup URLs 2015-06-04 15:55:14 -07:00