Skip to content

Commit 1e1a111

Browse files
committed
Added PyPI Github Action
1 parent 26b295e commit 1e1a111

File tree

2 files changed

+23
-9
lines changed

2 files changed

+23
-9
lines changed

.github/actions/publish.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Publish to PyPI.org
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
pypi:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
with:
12+
fetch-depth: 0
13+
- run: python3 -m pip install --upgrade build && python3 -m build
14+
- name: Publish package
15+
uses: pypa/gh-action-pypi-publish@release/v1
16+
with:
17+
password: ${{ secrets.PYPI_API_SECRET }}

pyproject.toml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
[build-system]
2-
requires = ["setuptools"]
2+
requires = ["setuptools>=60", "setuptools-scm>=8.0"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "binaryen.py"
7-
authors = [
8-
{name = "Jonathan Hargreaves", email = "[email protected]"},
9-
]
7+
authors = [{ name = "Jonathan Hargreaves", email = "[email protected]" }]
108
description = "A Python wrapper for Binaryen"
119
requires-python = ">=3.11"
12-
dependencies = [
13-
'cffi >= 1.15.1',
14-
]
15-
version = "0.0.1"
10+
dependencies = ['cffi >= 1.15.1']
11+
dynamic = ["version"]
12+
1613

1714
[project.optional-dependencies]
18-
dev = ["black", "isort", "mkdocs", "pytest"]
15+
dev = ["black", "isort", "mkdocs", "pytest"]

0 commit comments

Comments
 (0)