Skip to content

Commit e0a1689

Browse files
authored
Workflow/release (#1)
* updated toml file with classifiers for pypi, add build to dev dependencies, updated version to 0.0.1 * release.yaml created in workflows for when a new release is created gets pushed to pypi (in theory)
1 parent 8486bc6 commit e0a1689

File tree

2 files changed

+43
-2
lines changed

2 files changed

+43
-2
lines changed

.github/workflows/release.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Upload Python Package to PyPI when a Release is Created
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
pypi-publish:
9+
name: Publish release to PyPI
10+
runs-on: ubuntu-latest
11+
environment:
12+
name: pypi
13+
url: https://pypi.org/p/gridfm-graphkit
14+
permissions:
15+
id-token: write
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Set up Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: "3.12"
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip wheel
26+
pip install -e .[dev,test]
27+
- name: Build package
28+
run: |
29+
python -m build
30+
- name: Publish package distributions to PyPI
31+
uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespaces = false
99
[project]
1010
name = "gridfm-graphkit"
1111
description = "Grid Foundation Model"
12-
version = "0.1.0"
12+
version = "0.0.1"
1313
readme = "README.md"
1414
license = "Apache-2.0"
1515
requires-python = ">=3.12.10"
@@ -24,6 +24,15 @@ maintainers = [
2424
{name = "Matteo Mazzonelli", email = "Matteo.Mazzonelli1@ibm.com"},
2525
]
2626

27+
keywords = ["electric power grid", "foundational model", "graph neural networks"]
28+
29+
classifiers = [
30+
"Development Status :: 2 - Pre-Alpha",
31+
"Programming Language :: Python :: 3.12",
32+
"Topic :: Scientific/Engineering :: Artificial Intelligence"
33+
]
34+
35+
2736
dependencies = [
2837
"mlflow>=3.1.0",
2938
"nbformat>=5.10.4",
@@ -43,7 +52,8 @@ dev = [
4352
"mkdocs-material",
4453
"mkdocstrings[python]",
4554
"pre-commit>=4.2.0",
46-
"bandit>=1.8.5"
55+
"bandit>=1.8.5",
56+
"build"
4757
]
4858

4959
test = [

0 commit comments

Comments
 (0)