From 3d274cbf0cf8c8c1171b12858de798dfe2268226 Mon Sep 17 00:00:00 2001 From: luccabb Date: Tue, 23 Dec 2025 15:34:20 -0800 Subject: [PATCH 1/8] release --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ gcm/version.txt | 2 +- pyproject.toml | 8 ++++++-- 3 files changed, 37 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d42ca1e..e41e380 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -209,3 +209,33 @@ jobs: files: | dist/* ${{ env.BUILDDIR }}/*.deb + + - name: Upload Python dist artifacts + if: matrix.os == 'ubuntu-24.04' + uses: actions/upload-artifact@v4 + with: + name: python-dist + path: dist/* + if-no-files-found: error + + pypi-publish: + needs: [build-and-release, check-release] + runs-on: ubuntu-latest + environment: pypi + permissions: + # OIDC requirement + id-token: write + contents: read + + steps: + - name: Download dist artifacts + uses: actions/download-artifact@v4 + with: + name: python-dist + path: dist + + - name: Publish to PyPI (OIDC) + uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: dist + skip-existing: true diff --git a/gcm/version.txt b/gcm/version.txt index 8acdd82..77d6f4c 100644 --- a/gcm/version.txt +++ b/gcm/version.txt @@ -1 +1 @@ -0.0.1 +0.0.0 diff --git a/pyproject.toml b/pyproject.toml index e9885b9..246510e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,8 +3,8 @@ requires = ["setuptools>=80", "wheel", "setuptools_scm[toml]>=6.0"] build-backend = "setuptools.build_meta" [project] -name = "gcm" -description = "A collection of monitoring utilities for the FAIR Cluster" +name = "gpucm" +description = "GPU Cluster Monitoring (GCM): Large-Scale AI Research Cluster Monitoring" requires-python = ">=3.10" dependencies = [ # TODO (T198128870): Unpin the requests version @@ -28,6 +28,10 @@ dependencies = [ "clusterscope>=0.0.10", ] dynamic = ["version"] +license = { text = "MIT" } + +[project.urls] +Homepage = "https://github.com/facebookresearch/gcm" [project.optional-dependencies] dev = [ From d7d727090df8acd11bed4d21016bf4a7b07f1ac2 Mon Sep 17 00:00:00 2001 From: luccabb Date: Tue, 23 Dec 2025 15:37:11 -0800 Subject: [PATCH 2/8] web pypi link --- website/docusaurus.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 5c2d0d4..137e2d9 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -125,7 +125,7 @@ const config = { position: 'right', }, { - href: 'https://pypi.org/project/coregcm', + href: 'https://pypi.org/project/gpucm', label: 'Pypi', position: 'right', }, @@ -161,7 +161,7 @@ const config = { }, { label: 'Pypi', - href: 'https://pypi.org/project/coregcm/', + href: 'https://pypi.org/project/gpucm/', }, { label: 'Discussions', From 19b08e9cd7c36d45acf7ad841d4f6f6c4204ba36 Mon Sep 17 00:00:00 2001 From: luccabb Date: Tue, 23 Dec 2025 15:47:00 -0800 Subject: [PATCH 3/8] delete changelog --- debian/changelog | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 debian/changelog diff --git a/debian/changelog b/debian/changelog deleted file mode 100644 index b3c66cd..0000000 --- a/debian/changelog +++ /dev/null @@ -1,15 +0,0 @@ -gcm (0.0.1) UNRELEASED; urgency=medium - - * 0.0.1 - - -- luccabb Fri, 22 Aug 2025 01:01:06 +0000 - -gcm (0.0.0) noble; urgency=medium - - [ Lucca Bertoncini ] - * Initial release. - - [ luccabb ] - * 0.0.0 - - -- luccabb Tue, 19 Aug 2025 03:48:38 +0000 From 7440e6018d1fe6c5dc8d3143c1dd188415911730 Mon Sep 17 00:00:00 2001 From: luccabb Date: Tue, 23 Dec 2025 15:48:49 -0800 Subject: [PATCH 4/8] empty changelog --- debian/changelog | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 debian/changelog diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..e69de29 From eb99b77c4e3d6b1cc3ec6065b1bc8a852d810033 Mon Sep 17 00:00:00 2001 From: luccabb Date: Tue, 23 Dec 2025 16:17:15 -0800 Subject: [PATCH 5/8] initial changelog version --- .github/workflows/release.yml | 2 +- debian/changelog | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e41e380..93f043e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -145,7 +145,7 @@ jobs: run: | set -euo pipefail - CURRENT="$(dpkg-parsechangelog -S Version || true)" + CURRENT="$(dpkg-parsechangelog -S Version 2>/dev/null || true)" if [[ "$CURRENT" == "$VERSION" ]]; then echo "Changelog already at $VERSION — nothing to commit." diff --git a/debian/changelog b/debian/changelog index e69de29..3006c09 100644 --- a/debian/changelog +++ b/debian/changelog @@ -0,0 +1,5 @@ +gcm (0.0.0) focal; urgency=medium + + * Initial release. + + -- luccabb Tue, 23 Dec 2025 16:16:51 -0800 From a13c3948dc3e5e9a716af89593c5ae0b74bc3003 Mon Sep 17 00:00:00 2001 From: luccabb Date: Tue, 23 Dec 2025 16:49:48 -0800 Subject: [PATCH 6/8] test pypi release --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 93f043e..18bc4dc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -219,8 +219,9 @@ jobs: if-no-files-found: error pypi-publish: - needs: [build-and-release, check-release] + needs: [check-release] runs-on: ubuntu-latest + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'facebookresearch/gcm' && env.RELEASE_EXISTS == 'false' }} environment: pypi permissions: # OIDC requirement From ec75684f8300ab52c3cbf0b0daa5087bdba8b879 Mon Sep 17 00:00:00 2001 From: luccabb Date: Tue, 23 Dec 2025 17:07:05 -0800 Subject: [PATCH 7/8] remove env --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 18bc4dc..e89ef74 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -221,7 +221,7 @@ jobs: pypi-publish: needs: [check-release] runs-on: ubuntu-latest - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'facebookresearch/gcm' && env.RELEASE_EXISTS == 'false' }} + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'facebookresearch/gcm'}} environment: pypi permissions: # OIDC requirement From 66b69b4c312e0cfef7f138070b5fe3f08c827189 Mon Sep 17 00:00:00 2001 From: luccabb Date: Tue, 23 Dec 2025 17:11:42 -0800 Subject: [PATCH 8/8] add build and release back to needs --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e89ef74..53a2224 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -219,7 +219,7 @@ jobs: if-no-files-found: error pypi-publish: - needs: [check-release] + needs: [build-and-release, check-release] runs-on: ubuntu-latest if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'facebookresearch/gcm'}} environment: pypi