Skip to content

Commit ab0bb8d

Browse files
authored
Adds PyPI publication workflow (#24)
* Automate publish to pypi on release * re-order to match citation * Update keywords
1 parent 4e434ed commit ab0bb8d

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish Python 🐍 distribution 📦 to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build-n-publish:
9+
name: Build and publish Python 🐍 distribution 📦 to PyPI
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Python
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: "3.x"
17+
- name: Install pypa/build
18+
run: >-
19+
python3 -m
20+
pip install
21+
build
22+
--user
23+
- name: Build a binary wheel and a source tarball
24+
run: >-
25+
python3 -m
26+
build
27+
--sdist
28+
--wheel
29+
--outdir dist/
30+
.
31+
- name: Publish distribution 📦 to PyPI
32+
if: startsWith(github.ref, 'refs/tags')
33+
uses: pypa/gh-action-pypi-publish@release/v1
34+
with:
35+
password: ${{ secrets.PYPI_API_TOKEN }}

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ packages = ["src/sumbuddy"]
99
name = "sum-buddy"
1010
dynamic = ["version"]
1111
authors = [
12-
{ name="Elizabeth G. Campolongo", email="[email protected]" },
1312
{ name="Matthew J. Thompson", email="[email protected]" },
13+
{ name="Elizabeth G. Campolongo", email="[email protected]" },
1414
]
1515
description = "A command-line package to generate CSV with filepath, filename, checksum for all contents of given directory."
1616
readme = "README.md"
@@ -36,6 +36,12 @@ keywords = [
3636
"checksum",
3737
"md5",
3838
"deduplication",
39+
"imageomics",
40+
"metadata",
41+
"CSV",
42+
"images",
43+
"verifier",
44+
"file-verification",
3945
]
4046

4147
[project.urls]

0 commit comments

Comments
 (0)