Skip to content

Commit e789967

Browse files
committed
prepare release
1 parent 04fbd3e commit e789967

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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 source
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.10"
20+
21+
- name: Install hatch
22+
run: pip install hatch
23+
24+
- name: Build wheel and sdist
25+
run: hatch build
26+
27+
- name: Publish to PyPI
28+
uses: pypa/gh-action-pypi-publish@v1.8.10
29+
with:
30+
password: ${{ secrets.PYPI_PUBLISH_TOKEN }}

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ Cosmo is a neural network architecture based on message passing on geometric gra
1414

1515
Cosmo layers operate on lifted geometric graphs. These are computed from an adjacency matrix of the data, either given by e.g. atomic bond connectivity, or constructed by e.g. k-NN:
1616

17-
```adj = torch_geometric.nn.knn_graph(coords, k, batch_index)```
17+
```
18+
adj = torch_geometric.nn.knn_graph(coords, k, batch_index)
19+
```
1820

1921
where `coords` are the input point coordinates of the data, `k` is a hyperparameter, and `batch_index` assigns each node to an instance in the batch (compare the computing principles of [PyG](https://pytorch-geometric.readthedocs.io/en/2.4.0/index.html), which we highly recommend to use).
2022

0 commit comments

Comments
 (0)