- Support file 5.41.
- Support os.PathLike types
- Fix compat mode handling with empty mime string
- Cleanup library loading
- add py.typed sentinal per https://www.python.org/dev/peps/pep-0561/#p…
- Check for cookie attribute before trying to delete it
- Revert "Fix bug in Magic when destructor called too early"
- Fix yet another import error
- add more doc pointers for compat mode, and enable PendingDeprecationW…
- restore python 2.7 to setup.py, to preserve back compat
- document libmagic compat layer
- prefix add_compat with an underscore to avoid namespace pollution
- remove from_open_file, since its duplicative with from_descriptor and…
- move typing stubs next to implementation
- temorarily remove dropped support for python2
- Revert "Remove Python2 from the tests"
- Merge branch 'master' into redo-compat
- Remove Python2 from the tests
- Add support for Python 3.9
- Added support for magic_descriptor routine
- Handle undecodable characters in description
- Handle libmagic versions that don't support MAGIC_EXTENSION
- MAGIC_EXTENSION support (file --extension)
- support changed mime types in test
- Fix tests with file 5.39
- add docker tests for archlinux
- Fallback to default behavior on setparam failure
- Fix bug in Magic when destructor called too early
- sheep Create basic stub file for magic.py
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=19
- remove patches not necessary anymore:
- magic-new-mime.patch
- magic-pep8.patch
- magic-tests.patch
- magic-new-file.patch
- add patch fix-test.patch and fix-test-tumbleweed.patch to adapt the `file` test outputs to OpenSUSE.
- update to version 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.
- update to version 0.4.16 and 0.4.17 (changelog is combined upstream):
- 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
- increase internal limits with setparam to prevent spurious error on some jpeg files
- various setup.py improvements to declare modern python support
- support MSYS2 magic dlls
- fix warning about using 'is' on an int in python 3.8
- include tests in source distribution
- many test improvements:
- tox runner support
- remove deprecated test_suite field from setup.py
- docker tests that cover all LTS ubuntu versions
- add test for snapp file identification
- doc improvements
- document dependency install process for debian
- various typos
OBS-URL: https://build.opensuse.org/request/show/822791
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=13
* Few test tweaks
- Enable tests
- Add patch to fix gzip detection in tests:
* magic-tests.patch
- Add patch to fix working with new file:
* magic-new-file.patch
- Add patch to work with new mimedb:
* magic-new-mime.patch
- Add patch magic-pep8.patch to have other patches apply cleanly
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-magic?expand=0&rev=9