Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Package #306

Merged
merged 41 commits into from
Jan 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
5ee8682
WIP: initial reorg to support python package
taybenlor Dec 26, 2024
d88d795
WIP: integrate python package with binary
taybenlor Dec 26, 2024
037585b
WIP: restructure so cli is inside sandbox dir
taybenlor Dec 26, 2024
7b9c88a
Configure build using hatch, add simple tests
taybenlor Dec 27, 2024
7da31e2
Configure hatch to make a platform specific wheel
taybenlor Dec 27, 2024
c41b336
Add cibuildwheel github action
taybenlor Dec 27, 2024
1c14398
Add deno dep to build wheels
taybenlor Dec 27, 2024
a2f2e4d
Include langs as part of CLI build for CI
taybenlor Dec 28, 2024
7d00e15
Hardcode MACOSX deployment target
taybenlor Dec 28, 2024
59d744f
Debug deno install
taybenlor Dec 28, 2024
cf887bb
Debugging shell path for deno
taybenlor Dec 28, 2024
944879b
continue debugging
taybenlor Dec 28, 2024
7921acc
Add before-all to pyproject.toml to install deno for linux containers
taybenlor Dec 28, 2024
bfd463d
Add deno to PATH
taybenlor Dec 28, 2024
1d2aee0
add deno to path in environment for cibw
taybenlor Dec 28, 2024
c7eaae1
Make sure libc6 is install
taybenlor Dec 28, 2024
a3c74fe
right name for glibc
taybenlor Dec 28, 2024
b0728ec
Bump manylinux container versions
taybenlor Dec 28, 2024
44a24eb
Configure manylinux versions and architectures for deno support (glib…
taybenlor Dec 28, 2024
ac7d8c5
Remove whoopsie
taybenlor Dec 28, 2024
6c311c7
typo v7l not v71
taybenlor Dec 28, 2024
b9d1145
Make sure hatch is installed for building
taybenlor Dec 28, 2024
860d30e
Add deno for building
taybenlor Dec 28, 2024
349645a
Fix hatch install and missing 2_28 docker image
taybenlor Dec 28, 2024
fd21df6
Try and fix manylinux aarch64
taybenlor Dec 28, 2024
bd4758e
Setup QEMU for linux cross-compilation
taybenlor Dec 28, 2024
44774e5
Skip ppc64le for now
taybenlor Dec 28, 2024
2286795
Drop support for s390x
taybenlor Dec 28, 2024
6bdf9f2
Drop support for armv7l
taybenlor Dec 28, 2024
f5d1316
Fix up missing executable bit after hatch-build-scripts copy
taybenlor Jan 1, 2025
f53feef
Try and get chmod working on windows
taybenlor Jan 1, 2025
3ff6c8b
Fix quotes for windows
taybenlor Jan 1, 2025
26d6901
Fix path for windows
taybenlor Jan 1, 2025
1c73d63
Rename build/runno to just runno for windows
taybenlor Jan 1, 2025
5ce9f43
Skip chmod on windows
taybenlor Jan 1, 2025
a85a6dd
Add docs, rename to runno
taybenlor Jan 1, 2025
22d1419
Remove dep on langs directory from sdist
taybenlor Jan 1, 2025
9563007
Bump version
taybenlor Jan 1, 2025
912588b
Bootstrap deno before building wheels
taybenlor Jan 1, 2025
9b70beb
Remove hardcoded macos version, trying to debug the wheel
taybenlor Jan 1, 2025
76cff8f
Bump version and maybe fix the broken imports?
taybenlor Jan 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build runno wheels

on: [pull_request]

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# macos-13 is an intel runner, macos-14 is apple silicon
os: [ubuntu-latest, windows-latest, macos-13, macos-14]

steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
id: deno
with:
deno-version: "v2.x"
- run: cd sandbox/cli && deno task bootstrap

- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Build wheels
uses: pypa/[email protected]
with:
package-dir: sandbox
output-dir: wheelhouse
config-file: "{package}/pyproject.toml"

- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
6 changes: 6 additions & 0 deletions .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v2
id: deno
with:
deno-version: "v2.x"
- name: Install Hatch
uses: pypa/hatch@install
- run: "npm run build:deploy"
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v2
id: deno
with:
deno-version: "v2.x"
- name: Install Hatch
uses: pypa/hatch@install
- run: "npm run build:deploy"
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test-on-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ jobs:
- uses: denoland/setup-deno@v2
with:
deno-version: "v2.x"
- uses: actions/setup-python@v4
with:
python-version: "3.13"
- name: Install Hatch
uses: pypa/hatch@install
- name: Install dependencies
run: npm run bootstrap
- name: Build Runno
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ build/Release
# Dependency directories
node_modules/
jspm_packages/
wheelhouse/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
Expand Down Expand Up @@ -124,3 +125,6 @@ dist

# Generated Docs
packages/*/docs

# Python
__pycache__
Loading
Loading