Date: Saturday, April 8, 2023 @ 05:44:26
  Author: felixonmars
Revision: 1441794

archrelease: copy trunk to community-staging-any

Added:
  python-recommonmark/repos/community-staging-any/
  python-recommonmark/repos/community-staging-any/PKGBUILD
    (from rev 1441792, python-recommonmark/trunk/PKGBUILD)
  
python-recommonmark/repos/community-staging-any/autostructify-tab_width-fallback.patch
    (from rev 1441792, 
python-recommonmark/trunk/autostructify-tab_width-fallback.patch)

----------------------------------------+
 PKGBUILD                               |   46 +++++++++++++++++++++++++++++++
 autostructify-tab_width-fallback.patch |   12 ++++++++
 2 files changed, 58 insertions(+)

Copied: python-recommonmark/repos/community-staging-any/PKGBUILD (from rev 
1441792, python-recommonmark/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-08 05:44:26 UTC (rev 1441794)
@@ -0,0 +1,46 @@
+# Maintainer: Evangelos Foutras <[email protected]>
+# Contributor: Caleb Maclennan <[email protected]>
+# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_name=recommonmark
+pkgname=python-$_name
+pkgver=0.7.1
+pkgrel=6
+pkgdesc='Markdown parser for docutils'
+arch=('any')
+url="https://recommonmark.readthedocs.io/";
+license=('MIT')
+depends=('python' 'python-commonmark' 'python-docutils' 'python-sphinx')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=(https://files.pythonhosted.org/packages/source/r/$_name/$_name-$pkgver.tar.gz
+        autostructify-tab_width-fallback.patch)
+sha256sums=('bdb4db649f2222dcd8d2d844f0006b958d627f732415d399791ee436a3686d67'
+            '0672b55c9bd49d24cfe86cd29fa93d1ebde3f757df606e7aea74ba6e58deff26')
+
+prepare() {
+  cd $_name-$pkgver
+  patch -Np1 -i ../autostructify-tab_width-fallback.patch
+}
+
+build() {
+  cd $_name-$pkgver
+  python setup.py build
+  make -C docs text man
+}
+
+check() {
+  cd $_name-$pkgver
+  PYTHONDONTWRITEBYTECODE=1 pytest --deselect tests/test_sphinx.py
+}
+
+package() {
+  cd $_name-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" license.md
+  install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" \
+    README.md CHANGELOG.md docs/_build/text/*.txt
+  install -Dm644 -t "$pkgdir/usr/share/man/man1" docs/_build/man/$_name.1
+}
+
+# vim:set ts=2 sw=2 et:

Copied: 
python-recommonmark/repos/community-staging-any/autostructify-tab_width-fallback.patch
 (from rev 1441792, 
python-recommonmark/trunk/autostructify-tab_width-fallback.patch)
===================================================================
--- community-staging-any/autostructify-tab_width-fallback.patch                
                (rev 0)
+++ community-staging-any/autostructify-tab_width-fallback.patch        
2023-04-08 05:44:26 UTC (rev 1441794)
@@ -0,0 +1,12 @@
+diff -upr recommonmark-0.7.1.orig/recommonmark/transform.py 
recommonmark-0.7.1/recommonmark/transform.py
+--- recommonmark-0.7.1.orig/recommonmark/transform.py  2019-08-09 
21:38:35.000000000 +0300
++++ recommonmark-0.7.1/recommonmark/transform.py       2022-05-31 
13:35:09.247049278 +0300
+@@ -28,6 +28,8 @@ class AutoStructify(transforms.Transform
+             self.config.update(new_cfg)
+         except AttributeError:
+             pass
++        # provide fallback like 
https://repo.or.cz/docutils.git/commit/e3bd0958bac8
++        self.document.settings.setdefault('tab_width', 8)
+ 
+         # Deprecation notices
+         # TODO move this check to an extension pattern, and only call once

Reply via email to