1
0

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

1234567891011121314151617181920212223242526
  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. 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.
  6. https://www.python.org/downloads/release/python-3130b1/
  7. May raise `ModuleNotFoundError: No module named 'imghdr'` because Python 3.13 removes it from the Standard Library.
  8. * https://docs.python.org/3/library/imghdr.html
  9. > 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).)
  10. https://docs.python.org/3.13/whatsnew/3.13.html#pep-594-dead-batteries-and-other-module-removals
  11. --- a/.travis.yml
  12. +++ b/.travis.yml
  13. @@ -12,6 +12,7 @@
  14. - "3.10"
  15. - "3.11"
  16. - "3.12"
  17. + - "3.13"
  18. install:
  19. - pip install coverage coveralls codecov