Skip to content

Commit 4a0ac18

Browse files
committed
release: v0.1.0 — package for PyPI and GitHub Releases
- Add pyproject.toml metadata (license, authors, classifiers, URLs) - Add execution integrity verification (self-hash against on-chain Registry) - Add obfuscated integrity module with encoded string constants - Add build script (obfuscation + wheel + hash computation) - Add install scripts for Linux/macOS and Windows - Add GitHub Actions release workflow (tag-triggered) - Rename [training] extra to [node] for clarity - Include connector.json files in wheel via package-data - Contract updates, runtime refactors, RPB integration
1 parent 3beb87a commit 4a0ac18

File tree

147 files changed

+10457
-8984
lines changed

Some content is hidden

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

147 files changed

+10457
-8984
lines changed

.github/workflows/release.yml

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags: ['v*']
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
outputs:
14+
package_hash: ${{ steps.hash.outputs.PACKAGE_HASH }}
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: '3.12'
21+
22+
- name: Install build dependencies
23+
run: pip install build python-minifier
24+
25+
- name: Build release (obfuscate + wheel + hash)
26+
run: python scripts/build_release.py
27+
28+
- name: Read package hash
29+
id: hash
30+
run: echo "PACKAGE_HASH=$(cat dist/package_hash.txt)" >> "$GITHUB_OUTPUT"
31+
32+
- name: Upload wheel artifact
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: wheel
36+
path: dist/*.whl
37+
38+
- name: Upload hash artifact
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: package-hash
42+
path: dist/package_hash.txt
43+
44+
publish-pypi:
45+
needs: build
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/download-artifact@v4
49+
with:
50+
name: wheel
51+
path: dist/
52+
53+
- name: Publish to PyPI
54+
uses: pypa/gh-action-pypi-publish@release/v1
55+
with:
56+
password: ${{ secrets.PYPI_API_TOKEN }}
57+
58+
github-release:
59+
needs: build
60+
runs-on: ubuntu-latest
61+
steps:
62+
- uses: actions/checkout@v4
63+
64+
- uses: actions/download-artifact@v4
65+
with:
66+
name: wheel
67+
path: dist/
68+
69+
- uses: actions/download-artifact@v4
70+
with:
71+
name: package-hash
72+
path: dist/
73+
74+
- name: Create GitHub Release
75+
uses: softprops/action-gh-release@v2
76+
with:
77+
generate_release_notes: true
78+
files: |
79+
dist/*.whl
80+
dist/package_hash.txt
81+
scripts/install.sh
82+
scripts/install.ps1
83+
body: |
84+
## Install
85+
86+
**pip:**
87+
```bash
88+
pip install autonet
89+
```
90+
91+
**Linux/macOS:**
92+
```bash
93+
curl -sSL https://github.com/autonet-code/node/releases/latest/download/install.sh | bash
94+
```
95+
96+
**Windows (PowerShell):**
97+
```powershell
98+
irm https://github.com/autonet-code/node/releases/latest/download/install.ps1 | iex
99+
```
100+
101+
**Optional extras:**
102+
```bash
103+
pip install autonet[voice] # Voice / TTS
104+
pip install autonet[node] # Full training node (PyTorch)
105+
pip install autonet[p2p] # P2P networking
106+
```
107+
108+
## Package Integrity Hash
109+
110+
Publish this to the on-chain Registry to enable node self-verification:
111+
```
112+
Key: node.code.hash.<version>
113+
Value: ${{ needs.build.outputs.package_hash }}
114+
```

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ deployment-addresses.json
3939
# Project-specific
4040
FUNDING_LEADS.md
4141
CLAUDE.md
42+
RELEASE.md
4243
rpb_gemini.txt
4344
rpb_speaker_notes.md
4445
share.md
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"_format": "hh-sol-dbg-1",
3-
"buildInfo": "..\\..\\..\\..\\build-info\\f79e176e55e9e95f3288d7cc256acb31.json"
3+
"buildInfo": "..\\..\\..\\..\\build-info\\d83c92fd04b7afb548590acbad63a4a4.json"
44
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"_format": "hh-sol-dbg-1",
3-
"buildInfo": "..\\..\\..\\..\\..\\build-info\\f79e176e55e9e95f3288d7cc256acb31.json"
3+
"buildInfo": "..\\..\\..\\..\\..\\build-info\\d83c92fd04b7afb548590acbad63a4a4.json"
44
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"_format": "hh-sol-dbg-1",
3-
"buildInfo": "..\\..\\..\\..\\..\\build-info\\f79e176e55e9e95f3288d7cc256acb31.json"
3+
"buildInfo": "..\\..\\..\\..\\..\\build-info\\d83c92fd04b7afb548590acbad63a4a4.json"
44
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"_format": "hh-sol-dbg-1",
3-
"buildInfo": "..\\..\\..\\..\\build-info\\f79e176e55e9e95f3288d7cc256acb31.json"
3+
"buildInfo": "..\\..\\..\\..\\build-info\\d83c92fd04b7afb548590acbad63a4a4.json"
44
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"_format": "hh-sol-dbg-1",
3-
"buildInfo": "..\\..\\..\\..\\build-info\\f79e176e55e9e95f3288d7cc256acb31.json"
3+
"buildInfo": "..\\..\\..\\..\\build-info\\d83c92fd04b7afb548590acbad63a4a4.json"
44
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"_format": "hh-sol-dbg-1",
3-
"buildInfo": "..\\..\\..\\..\\build-info\\f79e176e55e9e95f3288d7cc256acb31.json"
3+
"buildInfo": "..\\..\\..\\..\\build-info\\d83c92fd04b7afb548590acbad63a4a4.json"
44
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"_format": "hh-sol-dbg-1",
3-
"buildInfo": "..\\..\\..\\..\\build-info\\f79e176e55e9e95f3288d7cc256acb31.json"
3+
"buildInfo": "..\\..\\..\\..\\build-info\\d83c92fd04b7afb548590acbad63a4a4.json"
44
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"_format": "hh-sol-dbg-1",
3-
"buildInfo": "..\\..\\..\\..\\build-info\\f79e176e55e9e95f3288d7cc256acb31.json"
3+
"buildInfo": "..\\..\\..\\..\\build-info\\d83c92fd04b7afb548590acbad63a4a4.json"
44
}

0 commit comments

Comments
 (0)