Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit acd8039

Browse files
committed
update release build
1 parent 7eb125f commit acd8039

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

makeRelease.sh

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,21 @@ if [ $# -eq 0 ]
1212
fi
1313

1414
while true; do
15-
read -p "Did you update/commit the version in setup.py " yn
15+
read -p "Did you update/commit the version in pyproject.toml " yn
1616
case $yn in
1717
[Yy]* ) break;;
1818
[Nn]* ) exit;;
1919
* ) echo "Please answer yes or no.";;
2020
esac
2121
done
2222

23-
rm -f dist/*
23+
echo "Building webpack bundle"
2424
npm run dist
25-
python setup.py sdist
26-
pip wheel --no-index --no-deps --global-option bdist_wheel --wheel-dir dist dist/*.tar.gz
27-
28-
29-
twine check dist/*
30-
twine upload dist/*
3125

26+
echo "building python package"
27+
poetry build
28+
poetry publish
29+
3230
echo "tagging this release and pushing to github"
3331

3432
git tag -a $1 -m 'tag new version'
@@ -44,6 +42,7 @@ if [ -d ~/.virtualenvs/json2xml ]
4442
cd runestone
4543
tar --strip-components 1 -zcf dist-$1.tgz dist/*
4644
scp dist-$1.tgz balance.runestoneacademy.org:~/
45+
mv dist-$1.tgz ../jsdist
4746
else
4847
echo "Warning: no json2xml ve found skipping pretext"
4948
fi

0 commit comments

Comments
 (0)