music-kraken-core/build.sh

34 lines
1.0 KiB
Bash

# https://packaging.python.org/en/latest/tutorials/packaging-projects/
#echo "building............"
#echo "python3 -m pip install --upgrade build"
# python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
#echo "python3 -m build"
python3 -m build
# python3 setup.py sdist bdist_wheel
# python3 setup.py install --user
echo "python3 -m pip install dist/music_kraken-1.2.2-py3-none-any.whl --user --force-reinstall"
python3 -m pip install dist/music_kraken-1.2.2.tar.gz --user --force-reinstall
music-kraken
open /home/lars/.local/lib/python3.10/site-packages/music_kraken
echo "uploading............"
#python3 -m pip install --upgrade twine
#twine upload dist/music_kraken*
# twine upload --repository testpypi dist/music_kraken*
exit
echo "pushing............"
git add .
git commit -am "new build and upload"
git push
echo "compiling............"
mkdir -p dist/build_files
mkdir -p dist/compiled
pyinstaller --onefile src/music_kraken_cli.py --specpath dist/build_files --workpath dist/build_files --distpath dist/compiled