Include a py.typed sentinal to enable type checking
Improve fix for attribute error during destruction
Cleanup library loading logic
Add new homebrew library dir for OSX
Changes to 0.4.21, 0.4.22
Unify dll loader between the standard and compat library, fixing load
failures on some previously supported platforms.
Changes to 0.4.20
merge in a compatibility layer for the upstream libmagic python binding.
Since both this package and that one are called 'magic', this compat layer
removes a very common source of runtime errors. Use of that libmagic API will
produce a deprecation warning.
support python 3.9 in tests and pypi metadata
add support for magic_descriptor functions, which take a file descriptor
rather than a filename.
sometimes the returned description includes snippets of the file, e.g a title
for MS Word docs. Since this is in an unknown encoding, we would throw a
unicode decode error trying to decode. Now, it decodes with
'backslashreplace' to handle this more gracefully. The undecodable characters
are replaced with hex escapes.
add support for MAGIC_EXTENSION, to return possible file extensions.
add mypy typing stubs file, for type checking
Changes in 0.4.18
Make bindings for magic_[set|get]param optional, and throw NotImplementedError
if they are used but not supported. Only call setparam() in the constructor if
it's supported. This prevents breakage on CentOS7 which uses an old version of
libmagic.
Add tests for CentOS 7 & 8
Changes in 0.4.16 and 0.4.17
add MAGIC_MIME_TYPE constant, use that in preference to MAGIC_MIME internally.
This sets up for a breaking change in a future major version bump where
MAGIC_MIME will change to mathch magic.h.
add magic.version() function to return library version
add setparam/getparam to control internal behavior
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps python-magic from 0.4.22 to 0.4.23.
Changelog
Sourced from python-magic's changelog.
... (truncated)
Commits
5e1f150
add changelog for 0.4.23ae483dc
Update tests and docker config for newer versions816e4d7
Cleanup library loading44d01df
actually try building package29450ec
add py.typed sentinal per https://www.python.org/dev/peps/pep-0561/#packaging...e6d7ee0
Merge pull request #244 from jspricke/fix_del_cookie12d0ea0
Check for cookie attribute before trying to delete it0ab68b2
Revert "Fix bug in Magic when destructor called too early"53aa709
Merge pull request #243 from EtiennePelletier/fix_typo3174a78
Fix typo (compatability --> compatibility)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)