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