-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
85 lines (76 loc) · 1.79 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
[tool.poetry]
name = "snug"
version = "2.4.0"
description = "Write reusable web API interactions"
authors = ["Arie Bovenberg <[email protected]>"]
license = "MIT"
classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules",
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
packages = [
{ include = "snug", from = "src" },
]
readme = "README.rst"
include = ["CHANGELOG.rst", "README.rst"]
repository = "https://github.com/ariebovenberg/snug"
keywords = [
"api-wrapper",
"http",
"async",
"graphql",
"rest",
]
[tool.poetry.dependencies]
python = "^3.9,<4.0"
aiohttp = {version = "^3.4.4", optional = true}
requests = {version = "^2.20", optional = true}
httpx = {version = ">=0.21.1,<0.29.0", optional = true}
[tool.poetry.group.test.dependencies]
pytest = "^8"
pytest-cov = "^6"
pytest-mock = "^3.10"
pytest-httpbin = "^2.0.0"
# Werkzeug == 2.1.0 does not work with httpbin
# https://github.com/postmanlabs/httpbin/issues/673
Werkzeug = "==2.0.3"
[tool.poetry.group.typecheck.dependencies]
mypy = "^1.0"
[tool.poetry.group.linting.dependencies]
black = "^25"
flake8 = "^7"
isort = "^6"
slotscheck = "^0.19.1"
[tool.poetry.extras]
aiohttp = ["aiohttp"]
requests = ["requests"]
httpx = ["httpx"]
[tool.black]
line-length = 79
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.mypy_cache
| \.tox
| \.venv
| _build
| build
| dist
)/
'''
[tool.isort]
line_length = 79
profile = 'black'
[tool.slotscheck]
strict-imports = true
require-superclass = true
[build-system]
requires = ["poetry-core>=1.1.0"]
build-backend = "poetry.core.masonry.api"