From b024581906c9b2e67b0b4c848db1053727e1c225 Mon Sep 17 00:00:00 2001 From: ImportTaste <53661808+ImportTaste@users.noreply.github.com> Date: Thu, 4 Jun 2020 18:53:50 -0500 Subject: [PATCH] Adjustments to return to a single requirements.txt --- .github/workflows/nightly.yml | 2 +- Dockerfile | 2 +- src/build.ps1 | 2 +- src/requirements-linux.txt | 8 -------- src/requirements-windows.txt | 9 --------- src/requirements.txt | 9 +++++++++ src/video2x_setup.py | 2 +- 7 files changed, 13 insertions(+), 21 deletions(-) delete mode 100644 src/requirements-linux.txt delete mode 100644 src/requirements-windows.txt create mode 100644 src/requirements.txt diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 2a79d05..97d9c2a 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -27,7 +27,7 @@ jobs: run: | python -m pip install -U pip pip install -U pyinstaller pywin32 - pip install -U -r requirements-windows.txt + pip install -U -r requirements.txt - name: Build Video2X CLI run: | pyinstaller --noconfirm --log-level=WARN ` diff --git a/Dockerfile b/Dockerfile index e65623e..f9727f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -82,7 +82,7 @@ RUN curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu18 RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1 && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2 RUN cd / && python3.8 -m pip install --upgrade pip &&\ git clone --recurse-submodules --progress https://github.com/k4yt3x/video2x.git --depth=1 &&\ - python3.8 -m pip install -U -r video2x/src/requirements-linux.txt + python3.8 -m pip install -U -r video2x/src/requirements.txt # Compile drivers diff --git a/src/build.ps1 b/src/build.ps1 index 4bfed2c..ac9d3bd 100644 --- a/src/build.ps1 +++ b/src/build.ps1 @@ -82,7 +82,7 @@ Copy-Item "dist\video2x.exe" -Destination "$($VIDEO2X_VERSION)\video2x-$($VIDEO2 Copy-Item "dist\video2x_gui.exe" -Destination "$($VIDEO2X_VERSION)\video2x-$($VIDEO2X_VERSION)-win32-light\" Copy-Item "dist\video2x_setup.exe" -Destination "$($VIDEO2X_VERSION)\video2x-$($VIDEO2X_VERSION)-win32-light\" Copy-Item "video2x.yaml" -Destination "$($VIDEO2X_VERSION)\video2x-$($VIDEO2X_VERSION)-win32-light\" -Copy-Item "requirements-windows.txt" -Destination "$($VIDEO2X_VERSION)\video2x-$($VIDEO2X_VERSION)-win32-light\" +Copy-Item "requirements.txt" -Destination "$($VIDEO2X_VERSION)\video2x-$($VIDEO2X_VERSION)-win32-light\" # clean up temporary files Write-Host -ForegroundColor White "`nDeleting temporary files" diff --git a/src/requirements-linux.txt b/src/requirements-linux.txt deleted file mode 100644 index acaf20e..0000000 --- a/src/requirements-linux.txt +++ /dev/null @@ -1,8 +0,0 @@ -avalon_framework -colorama -patool -pyqt5 -python-magic -pyyaml -requests -tqdm \ No newline at end of file diff --git a/src/requirements-windows.txt b/src/requirements-windows.txt deleted file mode 100644 index 10b3550..0000000 --- a/src/requirements-windows.txt +++ /dev/null @@ -1,9 +0,0 @@ -avalon_framework -colorama -patool -pyqt5 -python-magic -python-magic-bin -pyyaml -requests -tqdm \ No newline at end of file diff --git a/src/requirements.txt b/src/requirements.txt new file mode 100644 index 0000000..3ef23f1 --- /dev/null +++ b/src/requirements.txt @@ -0,0 +1,9 @@ +avalon_framework +colorama +patool +pyqt5 +python-magic; platform_system != "Windows" +python-magic-bin; platform_system == "Windows" +pyyaml +requests +tqdm \ No newline at end of file diff --git a/src/video2x_setup.py b/src/video2x_setup.py index 22765ea..4ef1562 100755 --- a/src/video2x_setup.py +++ b/src/video2x_setup.py @@ -105,7 +105,7 @@ class Video2xSetup: def _install_python_requirements(self): """ Read requirements.txt and return its content """ - pip_install('requirements-windows.txt') + pip_install('requirements.txt') def _cleanup(self): """ Cleanup all the temp files downloaded