matrix-commander/scripts/pypi-package-1-create.sh

26 lines
846 B
Bash
Executable File

#!/usr/bin/env bash
#
# # on PC where PyPi package is to be created
# python3 -m pip install --upgrade build # install necessary build packages
# python3 -m pip install --upgrade twine # install necessary build packages
# rm dist/* # cleanup
# nano setup.cfg # increment version number
# python3 -m build # build PyPi package
# python3 -m twine upload dist/* # upload PyPi package, use __token__ as user
#
# # on PC where to install
# sudo apt install libolm-dev
# pip3 install matrix-commander
# export PATH=$PATH:/home/user/.local/bin
# matrix-commander --help # test it
#
# prepare-commit, including version increase in setup.cfg
rm dist/* # cleanup
python3 -m build
ls -l dist/*
# publish
# echo "Use __token__ as user." &&
# python3 -m twine upload dist/*