Skip to content

Commit de6cb5e

Browse files
test: modified and added integration tests for python buildspec generation
1 parent 59bfd73 commit de6cb5e

File tree

3 files changed

+34
-1
lines changed

3 files changed

+34
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"macaron_version": "0.18.0", "group_id": null, "artifact_id": "cachetools", "version": "6.2.1", "git_repo": "https://github.com/tkem/cachetools", "git_tag": "ca7508fd56103a1b6d6f17c8e93e36c60b44ca25", "newline": "lf", "language_version": "", "ecosystem": "pypi", "purl": "pkg:pypi/cachetools@6.2.1", "language": "python", "build_tool": "pip", "build_commands": [["pip", "install", "coverage", "tox"]], "build_backends": {"setuptools": "==(80.9.0)", "wheel": ""}}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Copyright (c) 2025 - 2025, Oracle and/or its affiliates. All rights reserved.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.
3+
4+
description: |
5+
Analyzing a PyPI PURL that has provenance available on the PyPI registry, and passes the SCM authenticity check.
6+
It also tests buildspec generation.
7+
8+
tags:
9+
- macaron-python-package
10+
- tutorial
11+
12+
steps:
13+
- name: Run macaron analyze
14+
kind: analyze
15+
options:
16+
command_args:
17+
- -purl
18+
- pkg:pypi/cachetools@6.2.1
19+
- name: Generate the buildspec
20+
kind: gen-build-spec
21+
options:
22+
command_args:
23+
- -purl
24+
- pkg:pypi/cachetools@6.2.1
25+
- --output-format
26+
- default-buildspec
27+
- name: Compare Buildspec.
28+
kind: compare
29+
options:
30+
kind: default_build_spec
31+
result: output/buildspec/pypi/cachetools/macaron.buildspec
32+
expected: expected_default.buildspec
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"macaron_version": "0.18.0", "group_id": null, "artifact_id": "toga", "version": "0.5.1", "git_repo": "https://github.com/beeware/toga", "git_tag": "ef1912b0a1b5c07793f9aa372409f5b9d36f2604", "newline": "lf", "language_version": "", "ecosystem": "pypi", "purl": "pkg:pypi/toga@0.5.1", "language": "python", "build_tool": "pip", "build_commands": [["pip", "install", "-U", "pip"]]}
1+
{"macaron_version": "0.18.0", "group_id": null, "artifact_id": "toga", "version": "0.5.1", "git_repo": "https://github.com/beeware/toga", "git_tag": "ef1912b0a1b5c07793f9aa372409f5b9d36f2604", "newline": "lf", "language_version": "", "ecosystem": "pypi", "purl": "pkg:pypi/toga@0.5.1", "language": "python", "build_tool": "pip", "build_commands": [["pip", "install", "-U", "pip"]], "build_backends": {"setuptools": "==(80.3.1)", "setuptools_scm": "==8.3.1", "setuptools_dynamic_dependencies": "==1.0.0"}}

0 commit comments

Comments
 (0)