-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
103 lines (91 loc) · 3.77 KB
/
Copy pathpyproject.toml
File metadata and controls
103 lines (91 loc) · 3.77 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "oscal-pipeline"
version = "0.1.0"
description = "Transform compliance audit-tool output into OSCAL Assessment Results (SAR) JSON for FedRAMP 20x and CJIS v6.1 evidence packages."
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
authors = [{ name = "0xBahalaNa" }]
keywords = ["oscal", "fedramp", "fedramp-20x", "cjis", "compliance", "grc"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Security",
]
# Runtime dependencies use compatible-release pins (~=) where the
# upstream follows SemVer, so downstream installers can absorb patch
# updates without re-resolving the universe. Exact pins for reproducible
# builds live in requirements.txt — that file is the CM-3 (configuration
# change control) artifact for this project.
#
# oscal-pydantic ships a single CalVer release (2023.3.21), so the
# compatible-release operator (~=) cannot apply; pin it exactly here too
# and revisit if upstream resumes a release cadence.
dependencies = [
"compliance-trestle~=4.0",
"jsonschema~=4.23",
"oscal-pydantic==2023.3.21",
]
[project.optional-dependencies]
dev = [
"pytest~=8.3",
"pytest-cov~=6.0",
"mypy~=1.13",
"ruff~=0.15.0",
]
# The hyphenated console-script name follows Unix convention (cf. ``trestle``,
# ``oscal-cli``); the underscored module path is required by Python's import
# system. The asymmetry is intentional.
[project.scripts]
oscal-pipeline = "oscal_pipeline.cli:main"
[project.urls]
Homepage = "https://github.com/0xBahalaNa/oscal-evidence-pipeline"
Issues = "https://github.com/0xBahalaNa/oscal-evidence-pipeline/issues"
Architecture = "https://github.com/0xBahalaNa/oscal-evidence-pipeline/blob/main/ARCHITECTURE.md"
[tool.setuptools.packages.find]
include = ["oscal_pipeline*"]
exclude = ["tests*", "examples*"]
# PEP 561 — ship the ``py.typed`` marker inside the installed wheel so
# downstream consumers' type-checkers (mypy, pyright) honor the typed
# Adapter Protocol and registry surface. Without this marker the
# package's ``[tool.mypy] strict = true`` investment is invisible to
# anyone who installs the wheel; their checker treats every imported
# symbol as ``Any``.
[tool.setuptools.package-data]
oscal_pipeline = ["py.typed", "schemas/*.json"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--cov=oscal_pipeline --cov-report=term-missing"
python_files = ["test_*.py"]
# Strict on our code, tolerant of third-party stubs. ``oscal-pydantic``
# is the only third-party type source we tolerate as opaque — its frozen
# 2023.3.21 release fails to import on Python 3.14, which makes mypy's
# stub-following also fail; ``ignore_missing_imports`` + ``follow_imports
# = "skip"`` keeps strict mode on our own code without dragging the
# broken upstream into every type-check.
[tool.mypy]
files = ["oscal_pipeline"]
strict = true
python_version = "3.11"
[[tool.mypy.overrides]]
module = "oscal_pydantic.*"
ignore_missing_imports = true
follow_imports = "skip"
# Codify ruff's current default select (E4, E7, E9, F) explicitly so the
# CI gate is version-stable: ruff's *implicit* default ruleset can shift
# between releases, which would silently change what the gate enforces.
# Scope matches mypy's files=["oscal_pipeline"] and the CI command's path
# argument. Broadening the ruleset (E501/I/UP/B/SIM/...) is deferred — see
# the follow-up issue.
[tool.ruff]
target-version = "py311"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F"]