forked from nullnull/simstring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
124 lines (104 loc) · 2.87 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "simstring-fast"
description = "A fork of the Python implementation of the SimString by (Katsuma Narisawa), a simple and efficient algorithm for approximate string matching. Uses mypyc to improve speed"
readme = "README.md"
requires-python = ">=3.9"
license = "MIT"
keywords = []
authors = [
{ name = "Ruben Menke", email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = ["diskcache==5.6.3", "setuptools>=70.0.0"]
dynamic = ["version"]
[project.urls]
Documentation = "https://banking-circle-advanced-analytics.github.io/simstring-fast/"
Issues = "https://github.com/banking-circle-advanced-analytics/simstring-fast"
Source = "https://github.com/banking-circle-advanced-analytics/simstring-fast/issues"
[tool.hatch.version]
path = "simstring/__init__.py"
[tool.hatch.build]
include = [
"simstring/*.py",
"simstring/**/*.py",
]
[tool.hatch.build.targets.wheel.hooks.mypyc]
dependencies = ["hatch-mypyc==0.16.0"]
mypy-args = [
"--check-untyped-defs",
"--install-types"
]
exclude = [
"simstring/database/disk.py",
"simstring/database/base.py",
]
[tool.hatch.envs.default.scripts]
pre-install-commands = [
"python -m ensurepip --upgrade",
"python -m pip install --upgrade setuptools",
]
version = "python --version"
cov = "pytest --cov-report=term --cov-config=pyproject.toml {args}"
test = "pytest"
build = "python -m build"
[tool.hatch.envs.test]
dependencies = [
"pytest==7.4.2",
"pytest-cov==4.1.0",
"build",
"cython==3.0.0",
"faker",
"tqdm",
"pdbpp",
"setuptools"
]
[[tool.hatch.envs.test.matrix]]
python = ["310", "311", "312"]
[tool.coverage.run]
branch = true
parallel = true
include = [
"simsting/**/*.py",
"simsting/*.py"
]
omit = [
"simstring/__init__.py",
"simstring/**/__init__.py",
]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.hatch.envs.docs]
dependencies = [
"mkdocs", "mkdocstrings[python]"
]
[tool.hatch.envs.docs.scripts]
build = "cd simstring && mkdocs build --clean --strict"
serve = "cd simstring && mkdocs serve --dev-addr localhost:8000"
[tool.hatch.envs.benchmark]
pre-install-commands = [
"python -m ensurepip --upgrade",
"python -m pip install --upgrade setuptools",
]
dependencies = [
"pyinstrument", "benchmarker" , "numpy", "tqdm"
]
[[tool.hatch.envs.benchmark.matrix]]
python = [ "310", "311", "312"]
[tool.hatch.envs.benchmark.scripts]
run = "python dev/benchmark.py"
instrument = "pip install . && python dev/company_names.py"
adds = "pip install . && python dev/benchmarking_adds.py"