Skip to content

Commit

Permalink
[Versioning] Bump v0.3.0 and fix m1-wheels (pytorch#1780)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens authored Jan 8, 2024
1 parent 06d5ffc commit fd27cb7
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .github/scripts/m1_script.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

export BUILD_VERSION=0.2.1
export BUILD_VERSION=0.3.0

${CONDA_RUN} pip install git+https://github.com/pytorch/tensordict.git -U
3 changes: 0 additions & 3 deletions .github/scripts/pre_build_script_m1.sh

This file was deleted.

1 change: 0 additions & 1 deletion .github/workflows/build-wheels-m1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
test-infra-repository: pytorch/test-infra
test-infra-ref: main
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
pre-script: .github/scripts/pre_build_script_m1.sh
post-script: ""
package-name: torchrl
runner-type: macos-m1-12
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
types: [opened, synchronize, reopened]
push:
branches:
- release/0.2.1
- release/0.3.0

concurrency:
# Documentation suggests ${{ github.head_ref }}, but that's only available on pull_request/pull_request_target triggers, so using ${{ github.ref }}.
Expand Down Expand Up @@ -32,7 +32,7 @@ jobs:
run: |
export PATH="/opt/python/${{ matrix.python_version[1] }}/bin:$PATH"
python3 -mpip install wheel
BUILD_VERSION=0.2.1 python3 setup.py bdist_wheel
BUILD_VERSION=0.3.0 python3 setup.py bdist_wheel
# NB: wheels have the linux_x86_64 tag so we rename to manylinux1
# find . -name 'dist/*whl' -exec bash -c ' mv $0 ${0/linux/manylinux1}' {} \;
# pytorch/pytorch binaries are also manylinux_2_17 compliant but they
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
run: |
export CC=clang CXX=clang++
python3 -mpip install wheel
BUILD_VERSION=0.2.1 python3 setup.py bdist_wheel
BUILD_VERSION=0.3.0 python3 setup.py bdist_wheel
- name: Upload wheel for the test-wheel job
uses: actions/upload-artifact@v2
with:
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
shell: bash
run: |
python3 -mpip install wheel
BUILD_VERSION=0.2.1 python3 setup.py bdist_wheel
BUILD_VERSION=0.3.0 python3 setup.py bdist_wheel
- name: Upload wheel for the test-wheel job
uses: actions/upload-artifact@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def _main(argv):
if is_nightly:
tensordict_dep = "tensordict-nightly"
else:
tensordict_dep = "tensordict>=0.2.0"
tensordict_dep = "tensordict>=0.3.0"

if is_nightly:
version = get_nightly_version()
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.1
0.3.0

0 comments on commit fd27cb7

Please sign in to comment.