CHANGELOG 2.9 KB

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