| Age | Commit message (Collapse) | Author |
|
```
======================================================================
ERROR: test_all_parametred (tests.test_libmat2.TestCleaning.test_all_parametred) (case={'name': 'webp', 'parser': <class 'libmat2.images.WEBPParser'>, 'meta': {'Warning': '[minor] Improper EXIF header'}, 'expected_meta': {}})
----------------------------------------------------------------------
Traceback (most recent call last):
File "/builds/jvoisin/mat2/libmat2/images.py", line 109, in __init__
GdkPixbuf.Pixbuf.new_from_file(self.filename)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
gi.repository.GLib.GError: gdk-pixbuf-error-quark: Couldn’t recognize the image file format for file “./tests/data/clean.webp” (3)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/builds/jvoisin/mat2/tests/test_libmat2.py", line 557, in test_all_parametred
p1 = case['parser'](target)
File "/builds/jvoisin/mat2/libmat2/images.py", line 111, in __init__
raise ValueError
ValueError
```
Pending on https://0xacab.org/georg/mat2-ci-images/-/issues/14
|
|
|
|
|
|
|
|
|
|
Some terminals with a small number of column
could wrap the cli's output in a way that
would make the testsuite fail.
This commit break the tests in several smaller one
to mitigate this.
This issue was originally reported by eleius
[here](https://github.com/actionless/pikaur/issues/433), and forwarded as #153.
|
|
Closes #131
|
|
There is a bug in Python3.8 (https://bugs.python.org/issue38688)
triggering an infinite recursion when copying a tree
in a subfolder of the current one. We're working around it
by using a list instead of an iterator, so that Python
won't "discover" the target folder as part of the source files.
This should fix #130
|
|
Mat2 (the cli) will now copy the input file permissions
to the output file.
|
|
Due to bubblewrap's pickiness, mat2 can now be run
without a sandbox, even if bubblewrap is installed.
|
|
|
|
|
|
This should ensure that if we decide to implement
some threading in the cli, a faulty file
won't break everything.
|
|
|
|
|
|
Kudos to Sherry Taylor for reporting this issue ♥
|
|
|
|
|
|
|
|
This should close #74
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This allows the user to make use of parser.unknown_member_policy for
archive formats.
At the suggestion of @jvoisin, it also prints a scary warning if the
user explicitly chooses 'keep'.
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
- the `src` folder is now `libmat2`
- the `main.py` script is now `mat2.py`
|
|
|
|
|
|
|
|
- Simplify the multiprocessing by using a Pool
- Use some functional (♥) constructions to exit
with a return code
- Add some tests to prove that we're doing things
that are working correctly
|
|
Since I didn't notice that it was broken
until c5f51345029440ab80cfa1670d554a9d851d57c4,
it's a good idea to have some tests for this ;)
|
|
|
|
|
|
|
|
|
|
- Normalize the case
- Strip \00, \r, space and \n
- Flatten metadata lists
- Add tests for audio files
|
|
|
|
|