Skip to content

Commit bc71897

Browse files
authored
Merge pull request #184 from ducflair/jorgedanisc
Jorgedanisc
2 parents 3a2f79b + 02fc0fe commit bc71897

646 files changed

Lines changed: 12974 additions & 108721 deletions

File tree

Some content is hidden

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

.documentation/SchemaUpdates.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
these are the files you must change from the duc repo:
22

3-
on the typescript side:
4-
@duc/packages/ducjs/src/types/index.ts
5-
@duc/packages/ducjs/src/restore/restoreDataState.ts (and other potential restore files related)
6-
@duc/packages/ducjs/src/parse.ts
7-
@duc/packages/ducjs/src/serialize.ts
8-
93
on the rust side:
104
@duc/packages/ducrs/src/types.rs
115
@duc/packages/ducrs/src/parse.rs
126
@duc/packages/ducrs/src/serialize.rs
137

8+
on the typescript side:
9+
@duc/packages/ducjs/src/types/index.ts
10+
@duc/packages/ducjs/src/restore/restoreDataState.ts (and other potential restore files related)
11+
12+
1413
on the python side:
1514
@duc/packages/ducpy/src/ducpy/classes/DataStateClass.py
16-
@duc/packages/ducpy/src/ducpy/parse.py
17-
@duc/packages/ducpy/src/ducpy/serialize.py
1815

1916
And then run the build (or test commands if available) for each from @duc/package.json
2017

21-
and in case you need to check the fbs schema or what changed (changes may be git staged): @duc/schema/duc.fbs
18+
and in case you need to check the fbs schema or what changed (changes may be git staged): @duc/schema/duc.sql
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Deploy Python Docs & Package Index
2+
3+
on:
4+
workflow_dispatch:
5+
repository_dispatch:
6+
types: [trigger-ducpy-docs-deployment]
7+
push:
8+
branches:
9+
- main
10+
paths:
11+
- 'packages/ducpy/docs/**'
12+
- 'packages/ducpy/src/ducpy/**'
13+
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
concurrency:
20+
group: pages
21+
cancel-in-progress: false
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
29+
- name: Setup Python
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: '3.x'
33+
34+
- name: Install Sphinx dependencies
35+
run: pip install sphinx furo sphinx-autoapi
36+
37+
- name: Build Sphinx documentation
38+
run: sphinx-build -M html . _build
39+
working-directory: packages/ducpy/docs
40+
41+
- name: Stage site root
42+
run: |
43+
mkdir -p _site/reference/python
44+
cp -r packages/ducpy/docs/_build/html/. _site/reference/python/
45+
46+
- name: Build PEP 503 Simple Package Index
47+
env:
48+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
# simple/ lands at _site/simple/ → ducflair.github.io/duc/simple/
50+
run: python3 scripts/build-ducpy-simple-index.py _site
51+
52+
- name: Setup Pages
53+
uses: actions/configure-pages@v5
54+
55+
- name: Upload artifact
56+
uses: actions/upload-pages-artifact@v3
57+
with:
58+
path: _site
59+
60+
deploy:
61+
environment:
62+
name: github-pages
63+
url: ${{ steps.deployment.outputs.page_url }}
64+
runs-on: ubuntu-latest
65+
needs: build
66+
steps:
67+
- name: Deploy to GitHub Pages
68+
id: deployment
69+
uses: actions/deploy-pages@v4

.github/workflows/release-ducpdf.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,20 @@ jobs:
3838
uses: oven-sh/setup-bun@v2
3939
with:
4040
bun-version: "latest"
41+
42+
- name: Setup Rust
43+
uses: dtolnay/rust-toolchain@stable
44+
with:
45+
targets: wasm32-unknown-unknown
46+
47+
- name: Install native toolchain for wasm build
48+
run: |
49+
sudo apt-get update
50+
sudo apt-get install -y clang
51+
52+
- name: Install wasm-pack
53+
run: cargo install wasm-pack --locked
54+
4155
# npm 11.5.1 or later must be installed for OIDC to work
4256
- name: Update npm
4357
run: npm install -g npm@latest

.github/workflows/release-ducpy.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,29 @@ jobs:
7373
exit 1
7474
fi
7575
working-directory: ./packages/ducpy
76+
77+
- name: Upload wheels to GitHub release
78+
if: steps.release.outputs.status == 'success'
79+
env:
80+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81+
run: |
82+
# Get the tag created by semantic-release
83+
TAG=$(git describe --tags --abbrev=0)
84+
echo "Uploading wheels from dist/ to release $TAG"
85+
86+
# Upload all wheels and source distributions
87+
find packages/ducpy/dist -name "*.whl" -o -name "*.tar.gz" | while read file; do
88+
echo "Uploading: $file"
89+
gh release upload "$TAG" "$file" --clobber
90+
done
91+
92+
- name: Deploy Python documentation
93+
if: steps.release.outputs.status == 'success'
94+
uses: peter-evans/repository-dispatch@v3
95+
with:
96+
event-type: trigger-ducpy-docs-deployment
97+
token: ${{ secrets.GITHUB_TOKEN }}
98+
7699
- name: Notify web deployment
77100
if: steps.release.outputs.status == 'success'
78101
uses: peter-evans/repository-dispatch@v3

.github/workflows/release-ducsvg.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,18 @@ jobs:
4242
- name: Update npm
4343
run: npm install -g npm@latest
4444

45+
- name: Setup Rust
46+
uses: dtolnay/rust-toolchain@stable
47+
with:
48+
targets: wasm32-unknown-unknown
49+
50+
- name: Install native toolchain for wasm build
51+
run: |
52+
sudo apt-get update
53+
sudo apt-get install -y clang
54+
55+
- name: Install wasm-pack
56+
run: cargo install wasm-pack --locked
4557

4658
- name: Install deps
4759
run: bun install

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ sst.pyi
3333
# opennext
3434
.open-next
3535

36-
# flatc
3736
build_logs
3837

3938
.claude

.vscode/extensions.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"recommendations": [
33
"rust-lang.rust-analyzer",
44
"streetsidesoftware.code-spell-checker",
5-
"gaborv.flatbuffers",
65
"PKief.material-icon-theme",
76
"bradlc.vscode-tailwindcss",
87
"ducflair.duc",

0 commit comments

Comments
 (0)