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