From 0426e0590acb5e3a0ca8546587b1506cba2aa12a Mon Sep 17 00:00:00 2001 From: pulpbot Date: Wed, 3 Jul 2024 16:49:01 +0000 Subject: [PATCH] Update CI files [noissue] --- .github/template_gitref | 2 +- .../scripts/install_python_client.sh | 69 ------------------- .../workflows/scripts/install_ruby_client.sh | 42 ----------- docs/template_gitref | 2 +- 4 files changed, 2 insertions(+), 113 deletions(-) delete mode 100755 .github/workflows/scripts/install_python_client.sh delete mode 100755 .github/workflows/scripts/install_ruby_client.sh diff --git a/.github/template_gitref b/.github/template_gitref index 3d3d9afe4..3a1fb7d1d 100644 --- a/.github/template_gitref +++ b/.github/template_gitref @@ -1 +1 @@ -2021.08.26-347-gc4a2504 +2021.08.26-348-gb87ed3b diff --git a/.github/workflows/scripts/install_python_client.sh b/.github/workflows/scripts/install_python_client.sh deleted file mode 100755 index 9474e1f75..000000000 --- a/.github/workflows/scripts/install_python_client.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/bash - -# WARNING: DO NOT EDIT! -# -# This file was generated by plugin_template, and is managed by it. Please use -# './plugin-template --github pulp_deb' to update this file. -# -# For more info visit https://github.com/pulp/plugin_template - -set -mveuo pipefail - -# make sure this script runs at the repo root -cd "$(dirname "$(realpath -e "$0")")"/../../.. - -source .github/workflows/scripts/utils.sh - -PULP_URL="${PULP_URL:-https://pulp}" -export PULP_URL -PULP_API_ROOT="${PULP_API_ROOT:-/pulp/}" -export PULP_API_ROOT - -REPORTED_STATUS="$(pulp status)" -REPORTED_VERSION="$(echo "$REPORTED_STATUS" | jq --arg plugin "deb" -r '.versions[] | select(.component == $plugin) | .version')" -VERSION="$(echo "$REPORTED_VERSION" | python -c 'from packaging.version import Version; print(Version(input()))')" - -pushd ../pulp-openapi-generator -rm -rf pulp_deb-client - -if pulp debug has-plugin --name "core" --specifier ">=3.44.0.dev" -then - curl --fail-with-body -k -o api.json "${PULP_URL}${PULP_API_ROOT}api/v3/docs/api.json?bindings&component=deb" - USE_LOCAL_API_JSON=1 ./generate.sh pulp_deb python "$VERSION" -else - ./generate.sh pulp_deb python "$VERSION" -fi - -pushd pulp_deb-client -python setup.py sdist bdist_wheel --python-tag py3 - -twine check "dist/pulp_deb_client-$VERSION-py3-none-any.whl" -twine check "dist/pulp_deb-client-$VERSION.tar.gz" - -cmd_prefix pip3 install "/root/pulp-openapi-generator/pulp_deb-client/dist/pulp_deb_client-${VERSION}-py3-none-any.whl" -tar cvf ../../pulp_deb/deb-python-client.tar ./dist - -find ./docs/* -exec sed -i 's/Back to README/Back to HOME/g' {} \; -find ./docs/* -exec sed -i 's/README//g' {} \; -cp README.md docs/index.md -sed -i 's/docs\///g' docs/index.md -find ./docs/* -exec sed -i 's/\.md//g' {} \; - -cat >> mkdocs.yml << DOCSYAML ---- -site_name: PulpDeb Client -site_description: Deb bindings -site_author: Pulp Team -site_url: https://docs.pulpproject.org/pulp_deb_client/ -repo_name: pulp/pulp_deb -repo_url: https://github.com/pulp/pulp_deb -theme: readthedocs -DOCSYAML - -# Building the bindings docs -mkdocs build - -# Pack the built site. -tar cvf ../../pulp_deb/deb-python-client-docs.tar ./site -popd -popd diff --git a/.github/workflows/scripts/install_ruby_client.sh b/.github/workflows/scripts/install_ruby_client.sh deleted file mode 100755 index fbc990038..000000000 --- a/.github/workflows/scripts/install_ruby_client.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -# WARNING: DO NOT EDIT! -# -# This file was generated by plugin_template, and is managed by it. Please use -# './plugin-template --github pulp_deb' to update this file. -# -# For more info visit https://github.com/pulp/plugin_template - -set -mveuo pipefail - -# make sure this script runs at the repo root -cd "$(dirname "$(realpath -e "$0")")"/../../.. - -source .github/workflows/scripts/utils.sh - -PULP_URL="${PULP_URL:-https://pulp}" -export PULP_URL -PULP_API_ROOT="${PULP_API_ROOT:-/pulp/}" -export PULP_API_ROOT - -REPORTED_STATUS="$(pulp status)" -REPORTED_VERSION="$(echo "$REPORTED_STATUS" | jq --arg plugin "deb" -r '.versions[] | select(.component == $plugin) | .version')" -VERSION="$(echo "$REPORTED_VERSION" | python -c 'from packaging.version import Version; print(Version(input()))')" - -pushd ../pulp-openapi-generator -rm -rf pulp_deb-client - -if pulp debug has-plugin --name "core" --specifier ">=3.44.0.dev" -then - curl --fail-with-body -k -o api.json "${PULP_URL}${PULP_API_ROOT}api/v3/docs/api.json?bindings&component=deb" - USE_LOCAL_API_JSON=1 ./generate.sh pulp_deb ruby "$VERSION" -else - ./generate.sh pulp_deb ruby "$VERSION" -fi - -pushd pulp_deb-client -gem build pulp_deb_client -gem install --both "./pulp_deb_client-$VERSION.gem" -tar cvf ../../pulp_deb/deb-ruby-client.tar "./pulp_deb_client-$VERSION.gem" -popd -popd diff --git a/docs/template_gitref b/docs/template_gitref index 3d3d9afe4..3a1fb7d1d 100644 --- a/docs/template_gitref +++ b/docs/template_gitref @@ -1 +1 @@ -2021.08.26-347-gc4a2504 +2021.08.26-348-gb87ed3b