forked from un33k/python-slugify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (62 loc) · 1.4 KB
/
pyproject.toml
File metadata and controls
80 lines (62 loc) · 1.4 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
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
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"
# PEP 621 — 供 pip / Poetry 2+ 识别;版本需与 slugify/__version__.py 中 __version__ 保持同步
[project]
name = "python-slugify"
version = "8.0.4"
description = "A Python slugify application that also handles Unicode"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
authors = [{ name = "Val Neekman", email = "info@neekware.com" }]
dependencies = [
"text-unidecode>=1.3",
]
[project.optional-dependencies]
unidecode = ["Unidecode>=1.1.1"]
dev = ["pytest>=7"]
[project.scripts]
slugify = "slugify.__main__:main"
[project.urls]
Homepage = "https://github.com/un33k/python-slugify"
# Poetry 需要显式声明包路径(与 setuptools 的 find 对应)
[tool.poetry]
packages = [{ include = "slugify" }]
[tool.setuptools.packages.find]
where = ["."]
include = ["slugify*"]
[tool.setuptools.package-data]
slugify = ["py.typed"]
# coverage
# --------
[tool.coverage.run]
relative_files = true
parallel = true
branch = true
source = [
"slugify",
"test",
]
[tool.coverage.paths]
source = [
"src",
"*/site-packages",
]
[tool.coverage.report]
skip_covered = true
fail_under = 97
# mypy
# ----
[tool.mypy]
packages = "slugify"
strict = true
sqlite_cache = true
# pytest
# ------
[tool.pytest.ini_options]
testpaths = ["test.py"]
addopts = "--color=yes"
filterwarnings = [
"error",
]