langlauf-cli 0.9.0__tar.gz → 0.9.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/PKG-INFO +1 -1
  2. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/ll_cli/commands/upload.py +2 -3
  3. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/ll_cli/jenkins/builds.py +1 -3
  4. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/ll_cli/jenkins/pipelines.py +4 -7
  5. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/pyproject.toml +2 -2
  6. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/LICENSE +0 -0
  7. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/README.md +0 -0
  8. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/ll_cli/commands/configure.py +0 -0
  9. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/ll_cli/commands/delete.py +0 -0
  10. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/ll_cli/commands/download.py +0 -0
  11. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/ll_cli/commands/status.py +0 -0
  12. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/ll_cli/errors.py +0 -0
  13. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/ll_cli/history.py +0 -0
  14. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/ll_cli/jenkins/client.py +0 -0
  15. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/ll_cli/jenkins/stage_cache.py +0 -0
  16. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/ll_cli/main.py +0 -0
  17. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/ll_cli/output.py +0 -0
  18. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/ll_cli/settings.py +0 -0
  19. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/ll_cli/ui/completion.py +0 -0
  20. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/ll_cli/ui/json_output.py +0 -0
  21. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/ll_cli/ui/pickers.py +0 -0
  22. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/ll_cli/ui/tables.py +0 -0
  23. {langlauf_cli-0.9.0 → langlauf_cli-0.9.2}/ll_cli/validation.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langlauf-cli
3
- Version: 0.9.0
3
+ Version: 0.9.2
4
4
  Summary: A comprehensive multi-platform tool providing a consistent and easy-to-use interface to Langlauf's online services.
5
5
  License-File: LICENSE
6
6
  Author: Langlauf
@@ -95,10 +95,10 @@ def _ensure_jenkins_job_for_product(session: client.Session, target_product_name
95
95
 
96
96
  A missing job is created by copying the currently-selected product's config.xml
97
97
  (the template; see the create_job call below for why not copy_job). The copy is a
98
- buildable job like the template, so it's a valid SBOM pipeline by construction.
98
+ pipeline job like the template, so it's a valid SBOM pipeline by construction.
99
99
 
100
100
  An existing job is validated against session.available_pipelines —
101
- if the name resolves to a job that *isn't* a valid SBOM pipeline (a folder / etc.),
101
+ if the name resolves to a job that *isn't* a valid SBOM pipeline (for example a folder or a freestyle job),
102
102
  we abort with the same error path as when a `--product` typo doesn't match anything.
103
103
  """
104
104
  existing_job: Project | None = session.jenkins.get_job(target_product_name)
@@ -227,7 +227,6 @@ def upload(
227
227
  f"'{target_product_name}' at '{session.jenkins.url}'"
228
228
  )
229
229
 
230
- # PRODUCT_VERSION stays user-facing.
231
230
  # dict[str, object] because UPLOAD_FILE (a file-like object) is added below.
232
231
  build_parameters: dict[str, object] = {
233
232
  pipelines.GENERATE_SBOM_PARAMETER_PRODUCT_VERSION: resolved_product_version,
@@ -147,9 +147,7 @@ def _build_summary_from_raw_build(
147
147
 
148
148
  Shared by every callsite that fetches builds[] data (one-shot or paged) so the field
149
149
  mapping lives in exactly one place. The `pipeline_name` is the Jenkins job name (e.g.
150
- `sbomaas_prod_pipeline`); we treat it as the product_name for display purposes — the build's
151
- own `PRODUCT_NAME` parameter is the legacy upload-derived value and is being phased
152
- out, so we deliberately don't read it.
150
+ `default_product`), which is the product name.
153
151
  """
154
152
  version_label = _version_label_from_raw_build(raw_build, pipeline_name)
155
153
  return BuildSummary(
@@ -11,7 +11,7 @@ from typing import TYPE_CHECKING, NoReturn
11
11
 
12
12
  from api4jenkins import Jenkins as SBOMaaSEndpoint # type: ignore[import-untyped]
13
13
  from api4jenkins.build import WorkflowRun # type: ignore[import-untyped]
14
- from api4jenkins.job import Project # type: ignore[import-untyped]
14
+ from api4jenkins.job import Project, WorkflowJob # type: ignore[import-untyped]
15
15
  import typer
16
16
 
17
17
  from ll_cli import errors
@@ -38,13 +38,10 @@ def get_pipeline_names(jenkins: SBOMaaSEndpoint) -> list[Pipeline]:
38
38
  `display_name`.
39
39
  """
40
40
  pipelines: list[Pipeline] = []
41
- # Every buildable job is an SBOMaaS pipeline.
41
+ # Every top-level pipeline job that can run is an SBOMaaS pipeline.
42
+ # sbomaas-jenkins manages exactly these jobs.
42
43
  for job in jenkins.iter():
43
- # Folders and other container items don't expose `buildable` at all
44
- # (api4jenkins raises AttributeError). hasattr skips them explicitly,
45
- # rather than a broad try/except that would also swallow real bugs in
46
- # the checks below.
47
- if not hasattr(job, "buildable"):
44
+ if not isinstance(job, WorkflowJob):
48
45
  continue
49
46
  if not job.buildable:
50
47
  continue
@@ -11,7 +11,7 @@ dynamic = ["version", "dependencies", "classifiers", "requires-python"]
11
11
  ll-cli = "ll_cli.main:app"
12
12
 
13
13
  [tool.poetry]
14
- version = "0.9.0"
14
+ version = "0.9.2"
15
15
  packages = [
16
16
  { include = "ll_cli" },
17
17
  { include = "LICENSE" },
@@ -38,7 +38,7 @@ pytest-cov = "^7.0.0"
38
38
  coverage = {extras = ["toml"], version = "^7.11.0"}
39
39
  taskipy = "^1.14.1"
40
40
  mypy = "^1.19.0"
41
- sbomaas-jenkins = "^1.0.0"
41
+ sbomaas-jenkins = "^2.0.1"
42
42
  ll-sbomaas-utils = "^0.2.0"
43
43
 
44
44
  [tool.pytest.ini_options]
File without changes
File without changes