-
Notifications
You must be signed in to change notification settings - Fork 13
/
pyproject.toml
141 lines (127 loc) · 2.91 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
136
137
138
139
140
141
[build-system]
requires = [
"setuptools>=68",
"wheel>=0.41",
]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = [""]
include = ["metsrw*"]
namespaces = false
[project]
name = "metsrw"
dynamic = [
"version",
"readme",
]
description = "Library for dealing with METS files."
requires-python = ">=3.8"
license = {file = "LICENSE"}
dependencies = [
"lxml",
]
keywords = [
"archivematica",
"preservation",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3 :: Only",
"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",
]
authors = [
{name = "Artefactual Systems Inc.", email = "info@artefactual.com"}
]
maintainers = [
{name = "Artefactual Systems Inc.", email = "info@artefactual.com"}
]
[project.urls]
homepage = "https://github.com/artefactual-labs/mets-reader-writer/"
documentation = "https://mets-reader-writer.readthedocs.io/"
repository = "https://github.com/artefactual-labs/mets-reader-writer/"
issues = "https://github.com/archivematica/Issues/issues"
[project.optional-dependencies]
dev = [
"alabaster==0.7.13",
"coverage",
"pip-tools",
"pytest-cov",
"pytest",
"ruff",
"sphinx-rtd-theme",
"sphinx==7.1.2",
"sphinxcontrib-applehelp==1.0.4",
"sphinxcontrib-devhelp==1.0.2",
"sphinxcontrib-htmlhelp==2.0.1",
"sphinxcontrib-qthelp==1.0.3",
"sphinxcontrib-serializinghtml==1.1.5",
]
[tool.setuptools.dynamic]
version = {attr = "metsrw.__version__"}
readme = {file = ["README.md"], content-type = "text/markdown"}
[tool.ruff.lint]
# Rule reference: https://docs.astral.sh/ruff/rules/
select = [
"B",
"C4",
"E",
"F",
"I",
"UP",
"W",
]
ignore = [
"B904",
"E501",
"UP031",
]
[tool.ruff.lint.isort]
force-single-line = true
[tool.pytest.ini_options]
python_files = [
"test_*.py",
]
testpaths = [
"tests",
]
[tool.coverage.run]
source = [
"metsrw",
]
branch = true
omit = [
"tests/*",
]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py{38,39,310,311,312}, linting, docs
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
skip_install = true
deps = -r {toxinidir}/requirements-dev.txt
commands = pytest {posargs}
[testenv:linting]
basepython = python3
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:docs]
changedir = docs
commands =
sphinx-build -WT -b doctest -d {envtmpdir}/doctrees . {envtmpdir}/html
sphinx-build -WT -b dummy -d {envtmpdir}/doctrees . {envtmpdir}/html
"""