Skip to content

Commit 02471a6

Browse files
committed
Update build script
1 parent 30b6bbb commit 02471a6

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
python-version: "3.8"
4646
- name: Install Poetry
4747
run: |
48-
python get-poetry.py --preview -y
48+
python get-poetry.py -y
4949
source $HOME/.poetry/env
5050
- name: Install dependencies
5151
run: |
@@ -58,17 +58,19 @@ jobs:
5858
curl -L https://github.com/sdispater/python-binaries/releases/download/3.6.8/python-3.6.8.macos.tar.xz -o python-3.6.8.tar.xz
5959
curl -L https://github.com/sdispater/python-binaries/releases/download/3.7.6/python-3.7.6.macos.tar.xz -o python-3.7.6.tar.xz
6060
curl -L https://github.com/sdispater/python-binaries/releases/download/3.8.3/python-3.8.3.macos.tar.xz -o python-3.8.3.tar.xz
61-
curl -L https://github.com/sdispater/python-binaries/releases/download/3.9.0b4/python-3.9.0b4.macos.tar.xz -o python-3.9.0b4.tar.xz
61+
curl -L https://github.com/sdispater/python-binaries/releases/download/3.9.5/python-3.9.5.macos.tar.xz -o python-3.9.5.tar.xz
62+
curl -L https://github.com/sdispater/python-binaries/releases/download/3.10.0b3/python-3.10.0b3.macos.tar.xz -o python-3.10.0b3.tar.xz
6263
tar -zxf python-2.7.18.tar.xz
6364
tar -zxf python-3.5.9.tar.xz
6465
tar -zxf python-3.6.8.tar.xz
6566
tar -zxf python-3.7.6.tar.xz
6667
tar -zxf python-3.8.3.tar.xz
67-
tar -zxf python-3.9.0b4.tar.xz
68+
tar -zxf python-3.9.5.tar.xz
69+
tar -zxf python-3.10.0b3.tar.xz
6870
- name: Build specific release
6971
run: |
7072
source $HOME/.poetry/env
71-
poetry run python sonnet make release --ansi -P "2.7:python-2.7.18/bin/python" -P "3.5:python-3.5.9/bin/python" -P "3.6:python-3.6.8/bin/python" -P "3.7:python-3.7.6/bin/python" -P "3.8:python-3.8.3/bin/python" -P "3.9:python-3.9.0b4/bin/python"
73+
poetry run python sonnet make release --ansi -P "2.7:python-2.7.18/bin/python" -P "3.5:python-3.5.9/bin/python" -P "3.6:python-3.6.8/bin/python" -P "3.7:python-3.7.6/bin/python" -P "3.8:python-3.8.3/bin/python" -P "3.9:python-3.9.5/bin/python" -P "3.10:python-3.10.0b3/bin/python"
7274
- name: Upload release file
7375
uses: actions/upload-artifact@v1
7476
with:
@@ -96,7 +98,7 @@ jobs:
9698
python-version: "3.8"
9799
- name: Install Poetry
98100
run: |
99-
python get-poetry.py --preview -y
101+
python get-poetry.py -y
100102
$env:Path += ";$env:Userprofile\.poetry\bin"
101103
- name: Install dependencies
102104
run: |
@@ -109,24 +111,27 @@ jobs:
109111
Invoke-WebRequest https://github.com/sdispater/python-binaries/releases/download/3.6.8/python-3.6.8.windows.tar.xz -O python-3.6.8.tar.xz
110112
Invoke-WebRequest https://github.com/sdispater/python-binaries/releases/download/3.7.6/python-3.7.6.windows.tar.xz -O python-3.7.6.tar.xz
111113
Invoke-WebRequest https://github.com/sdispater/python-binaries/releases/download/3.8.3/python-3.8.3.windows.tar.xz -O python-3.8.3.tar.xz
112-
Invoke-WebRequest https://github.com/sdispater/python-binaries/releases/download/3.9.0b4/python-3.9.0b4.windows.tar.xz -O python-3.9.0b4.tar.xz
114+
Invoke-WebRequest https://github.com/sdispater/python-binaries/releases/download/3.9.5/python-3.9.5.windows.tar.xz -O python-3.9.5.tar.xz
115+
Invoke-WebRequest https://github.com/sdispater/python-binaries/releases/download/3.10.0b3/python-3.10.0b3.windows.tar.xz -O python-3.10.0b3.tar.xz
113116
7z x python-2.7.17.tar.xz
114117
7z x python-3.5.4.tar.xz
115118
7z x python-3.6.8.tar.xz
116119
7z x python-3.7.6.tar.xz
117120
7z x python-3.8.3.tar.xz
118-
7z x python-3.9.0b4.tar.xz
121+
7z x python-3.9.5.tar.xz
122+
7z x python-3.10.0b3.tar.xz
119123
7z x python-2.7.17.tar
120124
7z x python-3.4.4.tar
121125
7z x python-3.5.4.tar
122126
7z x python-3.6.8.tar
123127
7z x python-3.7.6.tar
124128
7z x python-3.8.3.tar
125-
7z x python-3.9.0b4.tar
129+
7z x python-3.9.5.tar
130+
7z x python-3.10.0b3.tar
126131
- name: Build specific release
127132
run: |
128133
$env:Path += ";$env:Userprofile\.poetry\bin"
129-
poetry run python sonnet make release --ansi -P "2.7:python-2.7.17\python.exe" -P "3.5:python-3.5.4\python.exe" -P "3.6:python-3.6.8\python.exe" -P "3.7:python-3.7.6\python.exe" -P "3.8:python-3.8.3\python.exe" -P "3.9:python-3.9.0b4\python.exe"
134+
poetry run python sonnet make release --ansi -P "2.7:python-2.7.17\python.exe" -P "3.5:python-3.5.4\python.exe" -P "3.6:python-3.6.8\python.exe" -P "3.7:python-3.7.6\python.exe" -P "3.8:python-3.8.3\python.exe" -P "3.9:python-3.9.5\python.exe" -P "3.10:python-3.10.0b3\python.exe"
130135
- name: Upload release file
131136
uses: actions/upload-artifact@v1
132137
with:
@@ -249,7 +254,7 @@ jobs:
249254
python-version: "3.8"
250255
- name: Install Poetry
251256
run: |
252-
python get-poetry.py --preview -y
257+
python get-poetry.py -y
253258
- name: Install dependencies
254259
run: |
255260
source $HOME/.poetry/env

make-nix-release.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ RUNTIMES[4]="${PYTHON38:+-P "3.8:$PYTHON38"}"
1111
test -n "$PYTHON" || PYTHON="python3"
1212

1313
if [ "$OSTYPE" == "linux-gnu" ]; then
14-
$PYTHON get-poetry.py -y --preview
14+
$PYTHON get-poetry.py -y
1515
POETRY="$PYTHON $HOME/.poetry/bin/poetry"
1616
RUNTIMES[5]="${PYTHON39:+-P "3.9:$PYTHON39"}"
17+
RUNTIMES[6]="${PYTHON310:+-P "3.10:$PYTHON310"}"
1718
else
1819
$PYTHON -m pip install poetry -U --pre
1920
POETRY="$PYTHON -m poetry"

sonnet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class MakeReleaseCommand(Command):
3131
"3.7": "python3.7",
3232
"3.8": "python3.8",
3333
"3.9": "python3.9",
34+
"3.10": "python3.10",
3435
}
3536

3637
def handle(self):

0 commit comments

Comments
 (0)