-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
116 lines (100 loc) · 3.01 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
[build-system]
requires = [ "setuptools >= 61.0", "wheel>=0.37" ]
build-backend = "setuptools.build_meta"
[project]
name = "segram"
requires-python = ">=3.11"
version = "0.0.0"
authors = [{name = "Szymon Talaga", email = "stalaga@protonmail.com"}]
readme = "README.md"
license = {file = "LICENSE"}
keywords = ["natural language processing", "NLP", "narratives", "narrative analysis", "semantics", "syntax", "grammar"]
description = "A framework for semantic grammar and narrative analysis."
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Environment :: GPU",
"Environment :: GPU :: NVIDIA CUDA",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Visualization"
]
dependencies = [
"spacy>=3.4",
"more-itertools>=8.0"
]
[project.urls]
documentation = "https://segram.readthedocs.io/en/latest/"
repository = "https://github.com/sztal/segram"
changelog = "https://github.com/sztal/segram/blob/master/CHANGELOG.md"
[project.optional-dependencies]
coref = [
"spacy>=3.4,<3.5",
"spacy-experimental==0.6.3"
]
gpu = ["cupy"]
[project.entry-points.spacy_factories]
segram = "segram.nlp.pipeline.factories:create_base"
[tool.setuptools]
include-package-data = true
package-dir = { segram = "segram" }
[tool.setuptools.package-data]
segram = ["nlp/**/*.json", "nlp/**/*.json.gz"]
[tool.pytest.ini_options]
minversion = "7.2"
addopts = [
"--verbose",
"--tb=no",
"--capture=no",
"--pdbcls=IPython.terminal.debugger:Pdb",
]
testpaths = [
"tests"
]
python_files = ["test_*.py", "benchmark_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
[tool.coverage.run]
branch = true
command_line = "-m pytest"
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_also = [
# Don't complain about missing debug-only code:
"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__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
]
ignore_errors = true
[tool.coverage.html]
directory = "coverage_html_report"
[tool.bumpver]
current_version = "0.0.0"
version_pattern = "MAJOR.MINOR.PATCH"
commit_message = "bump version {old_version} -> {new_version}"
tag_message = "{new_version}"
tag_scope = "default"
pre_commit_hook = ""
post_commit_hook = ""
commit = true
tag = true
push = true
[tool.bumpver.file_patterns]
"pyproject.toml" = [
'current_version = "{version}"',
'version = "{version}"'
]
"segram/about.py" = ["{version}"]