From 302577a76d3a03f705201c4df0125d62edbaff3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Ma=C5=82ota?= <86779115+amalota@users.noreply.github.com> Date: Mon, 3 Oct 2022 12:18:15 +0200 Subject: [PATCH] Issue #665: Remove package updates in tap from CI (#671) --- .circleci/config.yml | 10 -------- CONTRIBUTING.md | 2 -- ci/homebrew-tap/ci-deploy.sh | 45 ------------------------------------ 3 files changed, 57 deletions(-) delete mode 100644 ci/homebrew-tap/ci-deploy.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index 10c4b239f..375bb7194 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -108,11 +108,6 @@ jobs: # Side effects: does an actual release, but to the test PyPI command: bash ci/pypi/ci-deploy.sh --dry-run - - run: - name: '[Dry run] Update Homebrew tap with local installation test' - # Prerequisites: artifacts must be released to test PyPI first - command: bash ci/homebrew-tap/ci-deploy.sh --dry-run - - run: name: '[Dry run] Publish image to Docker Hub' command: bash ci/docker/ci-deploy.sh --dry-run @@ -147,11 +142,6 @@ jobs: name: 'Deploy to PyPI' command: bash ci/pypi/ci-deploy.sh - - run: - name: 'Update Homebrew tap' - # Prerequisites: artifacts must be released to PyPI first - command: bash ci/homebrew-tap/ci-deploy.sh - - run: name: 'Publish image to Docker Hub' command: bash ci/docker/ci-deploy.sh diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bef4fa864..fd19a0c8b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -157,8 +157,6 @@ Review fixes should be pushed on separate commits for easier viewing on GitHub ( Instruction on how to be a maintainer and other helpful tips can be found in [conda-forge recipe maintainer docs](https://conda-forge.org/docs/maintainer/adding_pkgs.html#recipe-maintainer). -1. Verify that the latest commit in [VirtusLab/homebrew-git-machete](https://github.com/VirtusLab/homebrew-git-machete) tap repo refers to the latest version. - 1. Verify that a Docker image for the new version has been pushed to Docker Hub: [gitmachete/git-machete](https://hub.docker.com/r/gitmachete/git-machete/tags). 1. Verify that a newly released version is present in `latest/stable` channel in [Snap](https://snapcraft.io/git-machete/releases). diff --git a/ci/homebrew-tap/ci-deploy.sh b/ci/homebrew-tap/ci-deploy.sh deleted file mode 100644 index e95a98de8..000000000 --- a/ci/homebrew-tap/ci-deploy.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -set -e -o pipefail -u - -if [[ ${1-} == "--dry-run" || ${CIRCLE_BRANCH-} != "master" ]]; then - do_push=false - pypi_host=test.pypi.org -else - do_push=true - pypi_host=pypi.org -fi - -version=$(python3 setup.py --version) - -git clone https://${GITHUB_TOKEN}@github.com/VirtusLab/homebrew-git-machete.git ../homebrew-git-machete -cd ../homebrew-git-machete/ - -set -x -git config user.email "gitmachete@virtuslab.com" -git config user.name "Git Machete Release Bot" -sha256=$( - curl -s https://$pypi_host/pypi/git-machete/$version/json \ - | jq --raw-output '.urls | map(select(.packagetype == "sdist")) | .[0].digests.sha256') -sed -i "s/git-machete-.*\.tar\.gz/git-machete-$version.tar.gz/" git-machete.rb -sed -i "s/pypi\.org/$pypi_host/" git-machete.rb -sed -i "s/^ sha256 .*/ sha256 \"$sha256\"/" git-machete.rb -cat git-machete.rb -git add git-machete.rb -git commit --message "Release $version, CircleCI build: $CIRCLE_BUILD_NUM" - -if [[ $do_push == true ]]; then - git push origin master -else - echo "Refraining from push since it's a dry run" - # install git-machete from local formula with homebrew - /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" < /dev/null - eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" - brew install --build-from-source --formula ./git-machete.rb - if [[ "$version" != "$(git machete --version | cut -d' ' -f4)" ]]; then - echo "Something went wrong during brew installation: installed version does not match version from formula." - echo "Formula version: $version, installed version: $(git machete --version | cut -d' ' -f4)" - exit 1 - fi - brew remove git-machete -fi