Skip to content

Commit b314570

Browse files
authored
add release workflow, update changelog, pypi upload (#15)
* add release workflow * update changelog * Bump version: 0.0.1 → 0.0.2 * update readme
1 parent 13a6d3b commit b314570

File tree

5 files changed

+55
-5
lines changed

5 files changed

+55
-5
lines changed

.bumpversion.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.0.1
2+
current_version = 0.0.2
33
tag = True
44
commit = True
55

.github/workflows/release.yaml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "*.*.*"
7+
8+
jobs:
9+
release:
10+
name: Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
# will use ref/SHA that triggered it
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
- name: Set up Python 3.10
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: "3.10"
21+
- name: Install pypa/build
22+
run: >-
23+
python -m
24+
pip install
25+
build
26+
--user
27+
- name: Build a binary wheel and a source tarball
28+
run: >-
29+
python -m
30+
build
31+
--sdist
32+
--wheel
33+
--outdir dist/
34+
.
35+
- name: Publish a Python distribution to PyPI
36+
uses: pypa/gh-action-pypi-publish@release/v1
37+
with:
38+
password: ${{ secrets.PYPI_API_TOKEN }}

CHANGELOG.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,14 @@ and this project adheres to [Semantic Versioning][].
88
[keep a changelog]: https://keepachangelog.com/en/1.0.0/
99
[semantic versioning]: https://semver.org/spec/v2.0.0.html
1010

11-
## [Unreleased]
11+
## 0.0.2 (2022-10-03)
1212

1313
### Added
1414

15-
- Basic tool, preprocessing and plotting functions
15+
- Jax Silhouette by @adamgayoso in #1
16+
- Move silhouette to utils by @adamgayoso in #2
17+
- Update README.md by @adamgayoso in #3
18+
- Initial docs by @adamgayoso in #4
19+
- Silhouette batch + labels by @adamgayoso in #5
20+
- Add kmeans, nmi, ari metrics by @adamgayoso in #6
21+
- Isolated labels + settings by @adamgayoso in #7

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@ pip install scib-metrics
3030
```
3131
-->
3232

33-
1. Install the latest development version:
33+
1. Install the latest release on PyPI:
34+
35+
```bash
36+
pip install scib-metrics
37+
```
38+
39+
2. Install the latest development version:
3440

3541
```bash
3642
pip install git+https://github.com/yoseflab/scib-metrics.git@main

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ requires = ["hatchling"]
55

66
[project]
77
name = "scib_metrics"
8-
version = "0.0.1"
8+
version = "0.0.2"
99
description = "Accelerated and Python-only scIB metrics"
1010
readme = "README.md"
1111
requires-python = ">=3.8"

0 commit comments

Comments
 (0)