Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
49 lines (41 loc) · 1.48 KB
/
Copy pathpyproject.toml
File metadata and controls
49 lines (41 loc) · 1.48 KB
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
[build-system]
requires = ["hatchling>=1.25"]
build-backend = "hatchling.build"
[project]
name = "magicmd"
version = "0.8.0"
description = "Convert public article links into configurable Markdown packages."
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
authors = [{ name = "MagicMD Contributors" }]
dependencies = ["beautifulsoup4>=4.12", "markdownify>=0.13", "pydantic>=2.8"]
keywords = ["markdown", "article", "wechat", "juejin", "crawler"]
[project.scripts]
magicmd = "magicmd.entrypoint:main"
[project.optional-dependencies]
browser = ["camoufox[geoip]>=0.4", "playwright>=1.60,<1.61"]
cli = ["chardet>=5.2", "click>=8.1", "httpx>=0.27", "rich>=13.7", "typer>=0.12"]
all = ["magicmd[cli,browser]"]
dev = ["magicmd[all]", "pytest>=8.2", "pytest-asyncio>=0.23", "ruff>=0.6"]
[tool.hatch.build.targets.wheel]
packages = ["src/magicmd"]
[tool.hatch.build.targets.wheel.force-include]
"src/magicmd/templates/magicmd.example.toml" = "magicmd/templates/magicmd.example.toml"
"src/magicmd/studio/index.html" = "magicmd/studio/index.html"
"src/magicmd/studio/studio.css" = "magicmd/studio/studio.css"
"src/magicmd/studio/studio.js" = "magicmd/studio/studio.js"
[tool.hatch.build.targets.sdist]
exclude = [
"/dist",
"/output",
"/website/.vitepress/cache",
"/website/.vitepress/dist",
"/website/node_modules"
]
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = ["e2e: live tests that require network and/or browser runtime"]
[tool.ruff]
line-length = 100
target-version = "py311"