File tree Expand file tree Collapse file tree 2 files changed +43
-2
lines changed
Expand file tree Collapse file tree 2 files changed +43
-2
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ namespaces = false
99[project ]
1010name = " gridfm-graphkit"
1111description = " Grid Foundation Model"
12- version = " 0.1.0 "
12+ version = " 0.0.1 "
1313readme = " README.md"
1414license = " Apache-2.0"
1515requires-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+
2736dependencies = [
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
4959test = [
You can’t perform that action at this time.
0 commit comments