From 61b0e5342d1672b56f23d9ba63b1b203fe6b324d Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Tue, 14 Jul 2026 21:15:14 +0100 Subject: [PATCH] style: normalize release.sh to LF endings (HPC-safe) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit release.sh had CRLF endings; a CRLF shebang breaks execution on HPC/Linux. Normalize to LF and pin via .gitattributes (*.sh eol=lf). Line-ending change only — no content edits. Co-Authored-By: Claude Opus 4.8 --- .gitattributes | 3 ++- release.sh | 62 +++++++++++++++++++++++++------------------------- 2 files changed, 33 insertions(+), 32 deletions(-) diff --git a/.gitattributes b/.gitattributes index d3f5a12fa..3bef1a9dd 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ - +# Shell scripts must keep LF endings — a CRLF shebang breaks execution on HPC/Linux. +*.sh eol=lf diff --git a/release.sh b/release.sh index d5a6646d0..fde2f648e 100755 --- a/release.sh +++ b/release.sh @@ -1,31 +1,31 @@ -#!/usr/bin/env bash - -export PACKAGE_NAME=autolens - -rm -rf $p/dist -rm -rf $p/build - -set -e - -export VERSION=$1 - -cat $PACKAGE_NAME/__init__.py | grep -v __version__ > temp - -cat temp > $PACKAGE_NAME/__init__.py -rm temp -echo "__version__ = '"$VERSION"'" >> $PACKAGE_NAME/__init__.py - -git add $PACKAGE_NAME/__init__.py - -set +e -git commit -m "Incremented version number" -set -e - -python3 setup.py sdist bdist_wheel -twine upload dist/* --skip-existing --username $PYPI_USERNAME --password $PYPI_PASSWORD - - -git push --tags - -rm -rf $p/dist -rm -rf $p/build +#!/usr/bin/env bash + +export PACKAGE_NAME=autolens + +rm -rf $p/dist +rm -rf $p/build + +set -e + +export VERSION=$1 + +cat $PACKAGE_NAME/__init__.py | grep -v __version__ > temp + +cat temp > $PACKAGE_NAME/__init__.py +rm temp +echo "__version__ = '"$VERSION"'" >> $PACKAGE_NAME/__init__.py + +git add $PACKAGE_NAME/__init__.py + +set +e +git commit -m "Incremented version number" +set -e + +python3 setup.py sdist bdist_wheel +twine upload dist/* --skip-existing --username $PYPI_USERNAME --password $PYPI_PASSWORD + + +git push --tags + +rm -rf $p/dist +rm -rf $p/build