summaryrefslogtreecommitdiff
path: root/libmat2/__init__.py (follow)
AgeCommit message (Collapse)Author
2022-08-28Simplify the typing annotationsjvoisin
2019-05-14Please mypy wrt. the last two commitsjvoisin
2019-05-13Rework the dependency checks to distinguish required/optional onesAntoine Tenart
Rework the dependencies definition to include a 'required' flags, which is passed by the check_dependencies helper to the callers, so that they can distinguish between required and optional dependencies. This help in two ways: - The unit test for the dependencies was now failing when an optional one was missing, due to a previous rework. - Mat2's --check-dependencies was referring to "required dependencies" and was misleading for the user as some of them could be optional. Signed-off-by: Antoine Tenart <antoine.tenart@ack.tf>
2019-03-30Please mypyjvoisin
Apparently, mypy isn't able (yet?) to deal with variables that are changing their types at runtime. Python is wonderful.
2019-03-29libmat2: fix dependency checks for cmd line utilitiesAntoine Tenart
The command line checks for command line utilities are done by trying to access the executables and by throwing an exception when not found. This lead to: - The mat2 cmd line --check-dependencies option failing. - The ffmpeg unit tests failing when ffmpeg isn't installed (even though it's an optional dependency). This patch fixes it. Signed-off-by: Antoine Tenart <antoine.tenart@ack.tf>
2019-03-29libmat2: reshape the dependencies listAntoine Tenart
Invert the keys and values in DEPENDENCIES. It seems more natural to use the key as a key in check_dependencies(), and the value as the value. This also help in preparing for reworking the check_dependencies() helper. Signed-off-by: Antoine Tenart <antoine.tenart@ack.tf>
2019-02-03Whenever possible, use bwrap for subprocessesintrigeri
This should closes #90
2018-10-23Improve type annotation coveragejvoisin
2018-10-22Implement support for .avi files, via ffmpegjvoisin
- This commit introduces optional dependencies (namely ffmpeg): mat2 will spit a warning when trying to process an .avi file if ffmpeg isn't installed. - Since metadata are obtained via exiftool, this commit also refactors a bit our exfitool wrapper.
2018-10-12Bump mypy typing coveragejvoisin
2018-10-03libmat2: fix shebanggeorg
Relates 0a2a398c9c797f8a93e8a4d91e80c0582f127354
2018-09-06Change a bit the previous commitjvoisin
2018-09-05Unknown Members: make policy use an EnumDaniel Kahn Gillmor
Closes #60 Note: this changeset also ensures that clean.cleaned.docx is removed up after the pytest is over.
2018-09-01Bump the coverage back to 100%jvoisin
2018-09-01Add archlinux to the CIjvoisin
2018-07-15Add a check for a missed dependency in `./mat2 -c`jvoisin
2018-07-10Implement a check for dependencies in mat2jvoisin
Example use: ``` $ mat2 -c Dependencies required for MAT2 0.1.3: - Cairo: yes - Exiftool: yes - GdkPixbuf from PyGobject: yes - Mutagen: yes - Poppler from PyGobject: yes - PyGobject: yes ``` This should close #35
2018-07-08Fix some pep8 issues spotted by pyflakesjvoisin
2018-07-06Add support for .txt filesjvoisin
2018-06-10Fix and add a test for explicitly non-supported formatsjvoisin
2018-05-18Rename some files to simplify packagingjvoisin
- the `src` folder is now `libmat2` - the `main.py` script is now `mat2.py`
2018-03-19Remove some useless filesjvoisin
2018-03-18Improve the testsuitejvoisin