Skip to content

Dependency Update - PEP 594 - Installs standard-imghdr dependency#117

Open
NicolasFlandrois wants to merge 1 commit intowustho:masterfrom
NicolasFlandrois:master
Open

Dependency Update - PEP 594 - Installs standard-imghdr dependency#117
NicolasFlandrois wants to merge 1 commit intowustho:masterfrom
NicolasFlandrois:master

Conversation

@NicolasFlandrois
Copy link

As of PEP-594, for Python 3.13 the imghdr module has been removed from standard library (deprecated since Python 3.11). cf: https://peps.python.org/pep-0594/#imghdr

EPY program requested this dependency on fresh install on Python 3.13 . This patch install the package by default, regardless of Python version. If already installed in a lower Python version, it will update the package. If the python is >3.13.0, it will install the package.

As of PEP-594, for Python 3.13 the `imghdr` module has been removed from standard library (deprecated since Python 3.11).
cf: https://peps.python.org/pep-0594/#imghdr

EPY program requested this dependency on fresh install on Python 3.13 .
This patch install the package by default, regardless of Python version. If already installed in a lower Python version, it will update the package. If the python is >3.13.0, it will install the package.
@NicolasFlandrois
Copy link
Author

Hello Benawi Adha "Wustho",

Thank you for considering this Pull Request. It will improve users' experience when installing Python 3.13 and higher.
The newer Python version deprecates this standard library, and the pull request simply installs what used to be a standard library.

@holytrousers
Copy link

Thank you @NicolasFlandrois for this PR.
epy stopped working after updating python and now it works back.

@NicolasFlandrois
Copy link
Author

NicolasFlandrois commented Dec 23, 2024

Thank you @NicolasFlandrois for this PR.
epy stopped working after updating python and now it works back.

I hope the PR will go through, to ease future installations and less technically savy people.

Glad it could help someone.

@user-1-2-3-4-5
Copy link

I hope the PR will go through, to ease future installations and less technically savy people.

Also pipx can't be used to install the library:

$ pipx install standard-imghdr

No apps associated with package standard-imghdr or its dependencies. If you are attempting to install a library, pipx should not be used. Consider using pip or a similar tool instead.

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