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