Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
KumaTea committed Dec 15, 2020
1 parent 3544539 commit 68c89e8
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea
.idea
whl
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ If you want to pick the `whl` files manually, check the **[releases](../../relea
| 1.8.0 | | | | |
| 1.7.1 | | | | |
| 1.7.0 | | | | |
| 1.6.0 | | | | |
| 1.5.0 - | ![canceled][15] | ![canceled][15] | ![canceled][15] | ![canceled][15] |

## Official PyTorch CI Builds

Expand Down Expand Up @@ -92,6 +94,7 @@ If you want to pick the `whl` files manually, check the **[releases](../../relea
[12]: https://torch.maku.ml/api?project=torch&ver=master&py=38
[13]: https://github.com/pytorch/vision#installation
[14]: https://github.com/pytorch/audio#dependencies
[15]: https://img.shields.io/badge/build-canceled-lightgrey

---

Expand Down
2 changes: 1 addition & 1 deletion build/audio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ git submodule sync
git submodule update --init --recursive

apt install -y sox libsox-dev
# pip install ninja
pip install ninja

# cp setup.py setup.py.bak
# (sed "s/version\s=\s\'\(.\+\)/version = \'$VER\'/g" setup.py.bak) > setup.py
Expand Down
3 changes: 2 additions & 1 deletion build/torch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set -xe

VER="1.7.1"
export PYTORCH_BUILD_VERSION="$VER"
export PYTORCH_BUILD_NUMBER="1"

cd ~
mkdir pytorch || :
Expand All @@ -18,7 +19,7 @@ git submodule sync
git submodule update --init --recursive

apt install -y build-essential cmake
# pip install ninja
pip install ninja

# cp version.txt version.txt.bak
# (echo "$VER" | sed 's/v//g') > version.txt
Expand Down
2 changes: 1 addition & 1 deletion build/vision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ git submodule update --init --recursive

apt install -y libjpeg-dev libpng-dev
# Do not install ffmpeg
# pip install ninja
pip install ninja

# cp setup.py setup.py.bak
# (sed "s/version\s=\s\'\(.\+\)/version = \'$VER\'/g" setup.py.bak) > setup.py
Expand Down
23 changes: 23 additions & 0 deletions src/api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from flask import Flask, redirect, request as flask_req


app = Flask(__name__)
# starting()


@app.route('/whl')
@app.route('/wheel')
def whl():
url = ''
return redirect(url), 302


@app.route('/status')
def status():
url = ''
return redirect(url), 302


# If run on local machine:
if __name__ == '__main__':
app.run(host='localhost', port=10564, debug=False)
36 changes: 36 additions & 0 deletions src/functions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import json
import requests
from datetime import datetime


author = 'KumaTea'
project = 'pytorch-aarch64'
whl_dir = '../whl'
pt = 'pytorch'
pt_ci_index = './pt_ci.json' # pytorch official CI builds
gh_rl_index = './gh_rl.json' # GitHub released wheels
pt_ci_api = f'https://status.openlabtesting.org/builds/api/builds?&project={pt}/{pt}' # job_name
gh_rl_api = f'https://api.github.com/repos/{author}/{project}/releases'


def get_pt_ci():
result_raw = requests.get(pt_ci_api).json()
# (datetime.utcnow() - datetime.strptime('2020-12-15T00:32:07', '%Y-%m-%dT%H:%M:%S')).days
pass


def get_gh_rl():
result_raw = requests.get(gh_rl_api).json()
pass


def update_index():
pass


def get_status():
pass


def get_wheel():
pass
Empty file removed src/genIndex.py
Empty file.

0 comments on commit 68c89e8

Please sign in to comment.