* [PR PATCH] python3-pafy: drop broken py2 version
@ 2019-10-10 18:12 voidlinux-github
2019-10-17 13:29 ` [PR PATCH] [Merged]: " voidlinux-github
0 siblings, 1 reply; 2+ messages in thread
From: voidlinux-github @ 2019-10-10 18:12 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 712 bytes --]
There is a new pull request by q66 against master on the void-packages repository
https://github.com/void-ppc/void-packages pafy
https://github.com/void-linux/void-packages/pull/15302
python3-pafy: drop broken py2 version
This was broken because `youtube-dl`, on which this depends, was transitioned from py2 to py3. That's also the reason I added the transitional package - to match youtube-dl in the upgrade path (the other reason is that this installs the `ytdl` script which was previously handled via the alternatives system, while now it's provided by the single package).
While at it, fix license, and adopt.
A patch file from https://github.com/void-linux/void-packages/pull/15302.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pafy-15302.patch --]
[-- Type: text/x-diff, Size: 3072 bytes --]
From e4f8824c47f3a972c6e9b8ab652a6bf8de89d34b Mon Sep 17 00:00:00 2001
From: q66 <daniel@octaforge.org>
Date: Thu, 10 Oct 2019 19:44:48 +0200
Subject: [PATCH] python3-pafy: drop broken py2 version
---
srcpkgs/python-pafy | 1 +
srcpkgs/python-pafy/template | 29 -----------------------------
srcpkgs/python3-pafy | 1 -
srcpkgs/python3-pafy/template | 22 ++++++++++++++++++++++
4 files changed, 23 insertions(+), 30 deletions(-)
create mode 120000 srcpkgs/python-pafy
delete mode 100644 srcpkgs/python-pafy/template
delete mode 120000 srcpkgs/python3-pafy
create mode 100644 srcpkgs/python3-pafy/template
diff --git a/srcpkgs/python-pafy b/srcpkgs/python-pafy
new file mode 120000
index 00000000000..4b7ea2937ae
--- /dev/null
+++ b/srcpkgs/python-pafy
@@ -0,0 +1 @@
+python3-pafy
\ No newline at end of file
diff --git a/srcpkgs/python-pafy/template b/srcpkgs/python-pafy/template
deleted file mode 100644
index 9e18d66c7e4..00000000000
--- a/srcpkgs/python-pafy/template
+++ /dev/null
@@ -1,29 +0,0 @@
-# Template file for 'python-pafy'
-pkgname=python-pafy
-version=0.5.4
-revision=1
-archs=noarch
-wrksrc="pafy-${version}"
-build_style=python-module
-pycompile_module="pafy"
-hostmakedepends="python-setuptools python3-setuptools youtube-dl python3-youtube-dl"
-depends="youtube-dl"
-short_desc="Python2 library to download YouTube content and retrieve metadata"
-maintainer="Orphaned <orphan@voidlinux.org>"
-license="LGPL-3"
-homepage="https://github.com/mps-youtube/pafy"
-distfiles="https://github.com/mps-youtube/pafy/archive/v${version}.tar.gz"
-checksum=a2f9fe7c6175264993190081e1558516b2f2b5987f13a581a55cd9d838df973b
-alternatives="pafy:ytdl:/usr/bin/ytdl2"
-
-python3-pafy_package() {
- archs=noarch
- pycompile_module="pafy"
- depends="python3-youtube-dl"
- short_desc="${short_desc/2/3/}"
- alternatives="pafy:ytdl:/usr/bin/ytdl3"
- pkg_install() {
- vmove usr/bin/ytdl3
- vmove usr/lib/python3*
- }
-}
diff --git a/srcpkgs/python3-pafy b/srcpkgs/python3-pafy
deleted file mode 120000
index 81da0afb146..00000000000
--- a/srcpkgs/python3-pafy
+++ /dev/null
@@ -1 +0,0 @@
-python-pafy
\ No newline at end of file
diff --git a/srcpkgs/python3-pafy/template b/srcpkgs/python3-pafy/template
new file mode 100644
index 00000000000..ce26f770c69
--- /dev/null
+++ b/srcpkgs/python3-pafy/template
@@ -0,0 +1,22 @@
+# Template file for 'python3-pafy'
+pkgname=python3-pafy
+version=0.5.4
+revision=2
+archs=noarch
+wrksrc="pafy-${version}"
+build_style=python3-module
+pycompile_module="pafy"
+hostmakedepends="python3-setuptools youtube-dl"
+depends="youtube-dl"
+short_desc="Python3 library to download YouTube content and retrieve metadata"
+maintainer="q66 <daniel@octaforge.org>"
+license="LGPL-3.0-or-later"
+homepage="https://github.com/mps-youtube/pafy"
+distfiles="https://github.com/mps-youtube/pafy/archive/v${version}.tar.gz"
+checksum=a2f9fe7c6175264993190081e1558516b2f2b5987f13a581a55cd9d838df973b
+
+python-pafy_package() {
+ depends="python3-pafy"
+ short_desc+=" - transitional dummy package"
+ build_style=meta
+}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PR PATCH] [Merged]: python3-pafy: drop broken py2 version
2019-10-10 18:12 [PR PATCH] python3-pafy: drop broken py2 version voidlinux-github
@ 2019-10-17 13:29 ` voidlinux-github
0 siblings, 0 replies; 2+ messages in thread
From: voidlinux-github @ 2019-10-17 13:29 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 567 bytes --]
There's a merged pull request on the void-packages repository
python3-pafy: drop broken py2 version
https://github.com/void-linux/void-packages/pull/15302
Description:
This was broken because `youtube-dl`, on which this depends, was transitioned from py2 to py3. That's also the reason I added the transitional package - to match youtube-dl in the upgrade path (the other reason is that this installs the `ytdl` script which was previously handled via the alternatives system, while now it's provided by the single package).
While at it, fix license, and adopt.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-17 13:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-10 18:12 [PR PATCH] python3-pafy: drop broken py2 version voidlinux-github
2019-10-17 13:29 ` [PR PATCH] [Merged]: " voidlinux-github
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).