-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
135 lines (118 loc) · 3.49 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
131
132
133
134
135
[project]
name = "spacy_wrap"
version = "1.4.5"
description = "Wrappers for including pre-trained transformers in spaCy pipelines"
authors = [{name = "Kenneth Enevoldsen", email = "[email protected]"}]
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.8",
"Programming Language :: Python :: 3.9",
]
keywords = [
"NLP",
"spaCy",
"text analysis",
"natural language processing",
"text mining",
"text analytics",
]
dependencies = [
"spacy_transformers>=1.2.1",
"spacy>=3.2.1",
"thinc>=8.0.13",
]
requires-python = ">=3.8"
[project.urls]
homepage = "https://github.com/KennethEnevoldsen/spacy-wrap"
repository = "https://github.com/KennethEnevoldsen/spacy-wrap"
documentation = "https://kennethenevoldsen.github.io/spacy-wrap/"
[project.optional-dependencies]
style = [
"black>=22.12.0",
"pre-commit>=2.20.0",
"ruff>=0.0.263",
"mypy>=0.991"
]
tests = [
"pytest>=7.1.3",
"pytest-cov>=3.0.0",
]
docs = [
"sphinx>=5.3.0",
"furo>=2022.12.7",
"sphinx-copybutton>=0.5.1",
"sphinxext-opengraph>=0.7.3",
"sphinx_design>=0.3.0",
]
cuda = ["cupy>=5.0.0b4"]
cuda80 = ["cupy-cuda80>=5.0.0b4"]
cuda90 = ["cupy-cuda90>=5.0.0b4"]
cuda91 = ["cupy-cuda91>=5.0.0b4"]
cuda92 = ["cupy-cuda92>=5.0.0b4"]
cuda100 = ["cupy-cuda100>=5.0.0b4"]
cuda101 = ["cupy-cuda101>=5.0.0b4"]
cuda102 = ["cupy-cuda102>=5.0.0b4"]
cuda110 = ["cupy-cuda110>=5.0.0b4"]
cuda111 = ["cupy-cuda111>=5.0.0b4"]
cuda112 = ["cupy-cuda112>=5.0.0b4"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.license]
file = "LICENSE"
name = "MIT"
[project.entry-points.spacy_factories]
sequence_classification_transformer = "spacy_wrap.pipeline_component_seq_clf:make_sequence_classification_transformer"
token_classification_transformer = "spacy_wrap.pipeline_component_tok_clf:make_token_classification_transformer"
[project.entry-points.spacy_architectures]
"SequenceClassificationTransformerModel.v1" = "spacy_wrap:architectures.create_SequenceClassificationTransformerModel_v1"
"TokenClassificationTransformerModel.v1" = "spacy_wrap:architectures.create_TokenClassificationTransformerModel_v1"
[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.mypy]
ignore_missing_imports = true
no_implicit_optional = true
[tool.semantic_release]
branch = "main"
version_variable = [
"pyproject.toml:version"
]
build_command = "python -m pip install build; python -m build"
[tool.ruff]
exclude = [
".venv",
".env",
".git",
"__pycache__",
]