[arch-commits] Commit in python-recommonmark/repos/community-any (4 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Thu Jul 7 04:32:48 UTC 2022


    Date: Thursday, July 7, 2022 @ 04:32:48
  Author: foutrelis
Revision: 1247579

archrelease: copy trunk to community-any

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

----------------------------------------+
 PKGBUILD                               |   92 +++++++++++++++----------------
 autostructify-tab_width-fallback.patch |   24 ++++----
 2 files changed, 58 insertions(+), 58 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-07-07 04:32:42 UTC (rev 1247578)
+++ PKGBUILD	2022-07-07 04:32:48 UTC (rev 1247579)
@@ -1,46 +0,0 @@
-# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
-# Contributor: Caleb Maclennan <caleb at alerque.com>
-# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
-
-_name=recommonmark
-pkgname=python-$_name
-pkgver=0.7.1
-pkgrel=4
-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
-  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-any/PKGBUILD (from rev 1247578, python-recommonmark/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-07-07 04:32:48 UTC (rev 1247579)
@@ -0,0 +1,46 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+# Contributor: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_name=recommonmark
+pkgname=python-$_name
+pkgver=0.7.1
+pkgrel=5
+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:

Deleted: autostructify-tab_width-fallback.patch
===================================================================
--- autostructify-tab_width-fallback.patch	2022-07-07 04:32:42 UTC (rev 1247578)
+++ autostructify-tab_width-fallback.patch	2022-07-07 04:32:48 UTC (rev 1247579)
@@ -1,12 +0,0 @@
-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

Copied: python-recommonmark/repos/community-any/autostructify-tab_width-fallback.patch (from rev 1247578, python-recommonmark/trunk/autostructify-tab_width-fallback.patch)
===================================================================
--- autostructify-tab_width-fallback.patch	                        (rev 0)
+++ autostructify-tab_width-fallback.patch	2022-07-07 04:32:48 UTC (rev 1247579)
@@ -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



More information about the arch-commits mailing list