forked from strawberry-graphql/strawberry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
99 lines (91 loc) · 2.95 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[tool.poetry]
name = "strawberry-graphql"
packages = [ { include = "strawberry" } ]
version = "0.44.6"
description = "A library for creating GraphQL APIs"
authors = ["Patrick Arminio <patrick.arminio@gmail.com>"]
license = "MIT"
readme = "README.md"
keywords = ["grapqhl", "api", "rest", "starlette", "async"]
homepage = "https://strawberry.rocks/"
repository = "https://github.com/strawberry-graphql/strawberry"
documentation = "https://strawberry.rocks/"
classifiers = [
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules"
]
include = ["strawberry/py.typed"]
[tool.poetry.dependencies]
python = "^3.7"
starlette = ">=0.13.6,<0.15.0"
click = {version = "^7.0", optional = true}
hupper = "^1.5"
pygments = "^2.3"
uvicorn = {version = ">=0.11.6,<0.14.0", optional = true}
django = {version = ">=2,<4", optional = true}
graphql-core = {version = "^3.0.0"}
asgiref = {version = "^3.2", optional = true}
flask = {version = "^1.1", optional = true}
typing_extensions = "^3.7.4"
opentelemetry-api = {version = "^0.13b0", optional = true}
opentelemetry-sdk = {version = "^0.13b0", optional = true}
python-dateutil = "^2.7.0"
cached-property = "^1.5.2"
pydantic = {version = "^1.6.1", optional = true}
[tool.poetry.dev-dependencies]
pytest = "^6.2"
pdbpp = "^0.10.2"
pytest-emoji = "^0.2.0"
flake8 = "^3.8"
black = {version = "^20.8b1", allow-prereleases = true}
isort = "^5.7.0"
pytest-asyncio = "^0.14.0"
pytest-cov = "^2.10"
mypy = "^0.790"
flake8-bugbear = "^20.11"
flake8-eradicate = "^1.0.0"
pytest-mypy-plugins = "^1.6"
pytest-mock = "^3.5"
pytest-django = {version = "^4.1"}
asgiref = "^3.2"
pytest-flask = {version = "^1.1.0"}
flask = {version = "^1.1"}
requests = "^2.25.1"
pre-commit = "^2.9.3"
pytest-benchmark = "^3.2.3"
freezegun = "^1.0.0"
opentelemetry-api = "^0.13b0"
opentelemetry-sdk = "^0.13b0"
flake8-isort = "^4.0.0"
flake8-black = "^0.2.1"
django = {version = ">=2,<4", optional = false}
pydantic = {version = "^1.6.1", optional = false}
email-validator = {version = "^1.1.2", optional = false}
uvicorn = ">=0.11.6,<0.14.0"
[tool.poetry.extras]
debug-server = ["uvicorn"]
django = ["django", "pytest-django", "asgiref"]
flask = ["flask", "pytest-flask"]
opentelemetry = ["opentelemetry-api", "opentelemetry-sdk"]
pydantic = ["pydantic"]
[tool.poetry.scripts]
strawberry = "strawberry.cli:run"
[tool.isort]
src_paths = ["strawberry", "tests", "scripts"]
profile = "black"
indent = 4
combine_star = true
combine_as_imports = true
lines_after_imports = 2
known_django = ["django"]
known_graphql = ["graphql"]
known_pytest = ["pytest"]
known_first_party = ["strawberry"]
sections = ["FUTURE", "STDLIB", "PYTEST", "THIRDPARTY", "DJANGO", "GRAPHQL", "FIRSTPARTY", "LOCALFOLDER"]
[tool.pytest.ini_options]
addopts = "-xs --emoji --mypy-ini-file=mypy_tests.ini --benchmark-disable"
DJANGO_SETTINGS_MODULE = "tests.django.django_settings"
testpaths = ["tests/"]
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"