-
Notifications
You must be signed in to change notification settings - Fork 2
Modernize codebase and add async support #10
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
Open
emmapowers
wants to merge
17
commits into
main
Choose a base branch
from
feature/modernization-and-async
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 14 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
a3ecc6f
Migrate from Poetry to Pixi + Hatchling
emmapowers 191417c
Add runtime types module
emmapowers 53472f2
Modernize codebase for Python 3.13+
emmapowers c0dd1ca
Add Python runtime generation and improve template
emmapowers 60283d3
Add async support to protocol runtime
emmapowers f846787
Update documentation
emmapowers 3b73b51
Optimize Python codegen with batched struct.pack/unpack
emmapowers 18b3b60
Optimize cpptiny memory usage with single-buffer zero-copy design
emmapowers 99e9436
Add PlatformIO support to Arduino example
emmapowers a3dbb35
Add ctiny (C99) code generator and TCP chat example
emmapowers cd912e9
Rewrite protocol specification docs
emmapowers f5e0960
Update CLAUDE.md with project context and architecture
emmapowers 9e32b79
Add ctiny test suite and refactor shared runtime code
emmapowers 6ed7916
Update copyright years to 2025 and fix email
emmapowers f3a0daf
Update lock
emmapowers 892edf5
Simplify type system: all sized types are variable-length
emmapowers 12100e6
Add benchmarking infrastructure for multiple architectures
emmapowers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| name: Release | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - "v*" | ||
|
|
||
| jobs: | ||
| publish-pypi: | ||
| runs-on: ubuntu-latest | ||
| environment: release | ||
| permissions: | ||
| id-token: write | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Pixi | ||
| uses: prefix-dev/setup-pixi@v0.8.1 | ||
| with: | ||
| pixi-version: v0.39.0 | ||
|
|
||
| - name: Build package | ||
| run: pixi run build | ||
|
|
||
| - name: Publish to PyPI | ||
| uses: pypa/gh-action-pypi-publish@release/v1 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,22 +2,15 @@ name: Tests | |
| on: push | ||
|
|
||
| jobs: | ||
| build: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Install Python | ||
| uses: actions/setup-python@v2 | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Pixi | ||
| uses: prefix-dev/setup-pixi@v0.8.1 | ||
| with: | ||
| python-version: '3.9' | ||
| - name: Install dependencies | ||
| run: | | ||
| apt update && apt install -y build-essential | ||
| python -m pip install --upgrade pip | ||
| curl -sSL https://install.python-poetry.org | python3 - | ||
| echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
| export PATH=$PATH:$HOME/.local/bin | ||
| make install | ||
| pixi-version: v0.39.0 | ||
|
|
||
| - name: Run Tests | ||
| run: | | ||
| make test CI=true | ||
| run: pixi run test | ||
|
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This includes python, c and c++ tests as well? |
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's needed to make this work? I assume the version number in pyproject.toml needs to be updated too? Add a check to ensure pyproject.toml and the tag version match. Create a draft release with the name being the version.