Skip to content

Commit d2bd73a

Browse files
committed
Add a justfile to bump version using hatch
1 parent cfccab3 commit d2bd73a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

justfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Bump version: just bump [major|minor|patch] (default: patch)
2+
bump part="patch":
3+
#!/usr/bin/env bash
4+
old=$(hatch version)
5+
hatch version {{part}}
6+
new=$(hatch version)
7+
sed -i "s/python-ly $old/python-ly $new/g" tests/test_xml_files/*.xml
8+
echo "Bumped $old -> $new"

0 commit comments

Comments
 (0)