-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpyproject.toml
137 lines (123 loc) · 3.47 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
[build-system]
build-backend = "hatchling.build"
requires = [
"hatchling >=1.12.2",
"hatch-vcs >=0.2.0",
]
[project]
authors = [{name = "Anaconda, Inc.", email = "[email protected]"}]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"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 :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"cryptography>=41",
]
description = "Signing and verification tools, geared toward the conda ecosystem."
dynamic = ["version"]
keywords = [
"conda-content-trust",
"conda-authentication-resources",
"conda",
"signing",
"secure",
"verify",
"authentication",
"key",
"compromise",
]
license = {file = "LICENSE"}
name = "conda-content-trust"
readme = "README.md"
requires-python = ">=3.8"
[project.entry-points."conda"]
conda-content-trust = "conda_content_trust.plugin"
[project.optional-dependencies]
# Note that the securesystemslib optional dependency is only required to
# *produce* gpg-based signatures (instead of plain ed25519 sigs via
# pyca/cryptography). *Verification* of either signature type does NOT
# require securesystemslib.
# WARNING: DEPENDENCY ON SECURESYSTEMSLIB PINNED.
gpgsigning = ["securesystemslib==0.13.1"]
[project.scripts]
conda-content-trust = "conda_content_trust.cli:cli"
[project.urls]
changelog = "https://github.com/conda/conda-content-trust/blob/main/CHANGELOG.md"
repository = "https://github.com/conda/conda-content-trust"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"pragma: py$PYTHON_MAJOR_VERSION no cover",
"pragma: $TEST_PLATFORM no cover",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"def __repr__",
'\s*\.\.\.$',
"if TYPE_CHECKING:", # ignoring type checking imports
]
omit = ["tests/*"]
show_missing = true
skip_covered = true
sort = "Miss"
[tool.coverage.run]
# store relative paths in coverage information
relative_files = true
[tool.hatch.build]
include = ["conda_content_trust"]
[tool.hatch.build.hooks.vcs]
version-file = "conda_content_trust/__version__.py"
[tool.hatch.version]
source = "vcs"
[tool.hatch.version.raw-options]
local_scheme = "dirty-tag"
[tool.pytest.ini_options]
addopts = [
"--benchmark-columns=mean,iqr,median,ops,rounds",
"--benchmark-name=short",
"--color=yes",
"--cov-branch",
"--cov-report=html",
"--cov-report=term",
"--cov-report=term-missing",
"--cov-report=xml",
# "--cov=conda_content_trust", # passed in test runner scripts instead (avoid debugger)
"--durations=20",
"--junitxml=test-report.xml",
"--showlocals",
"--strict-markers",
"--tb=native",
"--verbose",
]
markers = [
"serial: execute test serially (to avoid race conditions)",
]
testpaths = ["tests"]
[tool.ruff]
target-version = "py38"
[tool.ruff.lint]
ignore = [
"E501", # Line too long
]
# see https://docs.astral.sh/ruff/rules/
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"ISC", # flake8-implicit-str-concat
"TCH", # flake8-type-checking
"T10", # flake8-debugger
"FA", # flake8-future-annotations
]