From 54f2352a9ed85113f996bb716877519cf5bc46f5 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Tue, 29 Nov 2022 12:23:36 +0100 Subject: [PATCH] updated readme --- README.md | 8 ++++++++ build.sh | 11 ++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 671c208..8105b10 100644 --- a/README.md +++ b/README.md @@ -192,6 +192,14 @@ cache.get_tracks_without_filepath() the id always is a musicbrainz id and distinct for every track. +**clearing the cache** is easy too. + +``` +from music_kraken import clear_cache + +clear_cache() +``` + ### Setting the Target By default the music downloader doesn't know where to save the music file, if downloaded. To set those variables (the directory to save the file in and the filepath), it is enough to run one single command: diff --git a/build.sh b/build.sh index 3dc17aa..506457e 100644 --- a/build.sh +++ b/build.sh @@ -1,13 +1,16 @@ #!/bin/bash test=true - rm /tmp/music-downloader/*.db rm /tmp/music-downloader/*.sql version=$(cut -d@ -f1 version) echo version: $version +git add . +git commit -am "ready for build $version" +git push + sudo python3 -m pip install -U twine wheel setuptools python3 setup.py sdist bdist_wheel @@ -25,6 +28,12 @@ then fi twine upload dist/music_kraken* + +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 exit # https://packaging.python.org/en/latest/tutorials/packaging-projects/