This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch sbp
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
The following commit(s) were added to refs/heads/sbp by this push:
new 7d0920f6 Remove binary and source artifact paths from the release
policy form
7d0920f6 is described below
commit 7d0920f68624d6bc1b395552d52864eb846ed3f9
Author: Sean B. Palmer <[email protected]>
AuthorDate: Fri Mar 20 18:50:34 2026 +0000
Remove binary and source artifact paths from the release policy form
---
atr/get/projects.py | 2 --
atr/shared/projects.py | 10 ----------
atr/storage/writers/policy.py | 2 --
3 files changed, 14 deletions(-)
diff --git a/atr/get/projects.py b/atr/get/projects.py
index 8f1215a9..b9460b0b 100644
--- a/atr/get/projects.py
+++ b/atr/get/projects.py
@@ -354,11 +354,9 @@ def _render_compose_form(project: sql.Project) ->
htm.Element:
submit_label="Save",
defaults={
"project_key": str(project.key),
- "source_artifact_paths":
"\n".join(project.policy_source_artifact_paths),
"license_check_mode": project.policy_license_check_mode,
"source_excludes_lightweight":
"\n".join(project.policy_source_excludes_lightweight),
"source_excludes_rat":
"\n".join(project.policy_source_excludes_rat),
- "binary_artifact_paths":
"\n".join(project.policy_binary_artifact_paths),
"file_tag_mappings": atr_tag_yaml,
"strict_checking": project.policy_strict_checking,
},
diff --git a/atr/shared/projects.py b/atr/shared/projects.py
index 470a32f9..e027ee11 100644
--- a/atr/shared/projects.py
+++ b/atr/shared/projects.py
@@ -108,11 +108,6 @@ class AddProjectForm(form.Form):
class ComposePolicyForm(form.Form):
variant: COMPOSE = form.value(COMPOSE)
project_key: safe.ProjectKey = form.label("Project name",
widget=form.Widget.HIDDEN)
- source_artifact_paths: str = form.label(
- "Source artifact paths",
- "Paths to source artifacts to be included in the release.",
- widget=form.Widget.TEXTAREA,
- )
license_check_mode: form.Enum[sql.LicenseCheckMode] = form.label(
"Source artifact license checker",
"Only affects source artifacts. Lightweight checks ALWAYS RUN on
binary artifacts.",
@@ -129,11 +124,6 @@ class ComposePolicyForm(form.Form):
"RAT exclude file contents for source artifacts. Used only when no
.rat-excludes file exists in the archive.",
widget=form.Widget.TEXTAREA,
)
- binary_artifact_paths: str = form.label(
- "Binary artifact paths",
- "Paths to binary artifacts to be included in the release.",
- widget=form.Widget.TEXTAREA,
- )
file_tag_mappings: str = form.label(
"Tagging spec",
"Spec for which files should be tagged for release in specific
distribution types, YAML format",
diff --git a/atr/storage/writers/policy.py b/atr/storage/writers/policy.py
index 8d56fad8..d9f2626b 100644
--- a/atr/storage/writers/policy.py
+++ b/atr/storage/writers/policy.py
@@ -118,11 +118,9 @@ class CommitteeMember(CommitteeParticipant):
for value in values:
if ".." in value:
raise ValueError("File tag mapping values may not contain
'..'")
- release_policy.source_artifact_paths =
_split_lines(form.source_artifact_paths)
release_policy.license_check_mode = form.license_check_mode #
pyright: ignore[reportAttributeAccessIssue]
release_policy.source_excludes_lightweight =
_split_lines_verbatim(form.source_excludes_lightweight)
release_policy.source_excludes_rat =
_split_lines_verbatim(form.source_excludes_rat)
- release_policy.binary_artifact_paths =
_split_lines(form.binary_artifact_paths)
release_policy.file_tag_mappings = atr_tags_dict
release_policy.strict_checking = form.strict_checking
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]