Skip to content

Commit feed934

Browse files
authored
[release] Prepare dummy binary for 2.0 release (#1115)
1 parent 408bcf1 commit feed934

File tree

8 files changed

+17
-16
lines changed

8 files changed

+17
-16
lines changed

.circleci/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,13 @@ workflows:
256256
name: unittest_linux_<< matrix.cu_version >>_py<< matrix.python_version >>
257257
matrix:
258258
parameters:
259-
python_version: ["3.7", "3.8", "3.9", "3.10"]
259+
python_version: ["3.8", "3.9", "3.10"]
260260
cu_version: ["cpu"]
261261
- unittest_linux_gpu:
262262
name: unittest_linux_<< matrix.cu_version >>_py<< matrix.python_version >>
263263
matrix:
264264
parameters:
265-
python_version: ["3.7", "3.8", "3.9", "3.10"]
265+
python_version: ["3.8", "3.9", "3.10"]
266266
cu_version: ["cu116"]
267267

268268
- unittest_macos_cpu:

.circleci/unittest/linux/scripts/install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ gcc --version
5353
pip install expecttest
5454

5555
if [ "${CU_VERSION:-}" == cpu ] ; then
56-
conda install -y pytorch torchvision cpuonly -c pytorch-nightly
56+
conda install -y pytorch=2.0 torchvision cpuonly -c pytorch-test
5757
PYTORCH_VERSION="$(python -c "import torch; print(torch.__version__)")" python setup.py develop bdist_wheel -d $WHEELS_FOLDER
5858
pip install functorch -f $WHEELS_FOLDER
5959
else
60-
conda install pytorch torchvision pytorch-cuda=11.6 -c pytorch-nightly -c nvidia
60+
conda install pytorch=2.0 torchvision pytorch-cuda=11.6 -c pytorch-test -c nvidia
6161
PYTORCH_VERSION="$(python -c "import torch; print(torch.__version__)")" python setup.py develop bdist_wheel -d $WHEELS_FOLDER
6262
pip install functorch -f $WHEELS_FOLDER
6363
fi

.circleci/unittest/linux/scripts/run_test.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ echo git_version
1919
git clone https://github.com/pytorch/pytorch.git
2020
pushd pytorch
2121
git checkout $git_version
22+
pushd test
2223
pushd functorch
2324

24-
find test \( -name test\*.py ! -name test_functorch_lagging_op_db.py \) | xargs -I {} -n 1 python {} -v || EXIT_STATUS=$?
25+
find . \( -name test\*.py \) | xargs -I {} -n 1 python {} -v || EXIT_STATUS=$?
2526
exit $EXIT_STATUS

.circleci/unittest/windows/scripts/install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ else
2828
fi
2929

3030
printf "Installing PyTorch with %s\n" "${cudatoolkit}"
31-
conda install -y -c "pytorch-${UPLOAD_CHANNEL}" -c nvidia "pytorch-${UPLOAD_CHANNEL}"::pytorch[build="*${version}*"] "${cudatoolkit}"
31+
conda install -y pytorch torchvision "${cudatoolkit}" -c pytorch-test
3232

3333
torch_cuda=$(python -c "import torch; print(torch.cuda.is_available())")
3434
echo torch.cuda.is_available is $torch_cuda

.circleci/unittest/windows/scripts/run_test.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ echo git_version
1919
git clone https://github.com/pytorch/pytorch.git
2020
pushd pytorch
2121
git checkout $git_version
22-
pushd functorch
22+
pushd test
2323

24-
pytest test
24+
pytest functorch

.github/workflows/wheels.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
types: [opened, synchronize, reopened]
55
push:
66
branches:
7-
- main
7+
- release/2.0
88

99
jobs:
1010

@@ -20,7 +20,7 @@ jobs:
2020
uses: actions/checkout@v2
2121
- name: Install PyTorch Nightly
2222
run: |
23-
python3 -mpip install --pre torch>=1.13.0.dev -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
23+
python3 -mpip install --pre torch==2.0 -f https://download.pytorch.org/whl/test/cpu/torch_test.html
2424
- name: Build wheel
2525
run: |
2626
python3 -mpip install wheel

setup.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@
1919
sha = 'Unknown'
2020
package_name = 'functorch'
2121

22-
if os.getenv('BUILD_VERSION'):
23-
version = os.getenv('BUILD_VERSION')
24-
elif sha != 'Unknown':
25-
version += '+' + sha[:7]
22+
# if os.getenv('BUILD_VERSION'):
23+
# version = os.getenv('BUILD_VERSION')
24+
# elif sha != 'Unknown':
25+
# version += '+' + sha[:7]
2626

2727

2828
requirements = [
2929
# This represents a nightly version of PyTorch.
3030
# It can be installed as a binary or from source.
31-
"torch>=1.14.0.dev",
31+
"torch>=2.0,<2.1",
3232
]
3333

3434
extras = {}

version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.14.0a0
1+
2.0.0

0 commit comments

Comments
 (0)