From 60cc2292c774b2bea09f23d207e42fd9c758c192 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Thu, 17 Nov 2022 16:18:59 +0900 Subject: [PATCH 1/3] Make deploy script to raise error explicitly --- tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index ed853a2..7e71c7e 100644 --- a/tasks.py +++ b/tasks.py @@ -44,7 +44,7 @@ def release(context: Context) -> None: except UnexpectedExit as exception: with open(pyproject_path, 'w', encoding='utf-8') as pyproject_file: pyproject_file.write(pyproject_string) - raise exception + raise exception from exception # recover to original with open(pyproject_path, 'w', encoding='utf-8') as pyproject_file: From 934552f1a15146b805c5a9c406e1908ac1494a97 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Thu, 17 Nov 2022 16:19:09 +0900 Subject: [PATCH 2/3] Fix typo in Release action --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7ccaa30..4dfacaf 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -31,7 +31,7 @@ jobs: run: poetry install - name: Authenticate to PyPI - run: poetry http-basic.pypi ${{ secrets.PYPI_USERNAME }} ${{ secrets.PYPI_PASSWORD }} + run: poetry config http-basic.pypi '${{ secrets.PYPI_USERNAME }}' '${{ secrets.PYPI_PASSWORD }}' - name: Release run: poetry run invoke release From 49aa26962e8b16af449b7ffc5efee8ab7fdfdc4b Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Thu, 17 Nov 2022 16:19:49 +0900 Subject: [PATCH 3/3] Add badge about release to `README.md` --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8f6b349..92cc277 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,21 @@ # Twitter Video Tools [![PyPI version](https://badge.fury.io/py/twitter-video-tools.svg)](https://badge.fury.io/py/twitter-video-tools) +[![Package Release Status](https://github.com/code-yeongyu/twitter_video_tools/actions/workflows/release.yaml/badge.svg)](https://github.com/code-yeongyu/twitter_video_tools/actions/workflows/release.yaml) [![Test](https://github.com/code-yeongyu/twitter_video_tools/actions/workflows/test.yaml/badge.svg?branch=master)](https://github.com/code-yeongyu/twitter_video_tools/actions/workflows/test.yaml) [![codecov](https://codecov.io/gh/code-yeongyu/twitter_video_tools/branch/master/graph/badge.svg?token=97K8BBWOH7)](https://codecov.io/gh/code-yeongyu/twitter_video_tools) - - A multi-processing supported video downloader - supports downloading videos from twitter (or specific user from twitter) && monsnode. ## Install -### PIP +### with PIP ```sh pip install twitter-video-tools ``` -### Poetry +### with Poetry (Recommended) ```sh poetry add twitter-video-tools