Commit Graph

66 Commits

Author SHA1 Message Date
Patrick Kanzler faa9414da5 move marker down to other requires 2020-05-09 02:15:13 +02:00
Patrick Kanzler 2c4552a528 mark as requiring at least python 3.5 2020-05-09 02:14:23 +02:00
Patrick Kanzler fe08fc1469 drop pypy 2020-05-09 01:35:00 +02:00
Patrick Kanzler 95ec6d5c08 update hypothesis 2020-05-09 00:39:41 +02:00
Patrick Kanzler e1e1ccb3f2 update trove identifiers 2020-05-08 23:50:28 +02:00
Patrick Kanzler 2d97c0bbbd improve package structure with capabilities file 2019-06-19 14:14:59 +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 6fb23d6826
remove test from setup.py (#297)
fixes #294
2018-05-15 00:34:43 +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 cd1bcb57b4 remove bugtrack_url
this is not supported by setuptools
2017-10-08 22:12:53 +02:00
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