0.4.27-23-g8eecfb7.travis-ci-test-on-python-3-13-beta.patch 1.2 KB

123456789101112131415161718192021222324252627
  1. Subject: Travis CI: Test on Python 3.13 beta
  2. Origin: upstream, commit 0.4.27-23-g8eecfb7 <https://github.com/ahupp/python-magic/commit/0.4.27-23-g8eecfb7>
  3. Author: Christian Clauss <cclauss@me.com>
  4. Date: Sat May 11 08:19:57 2024 +0200
  5. Forwarded: not-needed
  6. The Python 3.13 release notes mention `python-magic` as one of the alternatives for `imghdr` which was removed from the Standard Library so let's ensure that its tests pass on Python 3.13 beta.
  7. https://www.python.org/downloads/release/python-3130b1/
  8. May raise `ModuleNotFoundError: No module named 'imghdr'` because Python 3.13 removes it from the Standard Library.
  9. * https://docs.python.org/3/library/imghdr.html
  10. > imghdr: use the projects [filetype](https://pypi.org/project/filetype/), [puremagic](https://pypi.org/project/puremagic/), or [python-magic](https://pypi.org/project/python-magic/) instead. (Contributed by Victor Stinner in [gh-104773](https://github.com/python/cpython/issues/104773).)
  11. https://docs.python.org/3.13/whatsnew/3.13.html#pep-594-dead-batteries-and-other-module-removals
  12. --- a/.travis.yml
  13. +++ b/.travis.yml
  14. @@ -12,6 +12,7 @@
  15. - "3.10"
  16. - "3.11"
  17. - "3.12"
  18. + - "3.13"
  19. install:
  20. - pip install coverage coveralls codecov