A feature-rich command-line audio/video downloader
[build] Build Windows x86 version with py3.7 and remove redundant tests Closes #390
pukkandan0181adefc6df
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex d4321da0dc..70c43f208d 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -95,7 +95,8 @@ jobs:steps:- uses: actions/checkout@v2- - name: Set up Python+ # 3.8 is used for Win7 support+ - name: Set up Python 3.8uses: actions/setup-python@v2with:python-version: '3.8'@@ -137,15 +138,16 @@ jobs:steps:- uses: actions/checkout@v2- - name: Set up Python 3.4.4 32-Bit+ # 3.7 is used for Vista support. See https://github.com/yt-dlp/yt-dlp/issues/390+ - name: Set up Python 3.7 32-Bituses: actions/setup-python@v2with:- python-version: '3.4.4'+ python-version: '3.7'architecture: 'x86'- name: Upgrade pip and enable wheel support- run: python -m pip install pip==19.1.1 setuptools==43.0.0 wheel==0.33.6- - name: Install Requirements for 32 Bit- run: pip install pyinstaller==3.5 mutagen==1.42.0 pycryptodome==3.9.4 pefile==2019.4.18+ run: python -m pip install --upgrade pip setuptools wheel+ - name: Install Requirements+ run: pip install pyinstaller mutagen pycryptodome- name: Bump versionid: bump_versionrun: python devscripts/update-version.pydiff --git a/.github/workflows/core.yml b/.github/workflows/core.ymlindex abf7739ebd..be932275a2 100644--- a/.github/workflows/core.yml+++ b/.github/workflows/core.yml@@ -9,11 +9,13 @@ jobs:fail-fast: falsematrix:os: [ubuntu-18.04]- python-version: [3.6, 3.7, 3.8, 3.9, pypy-3.6, pypy-3.7]+ # py3.9 is in quick-test+ python-version: [3.7, 3.8, pypy-3.6, pypy-3.7]run-tests-ext: [sh]include:+ # atleast one of the tests must be in windows- os: windows-latest- python-version: 3.4 # Windows x86 build is still in 3.4+ python-version: 3.6run-tests-ext: batsteps:- uses: actions/checkout@v2diff --git a/.github/workflows/download.yml b/.github/workflows/download.ymlindex 6b24ddd6b8..9e650d2dc4 100644--- a/.github/workflows/download.yml+++ b/.github/workflows/download.yml@@ -9,11 +9,11 @@ jobs:fail-fast: truematrix:os: [ubuntu-18.04]- python-version: [3.6, 3.7, 3.8, 3.9, pypy-3.6, pypy-3.7]+ python-version: [3.7, 3.8, 3.9, pypy-3.6, pypy-3.7]run-tests-ext: [sh]include:- os: windows-latest- python-version: 3.4 # Windows x86 build is still in 3.4+ python-version: 3.6run-tests-ext: batsteps:- uses: actions/checkout@v2diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.pyindex 0edbb4119f..9ce9f53784 100644--- a/yt_dlp/YoutubeDL.py+++ b/yt_dlp/YoutubeDL.py@@ -472,8 +472,7 @@ class YoutubeDL(object):if sys.version_info < (3, 6):self.report_warning(- 'Support for Python version %d.%d have been deprecated and will break in future versions of yt-dlp! '- 'Update to Python 3.6 or above' % sys.version_info[:2])+ 'Python version %d.%d is not supported! Please update to Python 3.6 or above' % sys.version_info[:2])def check_deprecated(param, option, suggestion):if self.params.get(param) is not None:diff --git a/yt_dlp/update.py b/yt_dlp/update.pyindex c49c78d4b2..d3681b8323 100644--- a/yt_dlp/update.py+++ b/yt_dlp/update.py@@ -89,13 +89,9 @@ def run_update(ydl):err = Noneif isinstance(globals().get('__loader__'), zipimporter):- # We only support python 3.6 or above- if sys.version_info < (3, 6):- err = 'This is the last release of yt-dlp for Python version %d.%d! Please update to Python 3.6 or above' % sys.version_info[:2]+ passelif hasattr(sys, 'frozen'):- # Python 3.6 supports only vista and above- if sys.getwindowsversion()[0] < 6:- err = 'This is the last release of yt-dlp for your version of Windows. Please update to Windows Vista or above'+ passelse:err = 'It looks like you installed yt-dlp with a package manager, pip, setup.py or a tarball. Please use that to update'if err: