From 39cdc1c54c083383b2c1b2391e4ed29f1926790a Mon Sep 17 00:00:00 2001 From: Jonas Depoix Date: Wed, 30 Mar 2022 15:22:24 +0200 Subject: [PATCH 1/6] pip and setuptools are now specifically updated before building the project --- .travis.yml | 2 ++ youtube_transcript_api/_api.py | 1 + youtube_transcript_api/_transcripts.py | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 61427f2..0d8f24f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,8 @@ python: - "3.7" - "3.8" install: + - pip install --upgrade pip + - pip install --upgrade setuptools - pip install -r requirements.txt script: - coverage run -m unittest discover diff --git a/youtube_transcript_api/_api.py b/youtube_transcript_api/_api.py index 37bd6b2..a618b0e 100644 --- a/youtube_transcript_api/_api.py +++ b/youtube_transcript_api/_api.py @@ -13,6 +13,7 @@ from ._errors import ( CookiesInvalid ) + class YouTubeTranscriptApi(object): @classmethod def list_transcripts(cls, video_id, proxies=None, cookies=None): diff --git a/youtube_transcript_api/_transcripts.py b/youtube_transcript_api/_transcripts.py index d7fd5b3..d5ba3ed 100644 --- a/youtube_transcript_api/_transcripts.py +++ b/youtube_transcript_api/_transcripts.py @@ -170,7 +170,7 @@ class TranscriptList(object): """ Finds a transcript for a given language code. Manually created transcripts are returned first and only if none are found, generated transcripts are used. If you only want generated transcripts use - find_manually_created_transcript instead. + `find_manually_created_transcript` instead. :param language_codes: A list of language codes in a descending priority. For example, if this is set to ['de', 'en'] it will first try to fetch the german transcript (de) and then fetch the english transcript (en) if From a443e7f1dd30bead8145e607abf0c52aa9f63efb Mon Sep 17 00:00:00 2001 From: Jonas Depoix Date: Wed, 30 Mar 2022 15:34:41 +0200 Subject: [PATCH 2/6] updated httpretty --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 0b8ea35..14b4a24 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,6 +2,6 @@ requests==2.24.0 # testing mock==3.0.5 -httpretty==0.9.7 +httpretty==1.1.4 coverage==5.2.1 coveralls==1.11.1 From b45e40e68065f1e6dba8581b1e6b8f2c6066a3d9 Mon Sep 17 00:00:00 2001 From: Jonas Depoix Date: Wed, 30 Mar 2022 15:43:21 +0200 Subject: [PATCH 3/6] updated all requirements --- requirements.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index 14b4a24..09e51f3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ -requests==2.24.0 +requests==2.27.1 # testing -mock==3.0.5 +mock==4.0.3 httpretty==1.1.4 -coverage==5.2.1 -coveralls==1.11.1 +coveralls==3.3.1 +coverage==6.3.2 From e311e37e4b4f98378ff94657bfdf91daecd4b2c1 Mon Sep 17 00:00:00 2001 From: Jonas Depoix Date: Wed, 30 Mar 2022 15:51:27 +0200 Subject: [PATCH 4/6] reverted requests and coveralls, coverage to remain compatible to python version <= 3.6 --- requirements.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 09e51f3..9d750eb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ -requests==2.27.1 +requests==2.24.0 # testing mock==4.0.3 httpretty==1.1.4 -coveralls==3.3.1 -coverage==6.3.2 +coveralls==1.11.1 +coverage==5.2.1 From 74209d0be3be9cea986fa4033021490cdb24832a Mon Sep 17 00:00:00 2001 From: Jonas Depoix Date: Wed, 30 Mar 2022 15:53:14 +0200 Subject: [PATCH 5/6] travis now uses 3.7.11 for 3.7 builds --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0d8f24f..ee49bde 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ language: python python: - "3.5" - "3.6" - - "3.7" + - "3.7.11" - "3.8" install: - pip install --upgrade pip From 4063b583a3c9bee3c82e63eaf9aa5b8a23d533ad Mon Sep 17 00:00:00 2001 From: Jonas Depoix Date: Wed, 30 Mar 2022 15:55:33 +0200 Subject: [PATCH 6/6] reverted mock upgrade to stay compatible with python 3.5 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 9d750eb..d8ea987 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ requests==2.24.0 # testing -mock==4.0.3 +mock==3.0.5 httpretty==1.1.4 coveralls==1.11.1 coverage==5.2.1