Skip to content

Commit

Permalink
Depend on standard-imghdr for Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Jun 19, 2024
1 parent e817a2c commit 5cd496b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
15 changes: 13 additions & 2 deletions __pkginfo__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"'
]
}
15 changes: 13 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",]
Expand Down
1 change: 1 addition & 0 deletions repo_helper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5cd496b

Please sign in to comment.