Commit Graph
100 Commits
Author SHA1 Message Date
scito 9463dc3e88 add network none to docker run which fixes #284 2024-09-08 12:57:59 +02:00
scito 5986cf32ff disable CI tests on Windows due to
2024-08-30T07:49:08.0488465Z tests\extract_otp_secrets_img_unit_test.py ....                          [  3%]
2024-08-30T07:49:09.6248858Z Windows fatal exception: access violation
2024-08-30T07:49:09.6249406Z
2024-08-30T07:49:09.6249686Z Current thread 0x000014f4 (most recent call first):
2024-08-30T07:49:09.6251542Z   File "C:\hostedtoolcache\windows\Python\3.12.5\x64\Lib\site-packages\extract_otp_secrets.py", line 919 in log_debug
2024-08-30T07:49:09.6254028Z   File "C:\hostedtoolcache\windows\Python\3.12.5\x64\Lib\site-packages\extract_otp_secrets.py", line 220 in get_payload_from_otp_url
2024-08-30T07:49:09.6255710Z   File "C:\hostedtoolcache\windows\Python\3.12.5\x64\Lib\site-packages\extract_otp_secrets.py", line 227 in extract_otp_from_otp_url
2024-08-30T07:49:09.6257046Z   File "C:\hostedtoolcache\windows\Python\3.12.5\x64\Lib\site-packages\extract_otp_secrets.py", line 537 in extract_otps_from_files
2024-08-30T07:49:09.6258334Z   File "C:\hostedtoolcache\windows\Python\3.12.5\x64\Lib\site-packages\extract_otp_secrets.py", line 327 in extract_otps
2024-08-30T07:49:09.6259459Z   File "C:\hostedtoolcache\windows\Python\3.12.5\x64\Lib\site-packages\extract_otp_secrets.py", line 185 in main
2024-08-30T07:49:09.6260526Z   File "D:\a\extract_otp_secrets\extract_otp_secrets\tests\extract_otp_secrets_test.py", line 572 in test_extract_verbose
2024-08-30T07:49:09.6261701Z   File "C:\hostedtoolcache\windows\Python\3.12.5\x64\Lib\site-packages\_pytest\python.py", line 159 in pytest_pyfunc_call

2024-08-30T07:49:11.0068928Z tests\extract_otp_secrets_test.py .................................
2024-08-30T07:49:11.0159444Z ##[error]Process completed with exit code 1.
2024-08-30T07:49:11.0171776Z ##[debug]Finishing: Test with pytest
2024-08-30 10:37:45 +02:00
scito 64980e71df update to protobuf to 5.28.0, fix test and remove mypy ignore 2024-08-30 10:37:45 +02:00
scito ec05910347 update protobuf to 5.27.2 and other deps 2024-06-30 10:08:58 +02:00
scito c663a2de8f update codeql to node20 actions 2024-06-09 09:56:32 +02:00
scito b77e8cc190 build nuitka with clang 2024-06-09 09:46:01 +02:00
scito 9fd3333a3a update to node20 actions 2024-06-09 09:33:39 +02:00
scito 0ae5f296e8 update deps 2024-06-09 08:59:27 +02:00
scito 77cdf7e41f update deps: protobuf, cv2 2024-06-07 19:25:53 +02:00
scito c175909227 daily dependabot updates 2024-06-07 14:50:13 +02:00
scito cc363b4c57 update nuitka 2.3; fix build order; measure pyinstaller and nuitka 2024-06-02 10:22:34 +02:00
scito e196c76db4 minor: update deps and README 2024-05-31 08:53:53 +02:00
scito 07416678a0 lift python requirement to 3.8 2024-05-29 22:27:26 +02:00
scito e4d0bb418d use latest version of opencv also for macos 2024-05-29 22:17:59 +02:00
scito 7069156f54 upgrade ci actions to node 20 versions
https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
2024-05-29 22:08:56 +02:00
scito 384d98ff8b cleanup Python 3.7 requirements 2024-05-29 21:56:20 +02:00
scito 7f314cedd8 bump protobuf from 5.26.1 to 5.27.0 2024-05-28 22:14:21 +02:00
scito a822abbba1 add export of plain otpauth url list, fix #196 2024-04-01 10:57:53 +02:00
scito b41250c23a ci: upgrade to actions/upload-artifact@v4 2024-02-23 11:05:30 +01:00
scito d8545ea22b ci: use os: macos-12 for release build
avoid brew zbar failure
2024-02-15 22:25:29 +01:00
scito 1f8d9d171b bump versions 2024-02-02 09:56:31 +01:00
scito f9ce96fb57 improve cv2 typging; bump versions 2024-01-12 11:01:34 +01:00
scito e676bb7ea7 feat: do not use cached python versions when run by schedule 2024-01-11 22:05:33 +01:00
scito 578eda8744 fix: disable Python 3.x in tests
unit tests are in 3.x, but not 3.12 or 3.11
2024-01-08 21:51:18 +01:00
scito 157e247416 enable python 3.12 2023-10-06 12:06:02 +02:00
scito a0bf28f4cc enable python 3.12 2023-10-06 12:06:02 +02:00
scito fd8b165212 enable python 3.12 2023-10-06 12:06:02 +02:00
scito a467955b13 bump versions 2023-10-05 20:19:31 +02:00
scito eea0179b5e bump versions 2023-09-22 11:56:20 +02:00
scito d20d709d6e bump versions 2023-09-05 13:10:47 +02:00
scito a0c21273e8 Bump mypy and protobuf 2023-08-19 08:39:22 +02:00
scito 8e70ae9da9 bump protobuf to 24.0, cv2 and mypy 2023-08-12 12:44:45 +02:00
scito 15cbd77b07 improve numpy typing 2023-08-06 21:45:56 +02:00
scito 2610afe5d8 remove Python 3.7 workarounds, fixes #103 2023-08-06 19:29:59 +02:00
scito 8a4e2e3641 upgrade docker debian from bullseye (11) to bookworm (12) 2023-08-06 19:29:59 +02:00
scito a0cf4246c1 remove deprecated pkg_resources package 2023-08-06 19:29:59 +02:00
scito 7c295e0963 fix #106: avoid UnboundLocalError for count_Xotp_entries: check has_Xotp 2023-07-23 14:32:42 +02:00
scito 72bac4d951 bump versions: cv2 4.8 compatibility 2023-07-07 12:43:38 +02:00
scito 6c16d28194 bump versions 2023-06-22 20:48:42 +02:00
scito ad3f184a56 upgrade pyinstaller 3.11 2023-05-21 08:21:11 +02:00
scito 994f96f749 Upgrade protobuf 23.0 2023-05-14 19:37:03 +02:00
scito 8177a97d39 bump pylint version 2023-05-07 09:05:36 +02:00
scito 0c0ac817b1 Bump versions 2023-05-05 10:31:56 +02:00
scito 6932793236 ci: disable Python 3.10 testing only for macos 2023-04-28 13:33:10 +02:00
scito 9c3edea75c fix/workaround build on macos: exclude 3.10 on macos in ci
See issue https://github.com/actions/setup-python/issues/649
2023-04-15 10:43:26 +02:00
scito 0ec1314b3d add nuitka to local build.sh; bump versions 2023-04-15 10:43:26 +02:00
scito 414e80c469 bump versions 2023-03-25 14:51:58 +01:00
scito 7f6959783f bump versions 2023-03-10 08:48:50 +01:00
scito 419f65fdea improve pyzbar missing warning; bump libs 2023-03-05 11:53:52 +01:00
scito eccb1948c7 improve README for macOS 2023-02-26 21:19:45 +01:00
scito 01a38e570c optional build of exe and pipenv; update README 2023-02-25 09:24:37 +01:00
scito 11e530e04a docker no-install-recommends 2023-02-18 17:03:18 +01:00
scito 9e334748ac move Dockerfiles to docker/; update README 2023-02-18 17:03:18 +01:00
scito 6bf02d045c write txt file in cv2 and cmd; upgrade protobuf 4.22.0 2023-02-17 19:22:58 +01:00
scito 5555dda9c2 release: update release notes text 2023-02-12 19:51:19 +01:00
scito eb8ea3330f release: improve macos docs after macos tests
- build macos dmg
    - however, do not upload macos dmg to assets as it cannot be
      executed since the app and installer are not signed and notarized
- upload artifacts
- tested executable on macOS
2023-02-12 19:00:29 +01:00
scito 75e5d2671f fix: rename vscode workspace 2023-02-12 19:00:29 +01:00
scito 5e94c43140 ci_release: fix get tag name (checkout repo); print meta values 2023-02-12 19:00:29 +01:00
scito 8df61f6ed7 ci: no docker login for dependabot 2023-02-07 10:51:07 +01:00
scito ca23497c9a docu clean ups 2023-02-06 20:42:54 +01:00
scito ebfe0dc58d ci_release: add release notes table 2023-02-06 11:54:09 +01:00
scito 78118c73e8 make zbar lib optional
- refactor: global variable renaming
2023-02-05 21:24:57 +01:00
scito 4fc5559e15 add version number to asset executables 2023-02-05 21:24:57 +01:00
scito 7faf530863 reproducible builds, build.sh: linux/arm64 2023-02-05 21:24:57 +01:00
scito 709aa111be ci_release: build linux arm64 exe 2023-02-03 22:14:53 +01:00
scito fe60acb24f release: upload hashes as binary to keep eol 2023-01-30 20:44:33 +01:00
scito 5c36f07f41 ci_release: build exe without upload on PR 2023-01-30 14:39:50 +01:00
scito 861d7d0da8 build buster image in ci_docker for speeding up releases 2023-01-30 11:28:07 +01:00
scito 63fc21cc90 ci_release: upload hashes and run on pull_request and run scheduled 2023-01-30 11:28:07 +01:00
scito d234cf4112 cv2: fix save as csv/json/keepass 2023-01-30 11:28:07 +01:00
scito 970dbd3759 cv2: save as csv/json/keppass by key command 2023-01-29 16:50:55 +01:00
scito 197347a3e9 update README 2023-01-27 20:58:33 +01:00
scito 365d5ac432 use hub.docker for linux exe build
since it is more stable and thus faster
2023-01-26 01:14:45 +01:00
scito 88ff584e47 ci: workaround for failing builds 2023-01-26 00:18:41 +01:00
scito dbb5d8f755 workaround ghcr.io failed to copy
failed to copy: io: read/write on closed pipe

- use DockerHub instead of dhcr.io
- ref: https://github.com/containerd/containerd/issues/7972
2023-01-25 23:46:22 +01:00
scito 580f94256f Add files of Visual C++ 2013 Redistributable Package
- add files of vcredist_x64.exe as binary data to pyzbar
- thus avoid manual installation of vcredist_x64.exe
- test all qr readers in exe smoketests
- improve README
2023-01-25 23:14:38 +01:00
scito f4bff86a5c fix curl upload windows
- set for pre-releases 99 in windows version
- fix TZ: use TZ=Europe/Zurich
2023-01-25 01:54:20 +01:00
scito cff5fe1cda ci_release: ignore response and remove silent mode 2023-01-24 23:18:28 +01:00
scito 576b1e68c5 ci: ignore markdown files 2023-01-24 23:00:32 +01:00
scito 84e1922979 fix VERSION_PATCH for pre-tags, e.g. 1b1 2023-01-24 22:48:22 +01:00
scito 7f89168b92 ci_release: change order of build matrix 2023-01-24 22:15:13 +01:00
scito b9f17c4a95 rename build docker jobs 2023-01-24 22:12:02 +01:00
scito 6a7a7233a4 build and upload executables created by PyInstaller
- create release on tag push
- build executables by PyInstaller:
    - extract_otp_secrets_linux_x86_64 (glibc 2.28)
    - extract_otp_secrets_win_x86_64.exe
    - extract_otp_secrets_macos_x86_64 (untested)
- add --version
- build linux executable in docker container
- update README
    - add TOC
    - improve badges
    - add PyInstaller section
- docker
    - build BASE_IMAGE as ARG
    - copy only required files to image
    - add .alias
- build.sh
    - fix clean
    - fix generate results
    - generate TOC
2023-01-24 21:19:38 +01:00
scito 445d77783c update Pipfile.lock 2023-01-17 21:23:46 +01:00
scito f0134fa907 add zbar installation for archlinux [skip ci] 2023-01-17 21:04:42 +01:00
scito e0588285c9 require qreader < 2.0.0 due to breaking changes
- add more classifiers
2023-01-15 10:44:55 +01:00
scito ff9401687e ci: do not run ci tests on pull_request 2023-01-14 09:42:44 +01:00
scito 2478edb7a1 decode only QR in zbar (which avoids assertion pdf417)
Warning on Windows:
WARNING: .\zbar\decoder\pdf417.c:89: <unknown>: Assertion "g[0] >= 0 && g[1] >= 0 && g[2] >= 0" failed.

        dir=0 sig=1b455 k=3 g0=04a g1=ffffffff g2=b78 buf[0000]=
2023-01-13 21:28:38 +01:00
scito 5e439b9396 update Pipfile.lock packages 2023-01-11 20:48:20 +01:00
scito 5c4d3ce696 improve README 2023-01-07 09:39:15 +01:00
scito ec09b5daad improve README; add google-authenticator-exporter link 2023-01-06 10:13:51 +01:00
scito 2ed923591e use only cv2_draw_box, move core functions to top
- improve camera test
- add more tests
- improve README
    - add "How to export otp secrets from Google Authenticator app"
    - reorder: put usage before installation
    - add "Full local build"
2023-01-04 23:12:38 +01:00
scito 36fd0c0bb6 add test keepass with no data 2023-01-03 23:51:33 +01:00
scito b215b78dad test extract_otps_from_camera() 2023-01-03 23:51:33 +01:00
scito 851cb6532c improve build and README
- clean pip
- do not use sudo anymore
- add missing mypy-protobuf package
- sort package dependencies
- fix order of build calls
- add frame color docu to README
2023-01-03 23:51:33 +01:00
scito 2bef64e5f6 ci: no Pytest coverage comments for tags
Create commit comment
##[error]HttpError: No commit found for SHA: 19b3368
##[error]No commit found for SHA: 19b3368
2023-01-03 23:51:33 +01:00
scito 3502294172 remove dependency to module and fix build script 2023-01-03 02:00:07 +01:00
scito 2707e244be update README 2023-01-03 01:04:44 +01:00
scito 4ba0fad000 capture QR codes from camera and major refactoring
- add GUI for QR code capturing from camera (CV2 is used)
- support different QR readers: ZBAR,QREADER,QREADER_DEEP,CV2,CV2_WECHAT
- support several input files
- add option to ignore duplicate otps
- write warnings and errors to stderr
- add output coloring
- rename project from extract_otp_secret_keys to extract_otp_secrets
- improve help
- clean verbose level output
- use Python type hints and check with mypy
- use f-strings
- clean up code
- add more tests
- calculate code coverage
- use src-layout: move files and folders
- support wheel packing
- enhance README.md
- bugfixes
    * fix -k -
    * fix utf-8 encoding on windows
2023-01-03 00:28:32 +01:00
scito 9d052dc78a refactor image import and add Alpine docker image
- dynamic import of QR reader
- build docker also for arm64
2023-01-03 00:26:46 +01:00