Debian Codegraph @

CHANGELOG

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