Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for PEP 770 #230

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/validate_pyproject/project_metadata.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@
"type": "string"
}
},
"sbom-files": {
"description": "Paths or globs to paths of Software Bill-of-Materials files",
"type": "array",
"items": {
"type": "string"
}
},
"authors": {
"type": "array",
"items": {"$ref": "#/definitions/author"},
Expand Down Expand Up @@ -247,6 +254,7 @@
"requires-python",
"license",
"license-files",
"sbom-files",
"authors",
"maintainers",
"keywords",
Expand Down
4 changes: 4 additions & 0 deletions tests/examples/simple/pep770.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[project]
name = "example"
version = "1.2.3"
sbom-files = ["sboms/bom.cdx.json", "sboms/*"]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`project.sbom-files` must be array
4 changes: 4 additions & 0 deletions tests/invalid-examples/pep621/pep770/pep770-string.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[project]
name = "example"
version = "1.2.3"
sbom-files = "sboms/bom.cdx.json"