-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathpyproject.toml
More file actions
94 lines (77 loc) · 2.42 KB
/
pyproject.toml
File metadata and controls
94 lines (77 loc) · 2.42 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
[build-system]
requires = ["setuptools>=78.1.1", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "borg-import"
description = "Import backups made with misc. other software into borgbackup"
readme = "README.rst"
authors = [
{name = "The Borg Collective (see AUTHORS file)", email = "borgbackup@python.org"}
]
license = "BSD-3-Clause"
license-files = ["LICENSE", "AUTHORS"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: System Administrators",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Topic :: System :: Archiving :: Backup",
]
requires-python = ">=3.10"
dynamic = ["version"]
[project.urls]
Homepage = "https://borgimport.readthedocs.io/"
[project.scripts]
borg-import = "borg_import.main:main"
[tool.setuptools]
package-dir = {"" = "src"}
include-package-data = true
zip-safe = false
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools_scm]
write_to = "src/borg_import/_version.py"
[tool.pytest]
python_files = ["testsuite/*.py"]
testpaths = ["src"]
[tool.flake8]
max-line-length = 120
exclude = "build,dist,.git,.idea,.cache,.tox,docs/conf.py,.eggs"
[tool.coverage.run]
branch = true
source = ["src/borg_import"]
omit = ["*/borg_import/helpers/testsuite/*", "*/borg_import/testsuite/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:"
]
ignore_errors = true
[tool.tox]
env_list = ["py310", "py311", "py312", "py313", "py314", "flake8", "black"]
[tool.tox.env_run_base]
package = "editable-legacy"
commands = [["pytest", "-v", "-rs", "--cov=borg_import", "--cov-config=pyproject.toml", "--pyargs", "{posargs:borg_import}"]]
deps = ["-rrequirements.d/development.txt", "-rrequirements.d/codestyle.txt"]
passenv = ["*"]
[tool.tox.env_pkg_base]
passenv = ["*"]
[tool.tox.env."py{310,311,312,313,314}"]
[tool.tox.env.flake8]
commands = [["flake8"]]
[tool.tox.env.black]
commands = [["black", "--check", "."]]
[tool.black]
line-length = 120
skip-magic-trailing-comma = true