diff --git a/LICENSE b/LICENSE.txt similarity index 100% rename from LICENSE rename to LICENSE.txt diff --git a/bin/build-cli-plugin b/bin/build-cli-plugin index 2365b64..d46f595 100755 --- a/bin/build-cli-plugin +++ b/bin/build-cli-plugin @@ -138,6 +138,14 @@ def main(output): # Copy wheel shutil.copy(wheel_path, output_dir / wheel_name) + # Copy license + click.echo("Copying license...") + license_path = repo_root / "LICENSE.txt" + if license_path.exists(): + shutil.copy(license_path, output_dir / "LICENSE.txt") + else: + click.secho("Warning: LICENSE.txt not found", fg="yellow", err=True) + # Render manifest click.echo(f"Rendering manifest.json with version {version}...") render_manifest(output_dir / "manifest.json", version) diff --git a/datarobot-cli-plugin/dr-apps.ps1 b/datarobot-cli-plugin/dr-apps.ps1 index 2b8cc93..fbdabc6 100755 --- a/datarobot-cli-plugin/dr-apps.ps1 +++ b/datarobot-cli-plugin/dr-apps.ps1 @@ -8,7 +8,7 @@ $ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path # Handle --dr-plugin-manifest flag for CLI integration if ($args.Count -gt 0 -and $args[0] -eq "--dr-plugin-manifest") {{ - Write-Output '{{\"name\":\"{plugin_name}\",\"version\":\"{version}\",\"description\":\"{plugin_description}\"}}' + Get-Content "$ScriptDir\manifest.json" -Raw exit 0 }} diff --git a/datarobot-cli-plugin/dr-apps.sh b/datarobot-cli-plugin/dr-apps.sh index 09bf8e3..9556347 100755 --- a/datarobot-cli-plugin/dr-apps.sh +++ b/datarobot-cli-plugin/dr-apps.sh @@ -16,9 +16,7 @@ SCRIPT_DIR="$(cd "$(dirname "${{BASH_SOURCE[0]}}")" && pwd)" # Handle --dr-plugin-manifest flag for CLI integration if [[ "${{1:-}}" == "--dr-plugin-manifest" ]]; then - cat << 'EOF' -{{"name":"{plugin_name}","version":"{version}","description":"{plugin_description}"}} -EOF + cat "$SCRIPT_DIR/manifest.json" exit 0 fi diff --git a/setup.cfg b/setup.cfg index 1e545b1..c6024e0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,2 @@ [metadata] -version = 11.1.1 +version = 11.1.2