From 23846b49359f986deee2ceb34ebbd3c57fe90d70 Mon Sep 17 00:00:00 2001 From: Mat Date: Thu, 29 Aug 2024 09:37:16 +0100 Subject: [PATCH] ci: remove pypi release (#730) previously we were publishing the data_platform_catalogue library to PyPI. However, we haven't updated the version for a long time, and we're no longer using this package from other projects. --- .github/workflows/deploy-staged.yml | 9 ---- .../reusable-publish-datahub-client.yml | 42 ------------------- lib/datahub-client/CHANGELOG.md | 2 +- lib/datahub-client/pyproject.toml | 6 +-- 4 files changed, 4 insertions(+), 55 deletions(-) delete mode 100644 .github/workflows/reusable-publish-datahub-client.yml diff --git a/.github/workflows/deploy-staged.yml b/.github/workflows/deploy-staged.yml index 55695ae2..ca53913a 100644 --- a/.github/workflows/deploy-staged.yml +++ b/.github/workflows/deploy-staged.yml @@ -74,12 +74,3 @@ jobs: - name: Generate a draft release run: gh release create --generate-notes --latest --draft ${{ github.sha }} --title "Release candidate (${{github.sha}})" - - # Unrelated to the above. - # This is only used to share library code between find-moj-data and data-catalogue. - release-datahub-client: - needs: - - deploy-prod - - code-tests - if: ${{ needs.code-tests.outputs.datahub-client-path == 'true' }} - uses: "./.github/workflows/reusable-publish-datahub-client.yml" diff --git a/.github/workflows/reusable-publish-datahub-client.yml b/.github/workflows/reusable-publish-datahub-client.yml deleted file mode 100644 index 7f03da65..00000000 --- a/.github/workflows/reusable-publish-datahub-client.yml +++ /dev/null @@ -1,42 +0,0 @@ ---- -name: Release Datahub Client library - -on: - workflow_call: - -permissions: read-all - -jobs: - release: - name: Release - runs-on: ubuntu-latest - defaults: - run: - working-directory: lib/datahub-client - environment: - name: datahub-client-pypi - permissions: - id-token: write - steps: - - name: Checkout - id: checkout - uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 - - - name: Set up Python 3.10 - id: setup_python - uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 - with: - python-version: "3.10" - - - name: Install poetry - run: pipx install poetry - - - name: Build a distribution - id: build-distribution - run: | - poetry build - - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # v1.9.0 - with: - packages-dir: lib/datahub-client/dist diff --git a/lib/datahub-client/CHANGELOG.md b/lib/datahub-client/CHANGELOG.md index facda83e..b2f7d216 100644 --- a/lib/datahub-client/CHANGELOG.md +++ b/lib/datahub-client/CHANGELOG.md @@ -7,7 +7,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## Unreleased +## 1.1.0 ### Changed diff --git a/lib/datahub-client/pyproject.toml b/lib/datahub-client/pyproject.toml index 7d296960..69222dc1 100644 --- a/lib/datahub-client/pyproject.toml +++ b/lib/datahub-client/pyproject.toml @@ -10,9 +10,9 @@ max-line-length = 120 [tool.poetry] name = "ministryofjustice-data-platform-catalogue" -version = "1.0.1" -description = "Wrapper around Datahub supporting custom properties for the Find MOJ Data service." -authors = ["MOJ Data Platform Team "] +version = "1.1.0" +description = "Wrapper around Datahub supporting custom properties for the Find MoJ Data service." +authors = ["MoJ Data Platform Team "] license = "MIT" readme = "README.md" packages = [{ include = "data_platform_catalogue" }]