diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f381275..34c7f16 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: Publish to NPM +name: Publish Packages on: release: types: [published] @@ -31,8 +31,12 @@ jobs: override: true - uses: katyo/publish-crates@v2 with: + args: --allow-dirty registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} pypi-publish: uses: tree-sitter/workflows/.github/workflows/package-pypi.yml@main + with: + python-version: 3.11 + generate: true secrets: PYPI_API_TOKEN: ${{secrets.PYPI_API_TOKEN}} diff --git a/setup.py b/setup.py index 768a106..e098a35 100644 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ def get_tag(self): sources=[ "bindings/python/tree_sitter_sql/binding.c", "src/parser.c", - # NOTE: if your language uses an external scanner, add it here. + "src/scanner.c", ], extra_compile_args=[ "-std=c11",