-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
111 lines (93 loc) · 2.83 KB
/
pyproject.toml
File metadata and controls
111 lines (93 loc) · 2.83 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
[project]
name = "libtea"
version = "0.5.1"
description = "Python client library for the Transparency Exchange API (TEA)"
authors = [{ name = "sbomify", email = "hello@sbomify.com" }]
requires-python = ">=3.11"
readme = "README.md"
license = "Apache-2.0"
keywords = ["tea", "transparency-exchange-api", "sbom", "vex", "supply-chain", "security", "cyclonedx"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Security",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"requests>=2.32.4,<3",
"pydantic>=2.1.0,<3",
"semver>=3.0.4,<4",
]
[project.urls]
Homepage = "https://github.com/sbomify/py-libtea"
Repository = "https://github.com/sbomify/py-libtea"
Documentation = "https://github.com/sbomify/py-libtea#readme"
"Bug Tracker" = "https://github.com/sbomify/py-libtea/issues"
Changelog = "https://github.com/sbomify/py-libtea/releases"
[project.optional-dependencies]
cli = ["click>=8.0,<9", "rich>=13.0.0"]
conformance = ["pytest>=8.0.0"]
server = []
[project.scripts]
tea-cli = "libtea._cli_entry:main"
[project.entry-points."pytest11"]
tea-conformance = "libtea.conformance.plugin"
[dependency-groups]
dev = [
"pytest>=9.0.0,<10",
"pytest-cov>=7.0.0,<8",
"pytest-timeout>=2.3.0,<3",
"ruff>=0.15.0,<0.16",
"pre-commit>=4.5.0,<5",
"responses>=0.26.0,<1",
"mypy>=1.15.0,<2",
"types-requests>=2.32.0",
"click>=8.0,<9",
"rich>=13.0.0",
]
[tool.hatch.build.targets.wheel]
packages = ["src/libtea"]
sbom-files = ["libtea.cdx.json"]
[tool.hatch.build.targets.sdist]
include = ["src/libtea", "libtea.cdx.json", "pyproject.toml", "README.md", "LICENSE"]
[build-system]
requires = ["hatchling>=1.28.0"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "--cov=src/libtea --cov-report=term-missing --cov-branch --timeout=30"
[tool.coverage.run]
branch = true
[tool.coverage.report]
show_missing = true
[tool.ruff]
line-length = 120
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I"]
ignore = ["E501"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.mypy]
files = ["src/libtea"]
plugins = ["pydantic.mypy"]
strict = true
warn_unused_ignores = true
enable_error_code = ["ignore-without-code"]
[[tool.mypy.overrides]]
module = "libtea.cli"
disallow_untyped_decorators = false
[[tool.mypy.overrides]]
module = "libtea._cli_fmt"
disallow_untyped_decorators = false
[[tool.mypy.overrides]]
module = "libtea.conformance.*"
disallow_untyped_decorators = false