summaryrefslogtreecommitdiffstats
path: root/debian/patches
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 16:49:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 16:49:26 +0000
commit7c94e91d120d1efddd75ddf75e18edf26dcbd022 (patch)
treefc78616a838aa7f27c7bfae33ad1422a583e420e /debian/patches
parentAdding upstream version 2024.03.10. (diff)
downloadyt-dlp-7c94e91d120d1efddd75ddf75e18edf26dcbd022.tar.xz
yt-dlp-7c94e91d120d1efddd75ddf75e18edf26dcbd022.zip
Adding debian version 2024.03.10-1.debian/2024.03.10-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/0001-Correct-path-for-docs.patch19
-rw-r--r--debian/patches/0003-Remove-use-of-git.patch19
-rw-r--r--debian/patches/0004-Makefile-Don-t-run-flake8-when-running-offlinetest.patch25
-rw-r--r--debian/patches/series3
4 files changed, 66 insertions, 0 deletions
diff --git a/debian/patches/0001-Correct-path-for-docs.patch b/debian/patches/0001-Correct-path-for-docs.patch
new file mode 100644
index 0000000..754a265
--- /dev/null
+++ b/debian/patches/0001-Correct-path-for-docs.patch
@@ -0,0 +1,19 @@
+Description: Correct path for docs.
+Author: Unit 193 <unit193@debian.org>
+Forwarded: not-needed
+
+---
+ pyproject.toml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -112,7 +112,7 @@ artifacts = ["/yt_dlp/extractor/lazy_ext
+ "completions/bash/yt-dlp" = "share/bash-completion/completions/yt-dlp"
+ "completions/zsh/_yt-dlp" = "share/zsh/site-functions/_yt-dlp"
+ "completions/fish/yt-dlp.fish" = "share/fish/vendor_completions.d/yt-dlp.fish"
+-"README.txt" = "share/doc/yt_dlp/README.txt"
++"README.txt" = "share/doc/yt-dlp/README.txt"
+ "yt-dlp.1" = "share/man/man1/yt-dlp.1"
+
+ [tool.hatch.version]
diff --git a/debian/patches/0003-Remove-use-of-git.patch b/debian/patches/0003-Remove-use-of-git.patch
new file mode 100644
index 0000000..f722b2f
--- /dev/null
+++ b/debian/patches/0003-Remove-use-of-git.patch
@@ -0,0 +1,19 @@
+Description: Remove use of git during build
+Author: Unit 193 <unit193@debian.org>
+Forwarded: not-needed
+
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/Makefile
++++ b/Makefile
+@@ -9,7 +9,7 @@ tar: yt-dlp.tar.gz
+ # Keep this list in sync with pyproject.toml includes/artifacts
+ # intended use: when building a source distribution,
+ # make pypi-files && python3 -m build -sn .
+-pypi-files: AUTHORS Changelog.md LICENSE README.md README.txt supportedsites \
++pypi-files: Changelog.md LICENSE README.md README.txt supportedsites \
+ completions yt-dlp.1 pyproject.toml setup.cfg devscripts/* test/*
+
+ .PHONY: all clean install test tar pypi-files completions ot offlinetest codetest supportedsites
diff --git a/debian/patches/0004-Makefile-Don-t-run-flake8-when-running-offlinetest.patch b/debian/patches/0004-Makefile-Don-t-run-flake8-when-running-offlinetest.patch
new file mode 100644
index 0000000..3db4af3
--- /dev/null
+++ b/debian/patches/0004-Makefile-Don-t-run-flake8-when-running-offlinetest.patch
@@ -0,0 +1,25 @@
+From: =?utf-8?q?Rog=C3=A9rio_Brito?= <rbrito@gmail.com>
+Date: Sun, 22 Nov 2020 20:06:55 -0300
+Subject: Makefile: Don't run flake8 when running offlinetest.
+
+Unfortunately, due to the dynamic nature of python, we most certainly would
+like to run flake8 when testing the package. Alas, flake8 sometimes
+generates style-only warning or "errors" that break the build, in a similar
+fashion to what -Werror does to GCC or other compilers.
+
+Therefore, I'm disabling this.
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/Makefile
++++ b/Makefile
+@@ -73,7 +73,7 @@ test:
+ $(PYTHON) -m pytest
+ $(MAKE) codetest
+
+-offlinetest: codetest
++offlinetest:
+ $(PYTHON) -m pytest -k "not download"
+
+ CODE_FOLDERS_CMD = find yt_dlp -type f -name '__init__.py' | sed 's,/__init__.py,,' | grep -v '/__' | sort
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..7fff434
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+0001-Correct-path-for-docs.patch
+0003-Remove-use-of-git.patch
+0004-Makefile-Don-t-run-flake8-when-running-offlinetest.patch