Repository: pytorch/TensorRT (language: python)

Issue:
ci: Add release flag for nightly build tag
# Description

- As is added in #2806 for C++ builds, enable `--release` flag for builds in `main` to enable correct nightly versioning on PyTorch index

## Type of change

- Address CI Issue

# Checklist:

- [ x ] My code follows the style guidelines of this project (You can use the linters)
- [ x ] I have performed a self-review of my own code
- [ x ] I have commented my code, particularly in hard-to-understand areas and hacks
- [ x ] I have made corresponding changes to the documentation
- [ x ] I have added tests to verify my fix or my feature
- [ x ] New and existing unit tests pass locally with my changes
- [ x ] I have added the relevant labels to my PR in so that relevant reviewers are notified



Discussion / hints:
`wheel-build-params` is a bit special. It only has an effect when `env-script` is also specified. We don't necessarily have to use `--release` flag here, since `setup.py` also checks `RELEASE` env var. So I made the [relevant changes](https://github.com/pytorch/TensorRT/pull/2806/commits/6b7a9e00fe75b449677b2d120bd5e9eb901351d2).
@HolyWu - thanks for this detail. I wanted to add the `release` specification to the nightly builds in advance of getting your PR #2806 merged, and to get this change to another branch which only has the Python runtime for Windows. I can cherry-pick your env var commit 6b7a9e00fe75b449 into this PR instead

**Update**: Cherry-picked and reformatted the change to only include the environment variable insertion to get `main` and `release/2.3` updated in advance of #2806 getting merged

Fix patch:
diff --git a/packaging/pre_build_script_windows.sh b/packaging/pre_build_script_windows.sh
index 51d3e1499e..472c3a32b4 100644
--- a/packaging/pre_build_script_windows.sh
+++ b/packaging/pre_build_script_windows.sh
@@ -6,3 +6,5 @@ python -m pip install tensorrt==10.0.1 --extra-index-url https://pypi.nvidia.com
 choco install bazelisk -y
 
 cat toolchains/ci_workspaces/WORKSPACE.win.release.tmpl | envsubst > WORKSPACE
+
+echo "RELEASE=1" >> ${GITHUB_ENV}


Test patch:
diff --git a/tests/py/requirements.txt b/tests/py/requirements.txt
index bdb8ed48bc..6c33c56010 100644
--- a/tests/py/requirements.txt
+++ b/tests/py/requirements.txt
@@ -12,4 +12,5 @@ tensorrt==10.0.1
 timm>=1.0.3
 transformers==4.39.3
 parameterized>=0.2.0
-expecttest==0.1.6
\ No newline at end of file
+expecttest==0.1.6
+numpy==1.24.1