Skip to content

Commit 0bea296

Browse files
authored
Merge pull request #505 from zivbr/feature/generate-parser-in-pypi-workflow
Generate Parser in PyPI Workflow
2 parents 4645ce1 + 8297195 commit 0bea296

File tree

4 files changed

+23
-8
lines changed

4 files changed

+23
-8
lines changed
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish package to npm and pypi
1+
name: Publish package to npm
22

33
on:
44
push:
@@ -12,8 +12,4 @@ jobs:
1212
npm:
1313
uses: tree-sitter/workflows/.github/workflows/package-npm.yml@main
1414
secrets:
15-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
16-
pypi:
17-
uses: tree-sitter/workflows/.github/workflows/package-pypi.yml@main
18-
secrets:
19-
PYPI_API_TOKEN: ${{secrets.PYPI_TOKEN}}
15+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/publish-pypi.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish package to pypi
2+
3+
on:
4+
push:
5+
tags-ignore: ["*-with-generated-files"]
6+
7+
concurrency:
8+
group: ${{github.workflow}}-${{github.ref}}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
pypi:
13+
uses: tree-sitter/workflows/.github/workflows/package-pypi.yml@main
14+
secrets:
15+
PYPI_API_TOKEN: ${{secrets.PYPI_TOKEN}}
16+
with:
17+
generate: true
18+
abi-version: "14"

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
recursive-include src *.c *.h

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ classifiers = [
1414
"Topic :: Text Processing :: Linguistic",
1515
"Typing :: Typed"
1616
]
17-
requires-python = ">=3.8"
17+
requires-python = ">=3.9"
1818
license.text = "MIT"
1919
readme = "README.md"
2020

@@ -25,5 +25,5 @@ Homepage = "https://github.com/tree-sitter/tree-sitter-swift"
2525
core = ["tree-sitter~=0.23"]
2626

2727
[tool.cibuildwheel]
28-
build = "cp38-*"
28+
build = "cp39-*"
2929
build-frontend = "build"

0 commit comments

Comments
 (0)