-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
pyproject.toml
64 lines (58 loc) · 1.85 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
[tool.poetry]
name = "pfun"
version = "0.13.2"
description = "Functional, composable, asynchronous, type-safe Python."
authors = ["Sune Debel"]
readme = "README.md"
include = ["src/pfun/py.typed", "src/pfun/*.c", "src/pfun/*.so"]
[tool.poetry.build]
script = "build.py"
generate-setup-file = true
[tool.poetry.dependencies]
python = ">= 3.7, < 3.12"
aiohttp = { extras = ["speedups"], version = "^3.7.4", optional = true }
asyncpg = { version = "^0.28.0", optional = true }
hypothesis = { version = "^6.8.5", optional = true }
dill = "^0.3.2"
typing-extensions = [
{ version = "^3.10.0.0", python = ">= 3.7, < 3.11" },
{ version = "^4.8.0", python = "==3.11" },
]
[tool.poetry.dev-dependencies]
Cython = [
{ version = "3.0.0a10", python = ">= 3.7, < 3.11" },
{ version = "^3.0.5", python = "==3.11" },
]
pytest-mypy-plugins = "^1.9.3"
pytest-asyncio = "^0.11.0"
pytest = "^6.2.2"
hypothesis = "^6.8.5"
ipython = "^7.7"
ipdb = "^0.12.2"
flake8 = "^3.7"
pytest-xdist = "2.2.1"
yapf = "^0.28.0"
mypy = "0.950"
isort = "^4.3.21"
pre-commit = "^2.5.1"
pre-commit-hooks = "^3.1.0"
main-dec = "^0.1.1"
mkdocs = "^1.3.0"
mkdocstrings = { version = "^0.18.1", extras = [] }
mkdocs-material = "^5.4.0"
taskipy = "^1.6.0"
[tool.poetry.extras]
http = ["aiohttp"]
sql = ["asyncpg"]
test = ["hypothesis"]
[tool.taskipy.tasks]
compile = "poetry run cython --3str src/pfun/*.pyx"
install = "poetry run task compile && poetry install -E test -E sql -E http"
build = "poetry run task compile && poetry build"
test = "poetry run task install && poetry run pytest -rsx -n 4 --mypy-ini-file=tests/mypy.ini"
serve-docs = "poetry run task install && poetry run mkdocs serve"
lint = "poetry run pre-commit run --all"
pytkdocs = "pip install ./pytkdocs-0.14.0-py3-none-any.whl"
[build-system]
requires = ["poetry>=1.1.5", "setuptools>=41.2.0", "Cython"]
build-backend = "poetry.core.masonry.api"