From b79ba349ceda486bd3fff3921f1331198c995a6e Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Wed, 10 Apr 2024 13:47:35 +0200 Subject: [PATCH] fix: small errors while testing --- build | 8 ++++---- music_kraken/__init__.py | 2 +- music_kraken/objects/song.py | 4 ++++ pyproject.toml | 7 ++++--- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/build b/build index 73c817a..3d2b57b 100755 --- a/build +++ b/build @@ -25,11 +25,11 @@ shift $((OPTIND -1)) # install dev dependencies echo "installing dev dependencies..." -sudo python3 -m pip install -r requirements-dev.txt +python3 -m pip install -r requirements-dev.txt -hatch version ${version_bump} -git add "music_kraken/__init__.py" -git commit -m "bump: ${version_bump}" +# hatch version ${version_bump} +# git add "music_kraken/__init__.py" +# git commit -m "bump: ${version_bump}" # build the wheels python3 -m build diff --git a/music_kraken/__init__.py b/music_kraken/__init__.py index 961d886..52fdb83 100644 --- a/music_kraken/__init__.py +++ b/music_kraken/__init__.py @@ -9,7 +9,7 @@ from rich.console import Console from .utils.shared import DEBUG, DEBUG_LOGGING from .utils.config import logging_settings, main_settings, read_config -__version__ = "1.9.0" +__version__ = "1.11.0" read_config() diff --git a/music_kraken/objects/song.py b/music_kraken/objects/song.py index 7f9a056..0116616 100644 --- a/music_kraken/objects/song.py +++ b/music_kraken/objects/song.py @@ -683,3 +683,7 @@ class Label(Base): options.extend(self.album_collection.shallow_list) return options + + @property + def option_string(self): + return self.__repr__() diff --git a/pyproject.toml b/pyproject.toml index d0003d8..f36bb51 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" directory = "dist" [tool.hatch.build.targets.sdist] -include = ["music_kraken/*.py" ] +include = ["music_kraken/*.py", "music_kraken/**/*.py" ] [tool.hatch.build.targets.wheel] packages = ["music_kraken"] @@ -41,15 +41,16 @@ dependencies = [ "responses~=0.24.1", "beautifulsoup4~=4.11.1", - "ffmpeg-python~=0.2.0", + "pyffmpeg", "ffmpeg-progress-yield~=0.7.8", "mutagen~=1.46.0", + "rich", "mistune~=3.0.2", "html2markdown~=0.1.7", "jellyfish~=0.9.0", "transliterate~=1.10.2", - "pycountry~=24.0.1", + "pycountry~=23.12.11", "python-dotenv~=1.0.1", "tqdm~=4.65.0",