2022-11-29 11:14:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
test=true
|
|
|
|
|
2022-11-29 10:47:46 +00:00
|
|
|
rm /tmp/music-downloader/*.db
|
|
|
|
rm /tmp/music-downloader/*.sql
|
|
|
|
|
|
|
|
version=$(cut -d@ -f1 version)
|
|
|
|
echo version: $version
|
|
|
|
|
2022-11-29 11:23:36 +00:00
|
|
|
git add .
|
|
|
|
git commit -am "ready for build $version"
|
|
|
|
git push
|
|
|
|
|
2022-11-29 11:14:48 +00:00
|
|
|
sudo python3 -m pip install -U twine wheel setuptools
|
|
|
|
|
2022-11-29 10:47:46 +00:00
|
|
|
python3 setup.py sdist bdist_wheel
|
|
|
|
sudo python3 -m pip uninstall music-kraken -y
|
|
|
|
|
|
|
|
python3 -m pip install dist/music-kraken-$version.tar.gz --user
|
|
|
|
music-kraken
|
2022-11-29 11:14:48 +00:00
|
|
|
|
|
|
|
if [ "$test" = true ];
|
|
|
|
then
|
|
|
|
echo "just a test"
|
|
|
|
twine upload --repository testpypi dist/music_kraken*
|
|
|
|
python3 -m pip install -i https://test.pypi.org/simple/ music-kraken -U
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
twine upload dist/music_kraken*
|
2022-11-29 11:23:36 +00:00
|
|
|
|
|
|
|
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
|
2022-11-29 10:47:46 +00:00
|
|
|
exit
|
|
|
|
|
2022-11-15 12:04:44 +00:00
|
|
|
# https://packaging.python.org/en/latest/tutorials/packaging-projects/
|
2022-11-28 16:18:26 +00:00
|
|
|
#echo "building............"
|
|
|
|
#echo "python3 -m pip install --upgrade build"
|
|
|
|
# python3 -m pip install --upgrade pip
|
2022-11-29 11:14:48 +00:00
|
|
|
# python3 -m pip install --upgrade build
|
2022-11-28 16:18:26 +00:00
|
|
|
#echo "python3 -m build"
|
2022-11-29 11:14:48 +00:00
|
|
|
# python3 -m build
|
2022-11-28 16:18:26 +00:00
|
|
|
# python3 setup.py sdist bdist_wheel
|
|
|
|
# python3 setup.py install --user
|
2022-11-15 12:04:44 +00:00
|
|
|
|
2022-11-29 11:14:48 +00:00
|
|
|
# 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
|
2022-11-28 16:18:26 +00:00
|
|
|
|
2022-11-29 11:14:48 +00:00
|
|
|
# music-kraken
|
2022-11-28 16:18:26 +00:00
|
|
|
|
2022-11-29 11:14:48 +00:00
|
|
|
# open /home/lars/.local/lib/python3.10/site-packages/music_kraken
|
|
|
|
# echo "uploading............"
|
2022-11-28 16:18:26 +00:00
|
|
|
#python3 -m pip install --upgrade twine
|
2022-11-24 15:36:07 +00:00
|
|
|
#twine upload dist/music_kraken*
|
2022-11-15 12:04:44 +00:00
|
|
|
|
2022-11-28 16:18:26 +00:00
|
|
|
# twine upload --repository testpypi dist/music_kraken*
|
2022-11-24 15:36:07 +00:00
|
|
|
exit
|
2022-11-15 12:04:44 +00:00
|
|
|
|
2022-11-15 10:00:32 +00:00
|
|
|
echo "pushing............"
|
|
|
|
git add .
|
|
|
|
git commit -am "new build and upload"
|
|
|
|
git push
|
|
|
|
|
|
|
|
echo "compiling............"
|
2022-11-15 09:25:56 +00:00
|
|
|
mkdir -p dist/build_files
|
|
|
|
mkdir -p dist/compiled
|
2022-11-15 09:03:49 +00:00
|
|
|
|
2022-11-15 09:25:56 +00:00
|
|
|
pyinstaller --onefile src/music_kraken_cli.py --specpath dist/build_files --workpath dist/build_files --distpath dist/compiled
|