File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,13 @@ jobs:
28
28
id : update-requirements
29
29
run : |
30
30
latest_version=${{ steps.fetch_release.outputs.release }}
31
- latest_version_short=$(echo $latest_version | sed 's/-rc/rc/')
32
- sed -i '/^https:\/\/github\.com\/tenstorrent\/tt-metal\/releases\//d' requirements.txt
33
- echo "ttnn@https://github.com/tenstorrent/tt-metal/releases/download/v$latest_version/ttnn-$latest_version_short+any-cp38-cp38-linux_x86_64.whl" >> requirements.txt
34
-
31
+ # Remove any existing ttnn lines (adjust the regex if needed)
32
+ sed -i '/^ttnn @ https:\/\/github\.com\/tenstorrent\/tt-metal\/releases\//d' requirements.txt
33
+
34
+ # Append the two lines for the different python versions.
35
+ echo "ttnn @ https://github.com/tenstorrent/tt-metal/releases/download/v${latest_version}/ttnn-$latest_version_short+any-cp38-cp38-linux_x86_64.whl ; python_version==\"3.8\"" >> requirements.txt
36
+ echo "ttnn @ https://github.com/tenstorrent/tt-metal/releases/download/v${latest_version}/ttnn-$latest_version_short+any-cp310-cp310-linux_x86_64.whl ; python_version==\"3.10\"" >> requirements.txt
37
+
35
38
- name : Create Pull Request
36
39
uses : peter-evans/create-pull-request@v7
37
40
id : create-pr
You can’t perform that action at this time.
0 commit comments