Add clean + publish scripts (#255)

This commit is contained in:
Quentame 2020-03-22 20:07:29 +01:00 committed by GitHub
parent bf31e8dcd2
commit a668da1a1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 0 deletions

7
scripts/clean.sh Executable file
View file

@ -0,0 +1,7 @@
./scripts/common.sh
# Clean
rm -r .tox
rm -r build
rm -r dist
rm -r pyicloud.egg-info

4
scripts/common.sh Executable file
View file

@ -0,0 +1,4 @@
# Be in right place
if [ ! -f setup.py ]; then
cd ..
fi

18
scripts/publish.sh Executable file
View file

@ -0,0 +1,18 @@
# Publish the library
# https://pypi.org/project/pyicloud/
# Publish documentation here: https://packaging.python.org/tutorials/packaging-projects/
./scripts/common.sh
./scripts/clean.sh
# Install/update dependencies
python3 -m pip install --user --upgrade setuptools wheel
python3 -m pip install --user --upgrade twine
# Build
python3 setup.py sdist bdist_wheel
# Push to PyPi
python3 -m twine upload dist/*
# Enter credentials manually :P