-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathpyproject.toml
187 lines (165 loc) · 4.48 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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# Added to aide with eventual transition away from setup.py
[build-system]
requires = [
"setuptools >= 35.0.2",
"wheel",
"setuptools_scm >= 2.0.0"
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm] # this section must exist
[project]
name = "compliance-trestle"
description = "Tools to manage & autogenerate python objects representing the OSCAL layers/models"
authors = [
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Operating System :: POSIX",
"Operating System :: Microsoft",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE"]
dynamic = ["version"]
requires-python = ">=3.9"
dependencies = [
"attrs",
"ilcli",
"cryptography==44.0.2",
"paramiko==3.5.0",
"ruamel.yaml",
"furl",
"pydantic[email]>=2.0.0",
"python-dotenv>=0.10.4",
"datamodel-code-generator[http] == 0.25.3",
"python-frontmatter",
"pywin32 >= 1.0;platform_system=='Windows'",
"defusedxml",
"openpyxl~=3.0",
"Jinja2 == 3.1.6",
"cmarkgfm==2024.1.*", ## Update regularly
"orjson",
"requests>=2.32.2",
"importlib_resources"
]
[project.optional-dependencies]
dev = [
"pytest>=5.4.3",
"pytest-cov>=2.10.0",
"pytest-xdist",
"pre-commit>=2.4.0",
"setuptools>=61",
"urllib3==1.26.19",
"wheel",
"yapf",
"python-semantic-release>=9.8.0",
"pep8-naming",
"pytest-random-order",
"python-dateutil",
"mypy",
"types-PyYAML",
"types-paramiko",
"types-requests",
"types-setuptools",
## Docs website
"mike",
"mkdocs>=1.6.0",
"mkdocs-awesome-pages-plugin",
"mkdocstrings[python]>=0.25.2",
"mkdocs-htmlproofer-plugin",
"mkdocs-material",
"markdown-include",
"mkdocs-minify-plugin",
"mkdocs-git-revision-date-localized-plugin",
"pymdown-extensions",
"livereload",
"pillow",
"cairosvg",
## Constrain system
"pylint",
# Checking repo after docs generation.
"gitpython"
]
[project.urls]
Homepage = "https://oscal-compass.github.io/compliance-trestle"
[project.scripts]
trestle = "trestle.cli:run"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["trestle*"]
exclude = ["tests"]
[tool.setuptools.package-data]
trestle = ["*.ini", "*.md", "*.jinja", "*.drawio", "*.json", "*.yaml", "*.yml"]
[tool.setuptools.dynamic]
version = {attr = "trestle.__init__.__version__"}
[tool.pytest.ini_options]
minversion = "6.2"
testpaths = [
"tests",
]
[tool.black]
line-length = 500
[tool.isort]
line_length = 500
[tool.flake8]
# WARNING: This should be kept compatible with .pre-commit-config.yaml
ignore = ["P1", "C812", "C813", "C814", "C815", "C816"]
max-line-length = 120
exclude = [
"trestle/oscal"
]
[tool.mypy]
plugins = "pydantic.v1.mypy"
ignore_missing_imports = true
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
show_error_codes = true
show_error_context = true
disallow_untyped_defs = true
disable_error_code = ["union-attr", "attr-defined", "no-redef", "assignment", "arg-type", "list-item"]
[[tool.mypy.overrides]]
module = "trestle.oscal.*"
ignore_errors = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true
[tool.coverage.run]
relative_files = true
[tool.semantic_release]
build_command = """
python -m pip install -e .[dev] --upgrade --upgrade-strategy eager --
python setup.py sdist bdist_wheel
"""
version_variables = ["trestle/__init__.py:__version__"]
commit_author = "semantic-release <semantic-release>"
[tool.semantic_release.commit_parser_options]
allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test"]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
default_bump_level = 0
[tool.semantic_release.branches.main]
match = "(main)"
prerelease_token = "rc"
prerelease = false
[tool.semantic_release.remote]
name = "origin"
type = "github"
ignore_token_for_push = false
insecure = false
[tool.semantic_release.publish]
dist_glob_patterns = ["dist/*"]