-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
162 lines (147 loc) · 4.28 KB
/
pyproject.toml
File metadata and controls
162 lines (147 loc) · 4.28 KB
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
[build-system]
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "tripper"
authors = [
{name = "SINTEF", email = "TEAM4.0@sintef.no"},
]
description = "A triplestore wrapper for Python."
readme = "README.md"
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Environment :: Plugins",
"Natural Language :: English",
"Operating System :: OS Independent",
]
keywords = ["triplestore", "ontology", "RDF"]
requires-python = ">=3.8"
dynamic = ["version"]
dependencies = [
"typing-extensions>=4.7.0,<4.13.1; python_version < '3.9'",
]
[project.optional-dependencies]
units = [
"pint>=0.21.1,<0.26; python_version<'3.9'",
"pint>=0.24.1,<0.26; python_version>='3.9'",
"rdflib>=6.3.0,<=7.6.0",
]
mappings = [
"tripper[units]",
]
datadoc = [
"tripper[mappings]",
"keyring>=22.0.0,<25.6.1",
"PyLD>=2.0.0,<2.0.5",
"PyYaml>=3.0.0,<6.0.3", # todo: check lower version
"requests>=2.0.0,<3.4.1", # todo: check lower version
"sparqlwrapper>=2.0.0,<2.0.1",
]
backends = [
"dlite-python>=0.5.27",
"emmontopy>=0.5.0,<=0.8.1",
"graphviz>=0.20.1,<0.20.2",
"numpy<2.1.0; python_version=='3.13'", # todo: relax versions
"rdflib>=6.3.0,<7.0.0",
]
testing-core = [
"pytest==8.3.4",
"pytest-cov==5.0.0; python_version<'3.9'",
"pytest-cov==6.0.0; python_version>='3.9'",
]
testing = [
"tripper[datadoc,backends,testing-core]",
]
docs = [
"tripper[testing]",
"mike==2.1.3",
"mkdocs==1.6.1",
"mkdocs-autorefs==1.4.1",
"mkdocs-awesome-pages-plugin==2.10.1",
"mkdocs-github-admonitions-plugin==0.0.3",
"mkdocs-material==9.6.11",
"mkdocstrings==0.27.0",
"mkdocstrings-python-legacy==0.2.4",
]
pre-commit = [
"pre-commit==4.0.1",
"pylint==3.3.4; python_version>='3.9'",
]
dev = [
"tripper[pre-commit,docs]",
"virtualenvwrapper>=4.0.0",
]
[project.urls]
Home = "https://github.com/EMMC-ASBL/tripper"
Documentation = "https://EMMC-ASBL.github.io/tripper"
Source = "https://github.com/EMMC-ASBL/tripper"
"Issue Tracker" = "https://github.com/EMMC-ASBL/tripper/issues"
Changelog = "https://github.com/EMMC-ASBL/tripper/blob/master/CHANGELOG.md"
Package = "https://pypi.org/project/tripper"
[project.scripts]
datadoc = "tripper.datadoc.clitool:main"
keywords = "tripper.datadoc.keywords:main"
[tool.isort]
line_length = 79 # PEP8
[tool.black]
line-length = 79
[tool.mypy]
python_version = "3.11"
ignore_missing_imports = true
scripts_are_modules = true
warn_unused_configs = true
show_error_codes = true
allow_redefinition = true
#explicit-package-bases = true
[tool.pylint]
max-line-length = 80
max-args = 10
max-public-methods = 25
max-locals = 20
disable = [
"fixme",
"invalid-name",
"too-many-positional-arguments",
]
good-names = [
# Default
"i", "j", "k", "ex", "Run", "_",
# Triplestore instance
"ts",
# Triple components: subject, predicate, object
"s", "p", "o",
# Namespaces
"EX",
# dict, value, file, keyword...
"d", "v", "f", "kw",
]
[tool.pytest.ini_options]
minversion = "7.0"
# Tips: set --cov-report to "term-missing" to list missing coverage
addopts = """-rs --cov=tripper --cov-report=term \
--doctest-modules --doctest-ignore-import-errors \
--ignore-glob=**/old/
"""
filterwarnings = [
"ignore:.*imp module.*:DeprecationWarning",
"ignore:ConjunctiveGraph.*:DeprecationWarning", # in pyld
"ignore:builtin type SwigPy.*:DeprecationWarning", # in pyld
"ignore:::tripper.literal:243", # Ignore warning in doctest
]
[tool.setuptools.package-data]
"tripper.context" = ["*.json", "*.yaml"]
# Note the quotes around "tripper.keywords" to escape the embedded dot
[project.entry-points."tripper.keywords"]
"tripper/context/0.3/prefixes.yaml" = "ddoc:prefixes"
"tripper/context/0.3/keywords.yaml" = "ddoc:datadoc"
"tripper/context/process/0.1/keywords.yaml" = "ddoc:process"