File size: 501 Bytes
36c95ba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash -ex

## NOTE: define KORNIA_BUILD_VERSION each release
## KORNIA_BUILD_VERSION=0.3.0
## PYTORCH_VERSION=1.5.0

export OUT_DIR="/tmp/remote"

# move to project root and create the wheel
cd /tmp
rm -rf kornia/
git clone https://github.com/kornia/kornia.git

cd /tmp/kornia
git checkout v$KORNIA_BUILD_VERSION
python3 setup.py clean
python3 setup.py bdist_wheel

mkdir -p $OUT_DIR
cp dist/*.whl $OUT_DIR/

## upload
## NOTE: to upload install twine
## Example: python3 -m twine upload dist/*