Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 085867a

Browse filesBrowse files
author
Rami Chowdhury
committed
compat: Restore Graphene 2 support
Fix the dependency in `pyproject.toml` and add a test parameter for the Graphene 2.x case.
1 parent d7f0b26 commit 085867a
Copy full SHA for 085867a

File tree

Expand file treeCollapse file tree

2 files changed

+7
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-2
lines changed

‎noxfile.py

Copy file name to clipboardExpand all lines: noxfile.py
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,15 @@
77
"pydantic",
88
("1.9", "1.10", "1.7", "1.8"),
99
)
10-
def tests(session, pydantic):
10+
@parametrize("graphene", ("2.1.9", "3"))
11+
def tests(session, pydantic, graphene):
1112
if sys.version_info > (3, 10) and pydantic in ("1.7", "1.8"):
1213
return session.skip()
14+
if sys.version_info > (3, 10) and graphene != "3":
15+
# Graphene 2.x doesn't support Python 3.11
16+
return session.skip()
1317
session.install(f"pydantic=={pydantic}")
18+
session.install(f"graphene=={graphene}")
1419
session.install("pytest", "pytest-cov", ".")
1520
session.run(
1621
"pytest", "-v", "tests/", "--cov-report=term-missing", "--cov=graphene_pydantic"

‎pyproject.toml

Copy file name to clipboardExpand all lines: pyproject.toml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ keywords = ["api", "graphql", "protocol", "rest", "relay", "graphene", "pydantic
2525

2626
[tool.poetry.dependencies]
2727
python = "^3.7"
28-
graphene = ">=3.0"
28+
graphene = ">=2.1.8"
2929
pydantic = [
3030
{ version = ">=1.0,<2.0", python = ">3.6,<3.12" },
3131
{ version = ">=1.9,<2.0", python = ">=3.10" }

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.