CHANGELOG 2.7 KB

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