From 59d09a99d3ea35a9ee1a3356c2097346ba66948a Mon Sep 17 00:00:00 2001
From: pranavm <pranavm@nvidia.com>
Date: Fri, 8 Nov 2024 09:42:42 -0800
Subject: [PATCH] Pins versions for release pipeline dependencies

Pins versions for packages required to build wheels to the correct versions.
Older versions do not build the package correctly (missing files and metadata).
---
 .github/workflows/tripy-release.yml | 5 +++--
 tripy/pyproject.toml                | 8 ++++----
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/tripy-release.yml b/.github/workflows/tripy-release.yml
index b1e2c857d..d74f7e750 100644
--- a/.github/workflows/tripy-release.yml
+++ b/.github/workflows/tripy-release.yml
@@ -32,8 +32,6 @@ jobs:
     steps:
     - uses: actions/checkout@v4
 
-    - uses: actions/configure-pages@v5
-
     - name: build-package
       run: |
         cd /tripy/
@@ -51,6 +49,9 @@ jobs:
       with:
         generate_release_notes: true
         files: /tripy/dist/tripy-*.whl
+        fail_on_unmatched_files: true
+
+    - uses: actions/configure-pages@v5
 
     - uses: actions/upload-pages-artifact@v3
       with:
diff --git a/tripy/pyproject.toml b/tripy/pyproject.toml
index 905de8f23..6e6a9c91d 100644
--- a/tripy/pyproject.toml
+++ b/tripy/pyproject.toml
@@ -22,8 +22,8 @@ Documentation = "https://nvidia.github.io/TensorRT-Incubator/"
 
 [build-system]
 requires = [
-  "setuptools>=45",
-  "wheel",
+  "setuptools==75.3.0",
+  "wheel==0.44.0",
   # For stubgen:
   "mypy==1.11.0",
 ]
@@ -34,8 +34,8 @@ dev = [
   "pre-commit==3.6.0",
 ]
 build = [
-  "setuptools>=45",
-  "wheel",
+  "setuptools==75.3.0",
+  "wheel==0.44.0",
   # For stubgen:
   "mypy==1.11.0",
 ]