From 02b1940250bf9be16b3ec09e518d192c30853bf4 Mon Sep 17 00:00:00 2001 From: Jonas Depoix Date: Mon, 31 Aug 2020 13:29:03 +0200 Subject: [PATCH 1/4] dependencies pinned --- requirements.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/requirements.txt b/requirements.txt index f9ad916..80be17a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ -requests +requests==2.24.0 # testing -mock -httpretty -coverage -coveralls \ No newline at end of file +mock==4.0.2 +httpretty==0.9.7 +coverage==5.2.1 +coveralls==2.1.2 From 8bab30a77017b66e037c452948c2b7c689b9837b Mon Sep 17 00:00:00 2001 From: Jonas Depoix Date: Mon, 31 Aug 2020 13:36:12 +0200 Subject: [PATCH 2/4] changed versions to python 2 supporting dependencies --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 80be17a..0b8ea35 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ requests==2.24.0 # testing -mock==4.0.2 +mock==3.0.5 httpretty==0.9.7 coverage==5.2.1 -coveralls==2.1.2 +coveralls==1.11.1 From b27510496cc1a91cee95b1dc05422c1c576acae9 Mon Sep 17 00:00:00 2001 From: Jonas Depoix Date: Mon, 31 Aug 2020 13:43:19 +0200 Subject: [PATCH 3/4] added python 3.8 support; dropped python 3.4 support due to build failure with new requests version --- .travis.yml | 8 ++------ setup.py | 7 +++++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 721f970..10deb0a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,10 @@ language: python python: - "2.7" - - "3.4" - "3.5" - "3.6" -matrix: - include: - - python: 3.7 - dist: xenial - sudo: true + - "3.7" + - "3.8" install: - pip install -r requirements.txt script: diff --git a/setup.py b/setup.py index 1490707..9ab3e33 100644 --- a/setup.py +++ b/setup.py @@ -34,8 +34,11 @@ setuptools.setup( url="https://github.com/jdepoix/youtube-transcript-api", packages=setuptools.find_packages(), classifiers=( - "Programming Language :: Python :: 2", - "Programming Language :: Python :: 3", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ), From bc2a90bef7d1fc31aed71fd7f9b5d94d29710b38 Mon Sep 17 00:00:00 2001 From: Jonas Depoix Date: Mon, 31 Aug 2020 14:07:35 +0200 Subject: [PATCH 4/4] removed version dependent import from coverage --- youtube_transcript_api/_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_transcript_api/_api.py b/youtube_transcript_api/_api.py index 389cf31..e647041 100644 --- a/youtube_transcript_api/_api.py +++ b/youtube_transcript_api/_api.py @@ -1,8 +1,8 @@ import requests -try: +try: # pragma: no cover import http.cookiejar as cookiejar CookieLoadError = (FileNotFoundError, cookiejar.LoadError) -except ImportError: +except ImportError: # pragma: no cover import cookielib as cookiejar CookieLoadError = IOError