-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathpyproject.toml
130 lines (112 loc) · 3.44 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
[project]
name = "textdescriptives"
version = "2.8.4"
description = "A library for calculating a variety of features from text using spaCy"
authors = [
{ name = "Lasse Hansen", email = "[email protected]" },
{ name = "Kenneth Enevoldsen" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
keywords = [
"NLP",
"spaCy",
"text analysis",
"natural language processing",
"text features",
"text statistics",
"text descriptives",
"text analytics",
"text mining",
]
dependencies = [
"spacy[lookups]>=3.6.0",
"numpy>=1.20.0,<2.0.0", # due to https://stackoverflow.com/questions/78634235/numpy-dtype-size-changed-may-indicate-binary-incompatibility-expected-96-from
"pandas>=1.0.0",
"pyphen>=0.11.0",
"ftfy>=6.0.3",
"pydantic>=2.0",
]
requires-python = ">=3.9"
[project.urls]
homepage = "https://hlasse.github.io/TextDescriptives/"
repository = "https://github.com/HLasse/textdescriptives"
documentation = "https://hlasse.github.io/TextDescriptives/"
[project.optional-dependencies]
style = ["ruff==0.8.3"]
tests = ["pytest>=7.1.3", "pytest-cov>=3.0.0", "pytest-xdist"]
docs = [
"pydantic==2.1",
"sphinx>=5.3.0",
"furo==2022.12.7",
"sphinx-copybutton>=0.5.1",
"sphinxext-opengraph>=0.7.3",
"myst-nb>=0.6.0",
"sphinx_design>=0.3.0",
"autodoc_pydantic==2.1.0",
]
tutorials = [
"jupyter",
"seaborn==0.13.2",
"matplotlib",
"datasets>=2.8.0",
"scikit-learn>=1.1.1",
"scipy>=1.13.1", # to avoid https://github.com/HLasse/TextDescriptives/actions/runs/12336321785/job/34428711200?pr=370
"ipython<=8.21.0",
]
sklearn = ["scikit-learn>=1.1.1"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.license]
file = "LICENSE"
name = "Apache License 2.0"
[tool.setuptools.package-data]
"*" = ["*/spam.csv"]
[tool.setuptools.packages.find]
where = ["src"]
[build-system]
requires = ["setuptools>=61.0.0", "wheel", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[tool.coverage.run]
omit = ["**/tests/*", "**/_vendorized/*", "**/about.py"]
exclude_lines = [
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __unicode__",
"def __repr__",
"if self.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
]
[tool.semantic_release]
branch = "main"
version_toml = ["pyproject.toml:project.version"]
build_command = "python -m pip install build; python -m build"
[tool.ruff]
exclude = [".venv", ".env", ".git", "__pycache__"]
[tool.ruff.lint]
select = ["UP", "I"]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.pydocstyle]
convention = "google"