-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/marsggbo/hyperbox
- Loading branch information
Showing
2 changed files
with
18 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
rm -rf build dist *.egg-info | ||
python setup.py sdist bdist_wheel | ||
if (($1==1));then | ||
python -m twine upload dist/* | ||
elif (($1==2));then | ||
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* | ||
else | ||
echo "Wrong command, only support 1 or 2" | ||
fi | ||
#!/bin/bash | ||
|
||
rm -rf build dist hyperbox.egg-info | ||
python setup.py sdist bdist_wheel | ||
echo Building... | ||
echo Uploading... | ||
if (($1==1));then | ||
python -m twine upload dist/* | ||
echo Uploading to PyPI... | ||
elif (($1==2));then | ||
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* | ||
echo Uploading to TestPyPI... | ||
else | ||
echo "Wrong command, only support 1 or 2" | ||
fi | ||
echo Done. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters