Skip to content

Commit a15b9ea

Browse files
authored
Merge pull request #10 from disintar/dev
Tonpy reborn
2 parents 31367bc + 592a902 commit a15b9ea

File tree

95 files changed

+40790
-1064
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+40790
-1064
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
environment:
2121
name: github-pages
2222
url: ${{ steps.deployment.outputs.page_url }}
23-
runs-on: Linux
23+
runs-on: arc-runner-set
2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2727
- name: Setup Pages
2828
uses: actions/configure-pages@v3
2929
- name: Get Python

.github/workflows/wheels-dev.yml

Lines changed: 68 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: DEV Wheels & Tests & PyPi
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ dev ]
66
pull_request:
7-
branches: [ main ]
7+
branches: [ dev ]
88
workflow_dispatch:
99
workflow_call:
1010

@@ -20,17 +20,52 @@ jobs:
2020
strategy:
2121
matrix:
2222
include:
23+
- arch: aarch64
24+
os: macos-15
25+
python: "3.13"
26+
link: https://github.com/disintar/ton/releases/download/ton-cpython-313-aarch64-darwin/
27+
file: python_ton.cpython-313-darwin.so
28+
fix_tag: arm64
29+
30+
- arch: aarch64
31+
os: macos-15
32+
python: "3.10"
33+
link: https://github.com/disintar/ton/releases/download/ton-cpython-310-aarch64-darwin/
34+
file: python_ton.cpython-310-darwin.so
35+
fix_tag: arm64
36+
37+
- arch: aarch64
38+
os: macos-15
39+
python: "3.12"
40+
link: https://github.com/disintar/ton/releases/download/ton-cpython-312-aarch64-darwin/
41+
file: python_ton.cpython-312-darwin.so
42+
fix_tag: arm64
43+
44+
- arch: x86_64
45+
os: arc-runner-set
46+
python: "3.13"
47+
link: https://github.com/disintar/ton/releases/download/ton-cpython-313-x86_64-linux/
48+
file: python_ton.cpython-313-x86_64-linux-gnu.so
49+
fix_tag: manylinux2014_x86_64
50+
51+
- arch: x86_64
52+
os: arc-runner-set
53+
python: "3.12"
54+
link: https://github.com/disintar/ton/releases/download/ton-cpython-312-x86_64-linux/
55+
file: python_ton.cpython-312-x86_64-linux-gnu.so
56+
fix_tag: manylinux2014_x86_64
57+
2358
- arch: x86_64
24-
os: Linux
25-
python: "3.9"
26-
link: https://github.com/disintar/ton/releases/download/ton-cpython-39-x86_64-linux/
27-
file: python_ton.cpython-39-x86_64-linux-gnu.so
59+
os: arc-runner-set
60+
python: "3.10"
61+
link: https://github.com/disintar/ton/releases/download/ton-cpython-310-x86_64-linux/
62+
file: python_ton.cpython-310-x86_64-linux-gnu.so
2863
fix_tag: manylinux2014_x86_64
2964

3065
runs-on: ${{ matrix.os }}
3166

3267
steps:
33-
- uses: actions/checkout@v3
68+
- uses: actions/checkout@v4
3469
- uses: actions/setup-python@v3
3570
with:
3671
python-version: ${{ matrix.python }}
@@ -42,6 +77,12 @@ jobs:
4277
python -m pip install -r built_requirements.txt
4378
python -m pip install -r requirements.txt
4479
80+
- name: Install deps linux
81+
run: |
82+
sudo apt update
83+
sudo apt install -y curl
84+
if: matrix.os == 'kuber'
85+
4586
- name: Download prebuilt
4687
run: |
4788
curl -Lo ./src/tonpy/libs/${{ matrix.file }} ${{ matrix.link }}${{ matrix.file }}
@@ -52,30 +93,43 @@ jobs:
5293
5394
- name: Build wheel
5495
run: |
55-
python -m build --wheel --outdir dist/ .
96+
python -m build --verbose --wheel --outdir dist/ .
5697
python fix_whl_name.py
5798
env:
5899
TAG_FIX: ${{ matrix.fix_tag }}
59100
DEV_PYPI: true
60101
- name: Store the binary wheel
61-
uses: actions/upload-artifact@v2
102+
uses: actions/upload-artifact@v4
62103
with:
63-
name: python-package-distributions
104+
name: python-package-distributions-${{ github.run_id }}-${{ matrix.arch }}-${{ matrix.python }}
64105
path: dist
65106

66107
deploy:
67108
name: Publish DEV 🐍📦 to PyPI
68-
runs-on: Linux
109+
runs-on: arc-runner-set
69110
needs:
70111
- build
71112

72113
steps:
73-
- uses: actions/checkout@v3
114+
- uses: actions/checkout@v4
115+
- uses: actions/setup-python@v3
116+
with:
117+
python-version: "3.10"
118+
env:
119+
USER: tvorogme
120+
121+
- name: Merge coverage
122+
uses: actions/upload-artifact/merge@v4
123+
if: always()
124+
with:
125+
name: python-package-distributions-${{ github.run_id }}
126+
pattern: python-package-distributions-${{ github.run_id }}-*
127+
delete-merged: true
74128

75129
- name: Download all the dists
76-
uses: actions/download-artifact@v2
130+
uses: actions/download-artifact@v4
77131
with:
78-
name: python-package-distributions
132+
name: python-package-distributions-${{ github.run_id }}
79133
path: dist/
80134

81135
- name: Install deps

.github/workflows/wheels.yml

Lines changed: 97 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -20,80 +20,146 @@ jobs:
2020
strategy:
2121
matrix:
2222
include:
23+
# macOS x86_64
24+
- arch: x86_64
25+
os: macos-latest
26+
python: "3.8"
27+
link: https://github.com/disintar/ton/releases/download/ton-cpython-38-x86_64-darwin/
28+
file: python_ton.cpython-38-darwin.so
29+
fix_tag: x86_64
2330
- arch: x86_64
2431
os: macos-latest
2532
python: "3.10"
2633
link: https://github.com/disintar/ton/releases/download/ton-cpython-310-x86_64-darwin/
2734
file: python_ton.cpython-310-darwin.so
2835
fix_tag: x86_64
29-
3036
- arch: x86_64
3137
os: macos-latest
3238
python: "3.11"
3339
link: https://github.com/disintar/ton/releases/download/ton-cpython-311-x86_64-darwin/
3440
file: python_ton.cpython-311-darwin.so
3541
fix_tag: x86_64
42+
- arch: x86_64
43+
os: macos-latest
44+
python: "3.12"
45+
link: https://github.com/disintar/ton/releases/download/ton-cpython-312-x86_64-darwin/
46+
file: python_ton.cpython-312-darwin.so
47+
fix_tag: x86_64
48+
- arch: x86_64
49+
os: macos-latest
50+
python: "3.13"
51+
link: https://github.com/disintar/ton/releases/download/ton-cpython-313-x86_64-darwin/
52+
file: python_ton.cpython-313-darwin.so
53+
fix_tag: x86_64
3654

55+
# Linux x86_64 (self-hosted ARC) new Pythons
3756
- arch: x86_64
38-
os: Linux
57+
os: arc-runner-set
58+
python: "3.12"
59+
link: https://github.com/disintar/ton/releases/download/ton-cpython-312-x86_64-linux/
60+
file: python_ton.cpython-312-x86_64-linux-gnu.so
61+
fix_tag: manylinux2014_x86_64
62+
- arch: x86_64
63+
os: arc-runner-set
64+
python: "3.13"
65+
link: https://github.com/disintar/ton/releases/download/ton-cpython-313-x86_64-linux/
66+
file: python_ton.cpython-313-x86_64-linux-gnu.so
67+
fix_tag: manylinux2014_x86_64
68+
69+
# Legacy Linux x86_64 (kuber) kept
70+
- arch: x86_64
71+
os: kuber
72+
python: "3.8"
73+
link: https://github.com/disintar/ton/releases/download/ton-cpython-38-x86_64-linux/
74+
file: python_ton.cpython-38-x86_64-linux-gnu.so
75+
fix_tag: manylinux2014_x86_64
76+
- arch: x86_64
77+
os: kuber
3978
python: "3.9"
4079
link: https://github.com/disintar/ton/releases/download/ton-cpython-39-x86_64-linux/
4180
file: python_ton.cpython-39-x86_64-linux-gnu.so
4281
fix_tag: manylinux2014_x86_64
43-
4482
- arch: x86_64
45-
os: Linux
83+
os: kuber
4684
python: "3.10"
4785
link: https://github.com/disintar/ton/releases/download/ton-cpython-310-x86_64-linux/
4886
file: python_ton.cpython-310-x86_64-linux-gnu.so
4987
fix_tag: manylinux2014_x86_64
50-
5188
- arch: x86_64
52-
os: Linux
89+
os: kuber
5390
python: "3.11"
5491
link: https://github.com/disintar/ton/releases/download/ton-cpython-311-x86_64-linux/
5592
file: python_ton.cpython-311-x86_64-linux-gnu.so
5693
fix_tag: manylinux2014_x86_64
5794

95+
# macOS arm64
96+
- arch: aarch64
97+
os: macos-15
98+
python: "3.8"
99+
link: https://github.com/disintar/ton/releases/download/ton-cpython-38-aarch64-darwin/
100+
file: python_ton.cpython-38-darwin.so
101+
fix_tag: arm64
58102
- arch: aarch64
59-
os: macOS
103+
os: macos-15
60104
python: "3.10"
61105
link: https://github.com/disintar/ton/releases/download/ton-cpython-310-aarch64-darwin/
62106
file: python_ton.cpython-310-darwin.so
63107
fix_tag: arm64
64-
65108
- arch: aarch64
66-
os: macOS
109+
os: macos-15
67110
python: "3.11"
68111
link: https://github.com/disintar/ton/releases/download/ton-cpython-311-aarch64-darwin/
69112
file: python_ton.cpython-311-darwin.so
70113
fix_tag: arm64
114+
- arch: aarch64
115+
os: macos-15
116+
python: "3.12"
117+
link: https://github.com/disintar/ton/releases/download/ton-cpython-312-aarch64-darwin/
118+
file: python_ton.cpython-312-darwin.so
119+
fix_tag: arm64
120+
- arch: aarch64
121+
os: macos-15
122+
python: "3.13"
123+
link: https://github.com/disintar/ton/releases/download/ton-cpython-313-aarch64-darwin/
124+
file: python_ton.cpython-313-darwin.so
125+
fix_tag: arm64
71126

127+
# Windows x64
72128
- arch: x86_64
73129
os: windows-2019
74130
python: "3.9"
75131
link: https://github.com/disintar/ton/releases/download/ton-cpython-39-x86_64-windows/
76132
file: python_ton.cp39-win_amd64.pyd
77133
fix_tag:
78-
79134
- arch: x86_64
80135
os: windows-2019
81136
python: "3.10"
82137
link: https://github.com/disintar/ton/releases/download/ton-cpython-310-x86_64-windows/
83138
file: python_ton.cp310-win_amd64.pyd
84139
fix_tag:
85-
86140
- arch: x86_64
87141
os: windows-2019
88142
python: "3.11"
89143
link: https://github.com/disintar/ton/releases/download/ton-cpython-311-x86_64-windows/
90144
file: python_ton.cp311-win_amd64.pyd
91145
fix_tag:
146+
- arch: x86_64
147+
os: windows-2019
148+
python: "3.12"
149+
link: https://github.com/disintar/ton/releases/download/ton-cpython-312-x86_64-windows/
150+
file: python_ton.cp312-win_amd64.pyd
151+
fix_tag:
152+
- arch: x86_64
153+
os: windows-2019
154+
python: "3.13"
155+
link: https://github.com/disintar/ton/releases/download/ton-cpython-313-x86_64-windows/
156+
file: python_ton.cp313-win_amd64.pyd
157+
fix_tag:
92158

93159
runs-on: ${{ matrix.os }}
94160

95161
steps:
96-
- uses: actions/checkout@v3
162+
- uses: actions/checkout@v4
97163
- uses: actions/setup-python@v3
98164
with:
99165
python-version: ${{ matrix.python }}
@@ -105,6 +171,12 @@ jobs:
105171
python -m pip install -r built_requirements.txt
106172
python -m pip install -r requirements.txt
107173
174+
- name: Install deps linux
175+
run: |
176+
sudo apt update
177+
sudo apt install -y curl
178+
if: matrix.os == 'kuber'
179+
108180
- name: Download prebuilt
109181
run: |
110182
curl -Lo ./src/tonpy/libs/${{ matrix.file }} ${{ matrix.link }}${{ matrix.file }}
@@ -127,7 +199,7 @@ jobs:
127199
env:
128200
TAG_FIX: ${{ matrix.fix_tag }}
129201
- name: Store the binary wheel
130-
uses: actions/upload-artifact@v2
202+
uses: actions/upload-artifact@v4
131203
with:
132204
name: python-package-distributions
133205
path: dist
@@ -144,7 +216,7 @@ jobs:
144216
fix_tag: x86_64
145217

146218
- arch: aarch64
147-
os: macOS
219+
os: macos-15
148220
python: "3.9"
149221
link: https://github.com/disintar/ton/releases/download/ton-cpython-39-aarch64-darwin/
150222
file: python_ton.cpython-39-darwin.so
@@ -153,7 +225,7 @@ jobs:
153225
runs-on: ${{ matrix.os }}
154226

155227
steps:
156-
- uses: actions/checkout@v3
228+
- uses: actions/checkout@v4
157229
- name: Install python3.9
158230
run: |
159231
/opt/homebrew/bin/brew install python@3.9
@@ -184,7 +256,7 @@ jobs:
184256
env:
185257
TAG_FIX: ${{ matrix.fix_tag }}
186258
- name: Store the binary wheel
187-
uses: actions/upload-artifact@v2
259+
uses: actions/upload-artifact@v4
188260
with:
189261
name: python-package-distributions
190262
path: dist
@@ -222,7 +294,7 @@ jobs:
222294
# - build
223295
#
224296
# steps:
225-
# - uses: actions/checkout@v3
297+
# - uses: actions/checkout@v4
226298
#
227299
# - name: Save download prebuilt
228300
# run: |
@@ -238,22 +310,26 @@ jobs:
238310
# ls -lhta ./dist
239311
#
240312
# - name: Store the binary wheel
241-
# uses: actions/upload-artifact@v2
313+
# uses: actions/upload-artifact@v4
242314
# with:
243315
# name: python-package-distributions
244316
# path: dist
245317

246318
deploy:
247319
name: Publish 🐍📦 to PyPI
248-
runs-on: Linux
320+
runs-on: kuber
249321
needs:
250322
# - buildVirtualLinux
251323
- build
252324
- buildMacOs39
253325

254326
steps:
255-
- uses: actions/checkout@v3
256-
327+
- uses: actions/checkout@v4
328+
- uses: actions/setup-python@v3
329+
with:
330+
python-version: "3.11"
331+
env:
332+
USER: tvorogme
257333
- name: Download all the dists
258334
uses: actions/download-artifact@v2
259335
with:

0 commit comments

Comments
 (0)