Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@

# Shell scripts must keep LF endings — a CRLF shebang breaks execution on HPC/Linux.
*.sh eol=lf
62 changes: 31 additions & 31 deletions release.sh
Original file line number Diff line number Diff line change
@@ -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
Loading