forked from lalifeier/IPTV
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
85 lines (73 loc) · 1.74 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 = "iptv"
version = "0.1.0"
description = ""
authors = ["lalifeier <[email protected]>"]
readme = "README.md"
packages = [{include = "iptv"}]
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
poethepoet = "^0.17.1"
black = "^22.12.0"
isort = "^5.11.4"
flake8 = "^6.0.0"
pre-commit = "^2.21.0"
mypy = "^0.991"
tox = "^4.2.4"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "^7.1.2"
pytest-cov = "^3.0.0"
pytest-asyncio = "0.20.3"
[tool.poetry.dependencies]
python = "^3.11"
fastapi = "^0.89.1"
uvicorn = {extras = ["standard"], version = "^0.20.0"}
aiohttp = {extras = ["speedups"], version = "^3.8.3"}
gunicorn = "^20.1.0"
orjson = "^3.8.4"
lxml = "^4.9.2"
beautifulsoup4 = "^4.11.1"
xmltodict = "^0.13.0"
pycryptodome = "^3.16.0"
# playwright = "^1.29.1"
# node-vm2 = "^0.4.4"
# pyexecjs2 = "^1.6.1"
# pywasm = "^1.0.7"
tldextract = "^5.1.2"
requests = "^2.32.3"
dukpy = "^0.4.0"
pypinyin = "^0.51.0"
opencv-python = "^4.10.0.84"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[[tool.poetry.source]]
name = "baidu"
url = "https://mirror.baidu.com/pypi/simple"
priority = "primary"
[[tool.poetry.source]]
name = "tsinghua"
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
priority = 'supplemental'
[tool.isort]
profile = 'black'
[tool.black]
line-length = 120
target-version = ['py311']
[tool.poe.tasks]
prepare = "pre-commit install"
test = "pytest tests"
test_coverage = "pytest --cov=tests --cov-report=html"
format = "black ."
lint = "flake8 ."
clean = """
# Multiline commands including comments work too. Unescaped whitespace is ignored.
rm -rf .coverage
.mypy_cache
.pytest_cache
dist
./**/__pycache__
"""