-
Notifications
You must be signed in to change notification settings - Fork 765
/
pyproject.toml
123 lines (114 loc) · 2.81 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "bertopic"
version = "0.16.4"
description = "BERTopic performs topic Modeling with state-of-the-art transformer models."
readme = "README.md"
license = {file = "LICENSE"}
requires-python = ">=3.8"
authors = [
{ name = "Maarten P. Grootendorst", email = "[email protected]" },
]
keywords = [
"nlp",
"bert",
"topic",
"modeling",
"embeddings",
]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"hdbscan>=0.8.29",
"numpy>=1.20.0",
"pandas>=1.1.5",
"plotly>=4.7.0",
"scikit-learn>=0.22.2.post1",
"sentence-transformers>=0.4.1",
"tqdm>=4.41.1",
"umap-learn>=0.5.0",
]
[project.optional-dependencies]
datamap = [
"datamapplot>=0.1",
"matplotlib>=3.8",
]
dev = [
"bertopic[docs,test]",
]
docs = [
"mkdocs==1.5.3",
"mkdocs-material==9.5.18",
"mkdocstrings-python==1.10.0",
"mkdocstrings==0.24.3",
]
flair = [
"flair>=0.7",
"torch>=1.4.0",
"transformers>=3.5.1",
]
gensim = [
"gensim>=4.0.0",
]
spacy = [
"spacy>=3.0.1",
]
test = [
"pytest>=5.4.3",
"pytest-cov>=2.6.1",
"ruff~=0.4.7",
]
use = [
"tensorflow",
"tensorflow_hub",
"tensorflow_text",
]
vision = [
"accelerate>=0.19.0", # To prevent "cannot import name 'PartialState' from 'accelerate'"
"Pillow>=9.2.0",
]
[project.urls]
Documentation = "https://maartengr.github.io/BERTopic/"
Homepage = "https://github.com/MaartenGr/BERTopic"
Issues = "https://github.com/MaartenGr/BERTopic/issues"
Repository = "https://github.com/MaartenGr/BERTopic.git"
[tool.setuptools.packages.find]
include = ["bertopic*"]
exclude = ["tests"]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"E4", # Ruff Defaults
"E7",
"E9",
"F", # End Ruff Defaults,
"D"
]
ignore = [
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D205", # 1 blank line required between summary line and description
"E731", # Do not assign a lambda expression, use a def
]
[tool.ruff.lint.per-file-ignores]
"**/tests/*" = ["D"] # Ignore all docstring errors in tests
[tool.ruff.lint.pydocstyle]
convention = "google"