Skip to content

Commit a525ee5

Browse files
authored
Add GitHub release workflow for automated PyPI publishing (#47)
* Add release workflow for PyPI publishing * Update version to 0.4.4
1 parent d1f7603 commit a525ee5

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
name: Build and publish to PyPI
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
steps:
14+
- name: Check out repository
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: "3.11"
23+
24+
- name: Install Poetry
25+
uses: snok/install-poetry@v1
26+
with:
27+
virtualenvs-create: true
28+
virtualenvs-in-project: true
29+
30+
- name: Install dependencies
31+
run: poetry install --no-interaction --no-root
32+
33+
- name: Build package
34+
run: poetry build
35+
36+
- name: Publish to PyPI
37+
uses: pypa/gh-action-pypi-publish@release/v1
38+
with:
39+
user: __token__
40+
password: ${{ secrets.PYPI_API_TOKEN }}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pandasaurus"
3-
version = "0.3.9"
3+
version = "0.4.0"
44
description = "Supporting simple queries over ontology annotations in dataframes, using UberGraph queries."
55
authors = ["Ismail Ugur Bayindir <[email protected]>"]
66
license = "http://www.apache.org/licenses/LICENSE-2.0"

0 commit comments

Comments
 (0)