From c0f9076fc600abf3141dd274a6d94e212bf20eeb Mon Sep 17 00:00:00 2001 From: Mauricio Bellon Date: Thu, 11 Jul 2024 19:43:25 -0300 Subject: [PATCH] chore: Update youtubed CLI command in pyproject.toml and fix audio extraction bug --- .github/workflows/python-app.yml | 3 +- poetry.lock | 59 +++++++++++++++++++++++++++++++- pyproject.toml | 1 + 3 files changed, 61 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index c001a38..8b4ea66 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -29,4 +29,5 @@ jobs: poetry install - name: Run tests run: | - poetry run pytest + poetry run which pytest + poetry run python -m pytest diff --git a/poetry.lock b/poetry.lock index fee299b..99edc2f 100644 --- a/poetry.lock +++ b/poetry.lock @@ -402,6 +402,17 @@ files = [ [package.dependencies] setuptools = "*" +[[package]] +name = "iniconfig" +version = "2.0.0" +description = "brain-dead simple config-ini parsing" +optional = false +python-versions = ">=3.7" +files = [ + {file = "iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374"}, + {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"}, +] + [[package]] name = "moviepy" version = "1.0.3" @@ -491,6 +502,17 @@ files = [ {file = "numpy-2.0.0.tar.gz", hash = "sha256:cf5d1c9e6837f8af9f92b6bd3e86d513cdc11f60fd62185cc49ec7d1aba34864"}, ] +[[package]] +name = "packaging" +version = "24.1" +description = "Core utilities for Python packages" +optional = false +python-versions = ">=3.8" +files = [ + {file = "packaging-24.1-py3-none-any.whl", hash = "sha256:5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124"}, + {file = "packaging-24.1.tar.gz", hash = "sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"}, +] + [[package]] name = "pillow" version = "10.4.0" @@ -588,6 +610,21 @@ tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "pa typing = ["typing-extensions"] xmp = ["defusedxml"] +[[package]] +name = "pluggy" +version = "1.5.0" +description = "plugin and hook calling mechanisms for python" +optional = false +python-versions = ">=3.8" +files = [ + {file = "pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669"}, + {file = "pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1"}, +] + +[package.extras] +dev = ["pre-commit", "tox"] +testing = ["pytest", "pytest-benchmark"] + [[package]] name = "proglog" version = "0.1.10" @@ -665,6 +702,26 @@ files = [ {file = "pydub-0.25.1.tar.gz", hash = "sha256:980a33ce9949cab2a569606b65674d748ecbca4f0796887fd6f46173a7b0d30f"}, ] +[[package]] +name = "pytest" +version = "8.2.2" +description = "pytest: simple powerful testing with Python" +optional = false +python-versions = ">=3.8" +files = [ + {file = "pytest-8.2.2-py3-none-any.whl", hash = "sha256:c434598117762e2bd304e526244f67bf66bbd7b5d6cf22138be51ff661980343"}, + {file = "pytest-8.2.2.tar.gz", hash = "sha256:de4bb8104e201939ccdc688b27a89a7be2079b22e2bd2b07f806b6ba71117977"}, +] + +[package.dependencies] +colorama = {version = "*", markers = "sys_platform == \"win32\""} +iniconfig = "*" +packaging = "*" +pluggy = ">=1.5,<2.0" + +[package.extras] +dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] + [[package]] name = "pytube" version = "15.0.0" @@ -878,4 +935,4 @@ test = ["pytest (>=8.1,<9.0)"] [metadata] lock-version = "2.0" python-versions = "^3.12" -content-hash = "279b867f213de2e6b7dc192d60b4dec010fbb330248d73521bb43188d9a37068" +content-hash = "ae04fab2387e6b97481cf5f085a70b579d500e12cbf12fd700c797ecca15eeb0" diff --git a/pyproject.toml b/pyproject.toml index ca6960e..33d2cde 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,6 +15,7 @@ yt-dlp = "^2024.7.9" pydub = "^0.25.1" youtube-transcript-api = "^0.6.2" +pytest = "^8.2.2" [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api"