Add clean + publish scripts (#255)
This commit is contained in:
parent
bf31e8dcd2
commit
a668da1a1b
3 changed files with 29 additions and 0 deletions
7
scripts/clean.sh
Executable file
7
scripts/clean.sh
Executable 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
4
scripts/common.sh
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
# Be in right place
|
||||||
|
if [ ! -f setup.py ]; then
|
||||||
|
cd ..
|
||||||
|
fi
|
18
scripts/publish.sh
Executable file
18
scripts/publish.sh
Executable 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
|
Loading…
Reference in a new issue