Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
36 changes: 36 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: publish to PyPI

on:
release:
types: [published]

jobs:
deploy:
strategy:
matrix:
python-version: ['313', '314']

# NOTE this only runs on ubuntu because
# 'This action is only able to run under GNU/Linux environments'
# ~ gh-action-pypi-publish 1.13.0, 29.12.2025
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools
- name: Build package
uses: pypa/cibuildwheel@v3.3.0
env:
CIBW_BUILD: cp${{matrix.python-version}}-*
with:
output-dir: dist/
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
13 changes: 3 additions & 10 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,7 @@ This package is mainly separated into two components:
- `codegen/` provides common structs, traits and functions for
generating valid SQL statements from a `FinalParserState`.

## Manual release workflow
## Release workflow

- `source .venv/bin/activate`

- `maturin build --release`
- if successful, returns output like "Built wheel for CPython 3.13 to 'PATH'"

- `maturin upload <PATH>` (use 'PATH' from last command)
- **NOTE**: This requires token-based authentication. As this is just a
quick-and-dirty solution which should not be necessary for long, I
won't document this further.
GitHub workflows take care of compiling and releasing a new package version
for each supported Python interpreter and OS version.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "sqlquerypp"
version = "0.1.0a4"
version = "0.1.0a5"
description = "SQL query preprocessor for generating optimized queries"
readme = "README.md"
repository = "https://github.com/puzzleYOU/sqlquerypp"
Expand Down