| •1 |
Changes to 0.4.29: |
| 2 |
|
| 3 |
- support MAGIC_SYMLINK (via follow_symlink flag on Magic constructor) |
| 4 |
- correctly throw FileNotFoundException depending on flag |
| 5 |
|
| 6 |
Changes to 0.4.28: |
| •7 |
|
| 8 |
- support "magic-1.dll" on Windows, which is produced by vcpkg |
| 9 |
- add python 3.10 to tox config |
| 10 |
- update test for upstream gzip extensions |
| 11 |
|
| 12 |
Changes to 0.4.27: |
| •13 |
|
| 14 |
- remove spurious pyproject.toml that breaks source builds |
| 15 |
|
| 16 |
Changes to 0.4.26: |
| •17 |
|
| 18 |
- Use tox for all multi-version testing |
| 19 |
- Fix use of pytest, use it via tox |
| 20 |
|
| 21 |
Changes to 0.4.25: |
| •22 |
|
| 23 |
- Support os.PathLike values in Magic.from_file and magic.from_file |
| 24 |
- Handle some versions of libmagic that return mime string without charset |
| 25 |
- Fix tests for file 5.41 |
| 26 |
- Include typing stub in package |
| 27 |
|
| 28 |
Changes to 0.4.24: |
| •29 |
|
| 30 |
- Fix regression in library loading on some Alpine docker images. |
| 31 |
|
| 32 |
Changes to 0.4.23 |
| 33 |
|
| •34 |
- Include a `py.typed` sentinel to enable type checking |
| 35 |
- Improve fix for attribute error during destruction |
| 36 |
- Cleanup library loading logic |
| 37 |
- Add new homebrew library dir for OSX |
| 38 |
|
| 39 |
Changes to 0.4.21, 0.4.22 |
| 40 |
|
| •41 |
- Unify dll loader between the standard and compat library, fixing load |
| 42 |
failures on some previously supported platforms. |
| 43 |
|
| 44 |
Changes to 0.4.20 |
| 45 |
|
| 46 |
- merge in a compatibility layer for the upstream libmagic python binding. |
| 47 |
Since both this package and that one are called 'magic', this compat layer |
| •48 |
removes a very common source of runtime errors. Use of that libmagic API will |
| 49 |
produce a deprecation warning. |
| 50 |
|
| 51 |
- support python 3.9 in tests and pypi metadata |
| 52 |
|
| 53 |
- add support for magic_descriptor functions, which take a file descriptor |
| 54 |
rather than a filename. |
| 55 |
|
| 56 |
- sometimes the returned description includes snippets of the file, e.g a title |
| •57 |
for MS Word docs. Since this is in an unknown encoding, we would throw a |
| 58 |
unicode decode error trying to decode. Now, it decodes with |
| 59 |
'backslashreplace' to handle this more gracefully. The undecodable characters |
| 60 |
are replaced with hex escapes. |
| 61 |
|
| 62 |
- add support for MAGIC_EXTENSION, to return possible file extensions. |
| 63 |
|
| 64 |
- add mypy typing stubs file, for type checking |
| 65 |
|
| 66 |
Changes in 0.4.18 |
| 67 |
|
| •68 |
- Make bindings for magic\_[set|get]param optional, and throw NotImplementedError |
| 69 |
if they are used but not supported. Only call setparam() in the constructor if |
| 70 |
it's supported. This prevents breakage on CentOS7 which uses an old version of |
| 71 |
libmagic. |
| 72 |
|
| 73 |
- Add tests for CentOS 7 & 8 |
| 74 |
|
| 75 |
Changes in 0.4.16 and 0.4.17 |
| 76 |
|
| 77 |
- add MAGIC_MIME_TYPE constant, use that in preference to MAGIC_MIME internally. |
| •78 |
This sets up for a breaking change in a future major version bump where |
| •79 |
MAGIC_MIME will change to match magic.h. |
| 80 |
- add magic.version() function to return library version |
| 81 |
- add setparam/getparam to control internal behavior |
| 82 |
- increase internal limits with setparam to prevent spurious error on some jpeg files |
| 83 |
- various setup.py improvements to declare modern python support |
| 84 |
- support MSYS2 magic dlls |
| 85 |
- fix warning about using 'is' on an int in python 3.8 |
| 86 |
- include tests in source distribution |
| 87 |
|
| 88 |
- many test improvements: |
| •89 |
-- tox runner support |
| 90 |
-- remove deprecated test_suite field from setup.py |
| 91 |
-- docker tests that cover all LTS ubuntu versions |
| 92 |
-- add test for snapp file identification |
| 93 |
|
| 94 |
- doc improvements |
| •95 |
-- document dependency install process for debian |
| 96 |
-- various typos |
| 97 |
-- document test running process |