We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 531268a commit 751acfdCopy full SHA for 751acfd
scripts/release.sh
@@ -15,8 +15,21 @@ cd "$(dirname "$(dirname "$0")")" || {
15
exit 1
16
}
17
18
-hatch version "$1"
19
-version=$(hatch version)
+if [ ! -x ./.venv/bin/hatchling ]; then
+ read -r -p "Hatchling is not installed. Install it? [y/N]: " response
20
+ response=${response,,}
21
+ response=${response// /}
22
+
23
+ if [ "$response" = "y" ]; then
24
+ rye sync
25
+ else
26
+ echo "Exiting." >&2
27
+ exit 1
28
+ fi
29
+fi
30
31
+./.venv/bin/hatchling version "$1"
32
+version=$(./.venv/bin/hatchling version)
33
34
git add --verbose --all
35
git commit --verbose --message="chore: bump version to $version"
0 commit comments