Skip to content

Commit

Permalink
Switch to 1st version
Browse files Browse the repository at this point in the history
  • Loading branch information
adhadse committed Nov 22, 2022
1 parent 1c4cf43 commit e8ab7e0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scripts/publish_pypi.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright (c) Anurag Dhadse.
# Distributed under the terms of the Modified BSD License.
# Adapted from https://github.com/jupyter-lsp/jupyterlab-lsp/blob/master/scripts/publish_pypi.sh

rm dist/*
python3 setup.py sdist
twine upload dist/* -r testpypi
echo "Published to testpypi"
while true; do
read -p "Do you wish to publish to pypi?" yn
case $yn in
[Yy]* ) twine upload dist/*; break;;
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;
esac
done

0 comments on commit e8ab7e0

Please sign in to comment.