Package Details: pandoc-numbering 3.0.2.r28.g8a69fd5-1

Git Clone URL: https://aur.archlinux.org/pandoc-numbering.git (read-only, click to copy)
Package Base: pandoc-numbering
Description: A pandoc filter for numbering all kinds of things.
Upstream URL: https://github.com/chdemko/pandoc-numbering
Licenses: BSD3
Conflicts: pandoc-numbering-git
Provides: pandoc-numbering-git
Submitter: mmtung
Maintainer: mmtung
Last Packager: mmtung
Votes: 0
Popularity: 0.000000
First Submitted: 2018-08-16 17:27 (UTC)
Last Updated: 2020-05-15 10:00 (UTC)

Latest Comments

gesh commented on 2024-01-06 22:13 (UTC)

The below should fix most of the build issues. Package itself didn't fit my usecase, so I haven't tested extensively, nor have I managed to get the docs to build, but this should be a start.

From e9c3493a5945a5a3f8f145c52dd565cd51d1d3d1 Mon Sep 17 00:00:00 2001
From: gesh <gesh@gesh.uni.cx>
Date: Sat, 6 Jan 2024 23:34:57 +0200
Subject: [PATCH] Update to PEP517 build

Also update dependency list and other misc fixes
---
 .SRCINFO       | 22 ++++++++++-----------
 .gitattributes |  1 +
 PKGBUILD       | 52 +++++++++++++++++++++++++++++++++++++++-----------
 3 files changed, 53 insertions(+), 22 deletions(-)
 create mode 100644 .gitattributes

diff --git a/.SRCINFO b/.SRCINFO
index ae3c9b7..9819100 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,21 +1,21 @@
-pkgbase = pandoc-numbering
+pkgbase = pandoc-numbering-git
    pkgdesc = A pandoc filter for numbering all kinds of things.
-   pkgver = 3.0.2.r28.g8a69fd5
+   pkgver = 3.4.0.3.r73.g5019457
    pkgrel = 1
    url = https://github.com/chdemko/pandoc-numbering
    arch = any
    license = BSD3
    makedepends = git
-   depends = pandoc
+   makedepends = python-build
+   makedepends = python-installer
+   makedepends = python-wheel
+   makedepends = python-poetry
+   makedepends = python-poetry-dynamic-versioning
    depends = python
-   depends = python-pandocfilters
-   depends = pandoc-xnos
-   depends = python-pypandoc
    depends = python-panflute
-   provides = pandoc-numbering-git
-   conflicts = pandoc-numbering-git
-   source = git://github.com/chdemko/pandoc-numbering.git
+   provides = pandoc-numbering
+   conflicts = pandoc-numbering
+   source = git+https://github.com/chdemko/pandoc-numbering.git
    md5sums = SKIP

-pkgname = pandoc-numbering
-
+pkgname = pandoc-numbering-git
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..08c7cb3
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+.SRCINFO -whitespace
diff --git a/PKGBUILD b/PKGBUILD
index 1ce054c..7715f52 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,27 +1,57 @@
+# Contributor: Gesh <gesh@gesh.uni.cx>
 # Mantainer: Michael M. Tung <mtung at mat dot upv dot es>

-pkgname=pandoc-numbering
-pkgver=3.0.2.r28.g8a69fd5
+_name=pandoc-numbering
+pkgname=pandoc-numbering-git
+pkgver=3.4.0.3.r73.g5019457
 pkgrel=1
 pkgdesc='A pandoc filter for numbering all kinds of things.'
 url='https://github.com/chdemko/pandoc-numbering'
-depends=('pandoc' 'python' 'python-pandocfilters' 'pandoc-xnos' 'python-pypandoc' 'python-panflute')
+depends=('python' 'python-panflute')
 license=('BSD3')
 arch=('any')

-makedepends=('git')
-provides=('pandoc-numbering-git')
-conflicts=('pandoc-numbering-git')
+makedepends=(
+    'git'

-source=('git://github.com/chdemko/pandoc-numbering.git')
+    'python-build'
+    'python-installer'
+    'python-wheel'
+
+    'python-poetry'
+    'python-poetry-dynamic-versioning'
+
+    # for docs
+    # 'python-myst-parser'
+    # 'python-sphinx'
+    # 'python-sphinx_rtd_theme'
+    )
+provides=('pandoc-numbering')
+conflicts=('pandoc-numbering')
+
+source=('git+https://github.com/chdemko/pandoc-numbering.git')
 md5sums=('SKIP')

 pkgver() {
-  cd ${srcdir}/pandoc-numbering
-  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+    cd ${srcdir}/pandoc-numbering
+    git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+    git -C "${srcdir}/${_name}" clean -dfx
+}
+
+build() {
+    cd "${srcdir}/${_name}"
+    python -m build --wheel --no-isolation
+}
+
+check() {
+    cd "${srcdir}/${_name}"
+    python -m pytest
 }

 package() {
-    cd "$srcdir/pandoc-numbering"
-    python setup.py install --root="$pkgdir" --optimize=1 
+    cd "${srcdir}/${_name}"
+    python -m installer --destdir="$pkgdir" dist/*.whl
 }
-- 
2.43.0

gesh commented on 2024-01-06 21:05 (UTC)

Also, github doesn't support cloning from git:// urls anymore, so this needs to be changed to git+https://

gesh commented on 2024-01-06 20:49 (UTC)

Since this is a VCS package (ie it packages the nightlies of upstream), this should be named pandoc-numbering-git -- the pkgname vs provides/conflicts are in the exact opposite relation they should be in.

mmtung commented on 2020-05-15 10:01 (UTC)

Thanks for your comment, classabbyamp. Dependency is now updated.

classabbyamp commented on 2020-05-13 21:54 (UTC)

one of the dependencies should be python-panflute, not pandoc-panflute