scito
a5768ba1e6
Workaround for PYTHON < 3.10: use Union[int, None] instead of int | None
2022-12-29 22:34:07 +01:00
scito
faafb61241
fix type hint compatibility with Python < 3.11
2022-12-29 22:12:07 +01:00
scito
d5a088135e
ci: if matrix.python-version
2022-12-29 22:04:52 +01:00
scito
45a9693586
ci: fix if ${{ matrix.python-version }}
2022-12-29 21:58:44 +01:00
scito
66b41d86e6
ci: use ${{ }} for mypy python check
2022-12-29 21:52:54 +01:00
scito
89564448c6
ci: fix mypy if condition
2022-12-29 21:41:11 +01:00
scito
9ab33bd02b
sort imports
2022-12-29 21:34:14 +01:00
scito
f4ab540283
rename protobuf module as pb
2022-12-29 21:32:19 +01:00
scito
201e6510f8
add type hints (Python 3.11)
2022-12-29 21:29:20 +01:00
scito
f933cd0d32
initial mypy type checking
2022-12-29 16:30:18 +01:00
scito
f4389ca8a3
fix linting
2022-12-29 15:52:17 +01:00
scito
b89a338246
enable mypy type checking
2022-12-29 14:24:12 +01:00
scito
631bacc409
use tmp_path fixture instead of clean_up() in pytests
2022-12-29 13:44:19 +01:00
scito
833afa7c13
use 3.11-slim-bullseye, add missing package
2022-12-29 11:50:19 +01:00
scito
4209a5db3d
move abort to end, use SystemExit instead; improve colors
2022-12-29 11:18:57 +01:00
scito
d9a4c7ca9f
fix docker image digest
2022-12-29 04:36:31 +01:00
scito
829fe65b1e
ci: pip install pytest-mock
2022-12-29 04:24:00 +01:00
scito
c90526dcf2
fix undefined name 'abort' and 'qreader'
2022-12-29 04:15:36 +01:00
scito
47e84e4462
run docker capture version
2022-12-29 03:19:09 +01:00
scito
b4931856ba
apk add --no-cache nano zlib jpeg && re-enable tests
2022-12-29 02:34:29 +01:00
scito
f532dc668d
indent_size = 2 for yml
2022-12-29 01:59:54 +01:00
scito
1dee86668a
rename ARG run_tests to RUN_TESTS
2022-12-29 01:48:00 +01:00
scito
aa0de699fe
disable tests for alpine
2022-12-29 01:43:22 +01:00
scito
7e684ff19e
--build-arg run_tests=false
2022-12-29 01:35:43 +01:00
scito
b159b9e70d
apk add musl-dev and apk del .build-deps
2022-12-29 01:13:48 +01:00
scito
951878d027
apk add gcc
2022-12-29 01:02:41 +01:00
scito
2a44bbfa27
use $(apk --print-arch)
2022-12-29 00:53:47 +01:00
scito
540ae7438d
use $(uname -m)
2022-12-29 00:42:13 +01:00
scito
c346c085b6
apk add python3-dev py3-setuptools
2022-12-29 00:33:52 +01:00
scito
7cb3b2ac21
always apk add on alpine
2022-12-29 00:29:26 +01:00
scito
0eb5014eb0
ci_docker: add docker/setup-buildx-action@v2
2022-12-29 00:25:29 +01:00
scito
d4f5eb243e
change to "$TARGETARCH" == "arm64"
2022-12-29 00:02:14 +01:00
scito
b05decc10f
apk add zlib-dev jpeg-dev only for alpine linux/arm64
2022-12-28 23:58:09 +01:00
scito
21ebccbba5
apk add zlib-dev
2022-12-28 23:44:30 +01:00
scito
912825034f
add zlib for alpine/arm64 docker image
2022-12-28 23:37:54 +01:00
scito
95e7d73173
mock no_args tests
2022-12-28 23:37:21 +01:00
scito
9f0872c2d0
extract from camera
...
- add help description
- use f-strings
- handle plural correctly
- rename methods, use otp_url instead of line
- remove importlib.util
- move cv2 imports to top
- remove unnecessary global delcarations
- group image tests
2022-12-28 22:43:40 +01:00
scito
7964c687f6
make running tests optional in docker build
2022-12-28 09:02:02 +01:00
scito
1d0b568b1e
setup QEMU
2022-12-27 11:36:53 +01:00
scito
aaa7bd3da1
build also on arm64
2022-12-27 10:34:32 +01:00
scito
5ab5f84ff3
add docker label for source
2022-12-27 01:11:36 +01:00
scito
a4c4badd54
fix docker hub username
2022-12-27 00:57:49 +01:00
scito
f272c35a1f
enable docker push in ci_docker
2022-12-27 00:52:14 +01:00
scito
e4e5271c0f
github actions docker build no_qr_reader
2022-12-27 00:43:30 +01:00
scito
158564e79a
fix to_bytes() mandatory byte_order
2022-12-27 00:18:37 +01:00
scito
672d18a5ca
build docker images, run tests in docker build
...
- qreader_available flag
- echo commands in upgrade_deps.sh
2022-12-26 23:57:38 +01:00
scito
0490e227e1
docker image with qreader, 2nd image without qreader
...
- organize imports
- add qreader pytest.mark
- relaxed mode for pytest
- run tests in docker
- more tests
2022-12-26 18:31:09 +01:00
scito
2bcaa35251
organize imports
2022-12-25 11:00:15 +01:00
scito
b0b4c29e7b
improve README
2022-12-24 15:50:44 +01:00
scito
e754befb52
refactor; update setup.py
...
more verbose logging
better error messages
2022-12-24 15:30:17 +01:00