Package Details: python-sphinxcontrib-youtube 1.2.0-1

Git Clone URL: https://aur.archlinux.org/python-sphinxcontrib-youtube.git (read-only, click to copy)
Package Base: python-sphinxcontrib-youtube
Description: Sphinx extension to defines the directives, “youtube” and “vimeo”, for embedding YouTube and Vimeo videos, respectively
Upstream URL: https://github.com/sphinx-contrib/youtube
Licenses: GPL
Submitter: pozar87
Maintainer: pozar87
Last Packager: pozar87
Votes: 0
Popularity: 0.000000
First Submitted: 2022-01-14 15:02 (UTC)
Last Updated: 2022-07-18 13:48 (UTC)

Latest Comments

Murmele commented on 2023-07-21 17:51 (UTC) (edited on 2023-07-21 17:52 (UTC) by Murmele)

Please update to 1.3.0


From 303ed6d23b5d37f893851712e56a984b53eb5ed8 Mon Sep 17 00:00:00 2001
From: Martin Marmsoler <martin.marmsoler@gmail.com>
Date: Fri, 21 Jul 2023 19:49:13 +0200
Subject: [PATCH] update to 1.3.0

---
 .SRCINFO   | 15 +++++++++------
 .gitignore |  3 +++
 PKGBUILD   | 25 ++++++++++++++++++-------
 3 files changed, 30 insertions(+), 13 deletions(-)
 create mode 100644 .gitignore

diff --git a/.SRCINFO b/.SRCINFO
index 2101b01..ebe1362 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,17 @@
 pkgbase = python-sphinxcontrib-youtube
    pkgdesc = Sphinx extension to defines the directives, “youtube” and “vimeo”, for embedding YouTube and Vimeo videos, respectively
-   pkgver = 1.2.0
+   pkgver = 1.3.0
    pkgrel = 1
    url = https://github.com/sphinx-contrib/youtube
    arch = any
    license = GPL
-   makedepends = python-setuptools
-   source = https://github.com/sphinx-contrib/youtube/archive/refs/tags/v1.2.0.tar.gz
-   md5sums = 50b022ebc3ee6929926824ebb113070f
-
-pkgname = python-sphinxcontrib-youtube
+   checkdepends = python
+   checkdepends = python-pytest
+   makedepends = python-flit
    depends = python
    depends = python-sphinx
+   depends = python-requests
+   source = https://github.com/sphinx-contrib/youtube/archive/refs/tags/v1.3.0.tar.gz
+   md5sums = b552ffd27d981c78f46f33ecad693a1a
+
+pkgname = python-sphinxcontrib-youtube
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..f1ff4bd
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+pkg
+src
+python-sphinxcontrib-youtube*.pkg.tar.zst
diff --git a/PKGBUILD b/PKGBUILD
index 7badc97..294ef4e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,21 +2,32 @@

 pkgbase='python-sphinxcontrib-youtube'
 pkgname=('python-sphinxcontrib-youtube')
-pkgver='1.2.0'
+pkgver='1.3.0'
 pkgrel='1'
 pkgdesc="Sphinx extension to defines the directives, “youtube” and “vimeo”, for embedding YouTube and Vimeo videos, respectively"
 arch=('any')
 url="https://github.com/sphinx-contrib/youtube"
-makedepends=('python-setuptools')
+depends=(python python-sphinx python-requests)
+makedepends=(python-flit)
+checkdepends=(python python-pytest)
 license=('GPL')
 source=("https://github.com/sphinx-contrib/youtube/archive/refs/tags/v${pkgver}.tar.gz")
-md5sums=('50b022ebc3ee6929926824ebb113070f')
+md5sums=('b552ffd27d981c78f46f33ecad693a1a')
+
+build() {
+  cd "youtube-$pkgver"
+  flit build --format wheel
+}
+
+check() {
+  cd "youtube-$pkgver"
+  pytest
+}

 package_python-sphinxcontrib-youtube(){
-  depends=('python' 
-           'python-sphinx')
-  cd youtube-${pkgver}
-  python setup.py install --root="${pkgdir}" --optimize=1
+  cd "youtube-$pkgver"
+  python -m installer --destdir="${pkgdir}" dist/*.whl
+  install -D -m644 LICENCE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }

 # vim: ts=2 sw=2 et
-- 
2.41.0