Skip to content

Commit 61b0e53

Browse files
Jammy2211claude
authored andcommitted
style: normalize release.sh to LF endings (HPC-safe)
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 <noreply@anthropic.com>
1 parent eab44c0 commit 61b0e53

2 files changed

Lines changed: 33 additions & 32 deletions

File tree

.gitattributes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
1+
# Shell scripts must keep LF endings — a CRLF shebang breaks execution on HPC/Linux.
2+
*.sh eol=lf

release.sh

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
#!/usr/bin/env bash
2-
3-
export PACKAGE_NAME=autolens
4-
5-
rm -rf $p/dist
6-
rm -rf $p/build
7-
8-
set -e
9-
10-
export VERSION=$1
11-
12-
cat $PACKAGE_NAME/__init__.py | grep -v __version__ > temp
13-
14-
cat temp > $PACKAGE_NAME/__init__.py
15-
rm temp
16-
echo "__version__ = '"$VERSION"'" >> $PACKAGE_NAME/__init__.py
17-
18-
git add $PACKAGE_NAME/__init__.py
19-
20-
set +e
21-
git commit -m "Incremented version number"
22-
set -e
23-
24-
python3 setup.py sdist bdist_wheel
25-
twine upload dist/* --skip-existing --username $PYPI_USERNAME --password $PYPI_PASSWORD
26-
27-
28-
git push --tags
29-
30-
rm -rf $p/dist
31-
rm -rf $p/build
1+
#!/usr/bin/env bash
2+
3+
export PACKAGE_NAME=autolens
4+
5+
rm -rf $p/dist
6+
rm -rf $p/build
7+
8+
set -e
9+
10+
export VERSION=$1
11+
12+
cat $PACKAGE_NAME/__init__.py | grep -v __version__ > temp
13+
14+
cat temp > $PACKAGE_NAME/__init__.py
15+
rm temp
16+
echo "__version__ = '"$VERSION"'" >> $PACKAGE_NAME/__init__.py
17+
18+
git add $PACKAGE_NAME/__init__.py
19+
20+
set +e
21+
git commit -m "Incremented version number"
22+
set -e
23+
24+
python3 setup.py sdist bdist_wheel
25+
twine upload dist/* --skip-existing --username $PYPI_USERNAME --password $PYPI_PASSWORD
26+
27+
28+
git push --tags
29+
30+
rm -rf $p/dist
31+
rm -rf $p/build

0 commit comments

Comments
 (0)