CHANGELOG 2.5 KB

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