Skip to content

Commit bf823ee

Browse files
committed
Add GitHub Actions workflow for publishing to PyPI and update project metadata
1 parent dddb553 commit bf823ee

File tree

2 files changed

+46
-10
lines changed

2 files changed

+46
-10
lines changed

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
jobs:
9+
build-and-publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.11"
20+
21+
- name: Install build tools
22+
run: |
23+
pip install --upgrade pip
24+
pip install build twine
25+
26+
- name: Build the package
27+
run: python -m build
28+
29+
- name: Publish to PyPI
30+
uses: pypa/gh-action-pypi-publish@v1.8.11
31+
with:
32+
password: ${{ secrets.PYPI_API_TOKEN }}

pyproject.toml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
15
[project]
26
name = "pLAST"
37
version = "1.0.0"
4-
description="plasmid Language Analysis and Search Tool"
5-
authors=[{name="Kamil Krakowski", email="k.krakowski@uw.edu.pl"},
6-
{name="Stanislaw Dunin-Horkawicz", email="s.dunin-horkawicz@uw.edu.pl"}]
8+
description = "plasmid Language Analysis and Search Tool"
9+
authors = [
10+
{name = "Kamil Krakowski", email = "k.krakowski@uw.edu.pl"},
11+
{name = "Stanislaw Dunin-Horkawicz", email = "s.dunin-horkawicz@uw.edu.pl"}
12+
]
713
readme = "README.md"
14+
license = { text = "MIT" }
815
classifiers = [
916
"Programming Language :: Python :: 3",
1017
"License :: OSI Approved :: MIT License",
1118
"Operating System :: OS Independent",
1219
]
1320
keywords = ["plasmid", "network", "language", "word2vec", "pLAST", "model"]
14-
requires-python = ">=3.9.0,<=3.13"
21+
requires-python = ">=3.9, <3.14"
1522
dependencies = [
1623
"gensim==4.3.3",
1724
"numba>=0.61.2",
1825
"numpy>=1.26.4",
1926
"pandas>=2.2.3",
20-
"scikit-learn==1.5.2",
27+
"scikit-learn==1.5.2"
2128
]
2229

2330
[project.urls]
24-
"Homepage"="https://plast.lbs.cent.uw.edu.pl/"
25-
26-
[tool.setuptools]
27-
py-modules = ["__init__"]
31+
Homepage = "https://plast.lbs.cent.uw.edu.pl/"
2832

2933
[tool.setuptools.packages]
30-
find = {}
34+
find = {}

0 commit comments

Comments
 (0)