-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
218 lines (189 loc) · 6.51 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
[tool.poetry]
name = "aba-cli-scrapper"
version = "0.7.6"
description = "Create your own Alibaba dataset and interact with it in plain English. "
authors = ["poneoneo <onealzero@gmail.com>"]
readme = "docs/index.md"
license = "GNU GENERAL PUBLIC LICENSEVersion 3, 29 June 2007"
homepage = "https://aba-cli-scrapper.readthedocs.io/en/latest/"
repository = "https://github.com/poneoneo/Alibaba-CLI-Scraper"
keywords = ["cli", "scrapping", "alibaba", "scraper", "alibaba-cli-scrapper","dataset","ai-agent","RAG"]
classifiers = [
"Development Status :: 1 - Planning",
"Environment :: Console",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Natural Language :: English",
"Operating System :: Microsoft :: Windows :: Windows 10",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Terminals",
"Typing :: Typed",
]
include = [
"COPYING",
]
packages = [{include = "aba_cli_scrapper"},{include = "images"}, {include="pyproject.toml"}]
# poetry settings
[tool.poetry.dev-dependencies]
pytest = "8.2.2"
sphinx = "^8.0.2"
myst-parser = "^4.0.0"
coverage = "^7.6.1"
python-semantic-release = "^9.8.6"
[tool.poetry.scripts]
text-mode = "aba_cli_scrapper.__main__:app"
aba-run = "aba_cli_scrapper.__main__:app_t"
[tool.poetry.dependencies]
python = ">=3.11.0,<4.0.0"
python-dotenv = "^1.0.1"
sqlalchemy = "^2.0.32"
typer = "^0.12.5"
sqlmodel = "^0.0.21"
selectolax = "^0.3.21"
playwright = "1.45.0"
pymysql = "^1.1.1"
loguru = "^0.7.2"
aiosignal = {version = "1.3.1", markers = "python_version >= \"3.7\""}
annotated-types = {version = "0.7.0", markers = "python_version >= \"3.8\""}
attrs = {version = "23.2.0", markers = "python_version >= \"3.7\""}
certifi = {version = "2024.7.4", markers = "python_version >= \"3.6\""}
cffi = {version = "1.16.0", markers = "platform_python_implementation != \"PyPy\""}
charset-normalizer = {version = "3.3.2", markers = "python_full_version >= \"3.7.0\""}
click = {version = "8.1.7", markers = "python_version >= \"3.7\""}
colorama = {version = "0.4.6", markers = "sys_platform == \"win32\""}
cryptography = {version = "43.0.1", markers = "python_version >= \"3.7\""}
frozenlist = {version = "1.4.1", markers = "python_version >= \"3.8\""}
greenlet = {version = "3.0.3", markers = "python_version >= \"3.7\""}
idna = {version = "3.7", markers = "python_version >= \"3.5\""}
markdown-it-py = {version = "3.0.0", markers = "python_version >= \"3.8\""}
mdurl = {version = "0.1.2", markers = "python_version >= \"3.7\""}
multidict = {version = "6.0.5", markers = "python_version >= \"3.7\""}
mypy-extensions = {version = "1.0.0", markers = "python_version >= \"3.5\""}
nodeenv = {version = "1.9.1", markers = "python_version >= \"2.7\" and python_version not in \"3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6\""}
packaging = {version = "24.1", markers = "python_version >= \"3.8\""}
pathspec = {version = "0.12.1", markers = "python_version >= \"3.8\""}
platformdirs = {version = "4.2.2", markers = "python_version >= \"3.8\""}
pycparser = {version = "2.22", markers = "python_version >= \"3.8\""}
pydantic = {version = "2.8.2", markers = "python_version >= \"3.8\""}
pydantic-core = {version = "2.20.1", markers = "python_version >= \"3.8\""}
pyee = {version = "11.1.0", markers = "python_version >= \"3.8\""}
pygments = {version = "2.18.0", markers = "python_version >= \"3.8\""}
requests = {version = "2.32.3", markers = "python_version >= \"3.8\""}
rich = {version = "13.7.1", markers = "python_full_version >= \"3.7.0\""}
shellingham = {version = "1.5.4", markers = "python_version >= \"3.7\""}
typing-extensions = {version = "4.12.2", markers = "python_version >= \"3.8\""}
urllib3 = {version = "2.2.2", markers = "python_version >= \"3.8\""}
win32-setctime = {version = "1.1.0", markers = "sys_platform == \"win32\""}
yarl = {version = "1.9.4", markers = "python_version >= \"3.7\""}
trogon = "^0.5.0"
plotnine = "^0.13.6"
datahorse = "^0.0.3"
tabulate = "^0.9.0"
prettytable = "^3.11.0"
furo = "^2024.8.6"
pandas = "^2.2.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# semantic release settings
[tool.semantic_release]
version_toml = ["pyproject.toml:tool.poetry.version"]
version_variable = ["aba_cli_scrapper/__init__.py:__version__","pyproject.toml:tool.poetry.version"]
branch = "main"
major_on_zero = false
upload_to_pypi = true
upload_to_repository = true
upload_to_release = true
changelog_file = "CHANGELOG.md"
build_command = "pip install poetry && poetry build"
commit_version_number = true
version_source = "tag"
commit_message = ":bookmark: Release version v{version}"
commit_parser = "emoji"
[tool.semantic_release.remote]
type = "github"
token = {env = "GITHUB_TOKEN"}
[tool.semantic_release.commit_parser_options]
major_tags = [":boom:"]
minor_tags = [
":sparkles:",
":children_crossing:",
":lipstick:",
":iphone:",
":egg:",
":chart_with_upwards_trend:",
]
patch_tags = [
":ambulance:",
":lock:",
":bug:",
":zap:",
":goal_net:",
":alien:",
":wheelchair:",
":speech_balloon:",
":mag:",
":apple:",
":penguin:",
":checkered_flag:",
":robot:",
":green_apple:",
]
[tool.semantic_release.branches.main]
match = "main"
prerelease_token = "rc"
prerelease = false
# coverage settings
[tool.coverage.run]
command_line = "-m pytest"
[tool.coverage.report]
include = ["aba_cli_scrapper/*.py"]
show_missing = true
# ruff settings
[tool.ruff]
exclude = [ # Exclude a variety of commonly ignored directories.
".git",
".git-rewrite",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
# Same as Black.
line-length = 100
target-version = "py311"
preview = true
[tool.ruff.format]
quote-style = "double"
indent-style = "tab"
docstring-code-format = true
docstring-code-line-length = 20
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint]
# Allow `E4`, `E7`, `E9`, and `F`.
select = ["E4", "E7", "E9", "F",]
# On top of the Google convention, disable `D417`, which requires
# documentation for every function parameter.
ignore = ["D417"]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
[tool.pytest.ini_options]
addopts = "-p no:warnings:DeprecationWarning"