Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Commit a06e63f

Browse files
committed
Add tbump hooks to ease publishing
1 parent 3002730 commit a06e63f

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

publish.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#/bin/bash
2+
3+
set -x
4+
set -e
5+
6+
(
7+
cd docs
8+
./publish.sh
9+
)
10+
11+
rm -fr dist/
12+
python setup.py sdist bdist_wheel
13+
twine upload dist/*

tbump.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,11 @@ tag_template = "v{new_version}"
2020
[[file]]
2121
src = "setup.cfg"
2222
search = 'version = '
23+
24+
[[before_push]]
25+
name = "Check Changelog"
26+
cmd = "grep -q {new_version} docs/changelog.rst"
27+
28+
[[after_push]]
29+
name = "Publish documentation and update project on Pypi"
30+
cmd = "./publish.sh"

0 commit comments

Comments
 (0)