Update transform_versions.sh fox version fixes
@@ -3,15 +3,8 @@ set -e
set -x
version=$1
+file=hikari/_about.py
-declare -A VERSION_TRANSFORMATIONS=(
- ["hikari/__init__.py"]="s|^__version__.*|__version__ = \"${version}\"|g"
- ["setup.py"]="s|^__version__.*|__version__ = \"${version}\"|g"
- ["docs/conf.py"]="0,/^version.*$/s||version = \"${version}\"|g"
-)
+sed "s|^__version__.*|__version__ = \"${version}\"|g" -i ${file}
-for transformation in "${!VERSION_TRANSFORMATIONS[@]}"; do
- sed "${VERSION_TRANSFORMATIONS[${transformation}]}" -i "${transformation}"
-done
-
-git add ${!VERSION_TRANSFORMATIONS[@]}
+git add ${file}
