Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions: Test on Python 3.13 beta #67

Merged
merged 3 commits into from
May 18, 2024

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented May 11, 2024

The Python 3.13 release notes mention puremagic 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.

https://www.python.org/downloads/release/python-3130b1/

May raise ModuleNotFoundError: No module named 'imghdr' because Python 3.13 removes it from the Standard Library.

imghdr: use the projects filetype, puremagic, or python-magic instead. (Contributed by Victor Stinner in gh-104773.)

https://docs.python.org/3.13/whatsnew/3.13.html#pep-594-dead-batteries-and-other-module-removals

The Python 3.13 release notes mention `puremagic` 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.

https://www.python.org/downloads/release/python-3130b1/

May raise `ModuleNotFoundError: No module named 'imghdr'` because Python 3.13 removes it from the Standard Library.
* https://docs.python.org/3/library/imghdr.html

> 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](python/cpython#104773).)

https://docs.python.org/3.13/whatsnew/3.13.html#pep-594-dead-batteries-and-other-module-removals
@NebularNerd
Copy link
Contributor

@NebularNerd Do you have any insight into why the two Ubuntu tests fail?

Hi @cclauss I got an email with the above question but it's not showing up in this PR when I view it, I've cut'n'pasted it from the mail. I'm not sure I can help on that, I'm still fairly new to GitHub and have not played much with the workflow side of things.

@cdgriffith the repo owner will be the best person to take a look.

@cdgriffith cdgriffith mentioned this pull request May 12, 2024
@cdgriffith cdgriffith changed the base branch from master to develop May 17, 2024 20:55
@cdgriffith cdgriffith merged commit dbd8ff4 into cdgriffith:develop May 18, 2024
8 checks passed
@cclauss cclauss deleted the patch-1 branch May 18, 2024 04:24
@cdgriffith cdgriffith mentioned this pull request Jun 16, 2024
cdgriffith added a commit that referenced this pull request Jun 16, 2024
- Adding #72 #75 #76 #81 `.what()` to be a drop in replacement for `imghdr.what()` (thanks to Christian Clauss and Andy - NebularNerd)
- Adding #67 Test on Python 3.13 beta (thanks to Christian Clauss)
- Adding #77 from __future__ import annotations (thanks to Christian Clauss
- Fixing #66 Confidence sorting (thanks to Andy - NebularNerd)

---------

Co-authored-by: Andy <NebularNerd@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants