CHANGELOG 2.8 KB

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