forked from roniemartinez/dude
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
123 lines (110 loc) · 3.11 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[tool.poetry]
name = "pydude"
version = "0.22.0"
repository = "https://github.com/roniemartinez/dude"
description = "dude uncomplicated data extraction"
authors = ["Ronie Martinez <[email protected]>"]
license = "AGPL-3.0-or-later"
readme = "README.md"
documentation = "https://roniemartinez.github.io/dude/"
keywords = [
"scraping"
]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
]
packages = [
{ include = "dude" },
]
[tool.poetry.urls]
"Donate" = "https://github.com/sponsors/roniemartinez"
[tool.poetry.scripts]
dude = "dude:cli"
[tool.poetry.dependencies]
python = "^3.7"
braveblock = ">=0.1.13,<0.4.0"
playwright = "^1.19.0"
PyYAML = "^6.0"
# optionals
beautifulsoup4 = { version = "^4.10.0", optional = true }
cssselect = { version = "^1.1.0", optional = true }
httpx = { version = ">=0.22,<0.24", optional = true }
lxml = { version = "^4.8.0", optional = true }
parsel = { version = "^1.6.0", optional = true }
pybrowsers = {version = ">=0.4.1,<0.6.0", optional = true}
pyppeteer = { version = "^1.0.2", optional = true }
selenium-wire = { version = ">=4.6.2,<6.0.0", optional = true }
webdriver-manager = { version = "^3.7.0", optional = true }
[tool.poetry.extras]
bs4 = ["beautifulsoup4", "httpx"]
lxml = ["lxml", "cssselect", "httpx"]
parsel = ["parsel", "httpx"]
pyppeteer = ["pyppeteer"]
selenium = ["selenium-wire", "webdriver-manager", "pybrowsers"]
[tool.poetry.dev-dependencies]
autoflake = "^1.7.6"
black = "^22.10"
isort = "^5.10.1"
mkdocs-material = "^8.5.6"
mkdocstrings = { version = "^0.19.0", extras = ["python-legacy"] }
mypy = "^0.982"
pyproject-flake8 = "^3.9.2"
pytest = "^7.1.3"
pytest-clarity = "^1.0.1"
pytest-cov = "^4.0.0"
tabulate = { git = "https://github.com/astanin/python-tabulate" }
types-PyYAML = "^6.0.12"
respx = "^0.20.0"
[tool.isort]
line_length = 120
multi_line_output = 3
force_grid_wrap = 0
use_parentheses = true
include_trailing_comma = true
ensure_newline_before_comments = true
atomic = true
[tool.black]
line-length = 120
target-version = ['py39']
include = '\.pyi?$'
extend-exclude = """
# A regex preceded with ^/ will apply only to files and directories
# in the root of the project.
^/setup.py
"""
[tool.mypy]
disallow_untyped_defs = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
"pkg_resources",
]
ignore_missing_imports = true
[tool.flake8]
max-line-length = 120
extend-ignore = "E203"
extend-exclude = """
setup.py,
"""
[tool.pytest.ini_options]
norecursedirs = ["examples"]
addopts = """\
--cov=dude \
--cov-report=term-missing \
--cov-report=xml \
--cov-report=html \
-vv \
-x \
-s \
"""
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"