From 5cd496b5b5a9192433a32d6cc4ee8bfaf91ec5a2 Mon Sep 17 00:00:00 2001 From: Dominic Davis-Foster Date: Wed, 19 Jun 2024 10:29:24 +0100 Subject: [PATCH] Depend on standard-imghdr for Python 3.13 --- __pkginfo__.py | 15 +++++++++++++-- pyproject.toml | 15 +++++++++++++-- repo_helper.yml | 1 + 3 files changed, 27 insertions(+), 4 deletions(-) diff --git a/__pkginfo__.py b/__pkginfo__.py index 74c40a2..2bd40e9 100644 --- a/__pkginfo__.py +++ b/__pkginfo__.py @@ -3,7 +3,18 @@ __all__ = ["extras_require"] extras_require = { - "sphinx": ["docutils", "sphinx<3.4.0,>=3.0.3", "sphinx-toolbox"], + "sphinx": [ + "docutils", + "sphinx<3.4.0,>=3.0.3", + "sphinx-toolbox", + 'standard-imghdr==3.10.14; python_version >= "3.13"' + ], "testing": ["pytest"], - "all": ["docutils", "pytest", "sphinx<3.4.0,>=3.0.3", "sphinx-toolbox"] + "all": [ + "docutils", + "pytest", + "sphinx<3.4.0,>=3.0.3", + "sphinx-toolbox", + 'standard-imghdr==3.10.14; python_version >= "3.13"' + ] } diff --git a/pyproject.toml b/pyproject.toml index f8851f6..5601781 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,9 +24,20 @@ Homepage = "https://github.com/repo-helper/configconfig" Documentation = "https://configconfig.readthedocs.io/en/latest" [project.optional-dependencies] -sphinx = [ "docutils", "sphinx<3.4.0,>=3.0.3", "sphinx-toolbox",] +sphinx = [ + "docutils", + "sphinx<3.4.0,>=3.0.3", + "sphinx-toolbox", + 'standard-imghdr==3.10.14; python_version >= "3.13"', +] testing = [ "pytest",] -all = [ "docutils", "pytest", "sphinx<3.4.0,>=3.0.3", "sphinx-toolbox",] +all = [ + "docutils", + "pytest", + "sphinx<3.4.0,>=3.0.3", + "sphinx-toolbox", + 'standard-imghdr==3.10.14; python_version >= "3.13"', +] [tool.mkrecipe] conda-channels = [ "conda-forge", "domdfcoding",] diff --git a/repo_helper.yml b/repo_helper.yml index 942a579..396b872 100644 --- a/repo_helper.yml +++ b/repo_helper.yml @@ -33,6 +33,7 @@ extras_require: - sphinx<3.4.0,>=3.0.3 - sphinx-toolbox - docutils + - standard-imghdr==3.10.14; python_version >= "3.13" testing: - pytest