[arch-commits] Commit in python-jsonschema-objects/repos/community-any (3 files)

Antonio Rojas arojas at gemini.archlinux.org
Sun Jul 31 09:33:31 UTC 2022


    Date: Sunday, July 31, 2022 @ 09:33:30
  Author: arojas
Revision: 1259252

archrelease: copy trunk to community-any

Added:
  python-jsonschema-objects/repos/community-any/PKGBUILD
    (from rev 1259251, python-jsonschema-objects/trunk/PKGBUILD)
  python-jsonschema-objects/repos/community-any/markdown.patch
    (from rev 1259251, python-jsonschema-objects/trunk/markdown.patch)
Deleted:
  python-jsonschema-objects/repos/community-any/PKGBUILD

----------------+
 PKGBUILD       |   69 ++++++++++++++++++++++++++++++-------------------------
 markdown.patch |   13 ++++++++++
 2 files changed, 51 insertions(+), 31 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-07-31 09:33:20 UTC (rev 1259251)
+++ PKGBUILD	2022-07-31 09:33:30 UTC (rev 1259252)
@@ -1,31 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-jsonschema-objects
-pkgver=0.3.15
-pkgrel=2
-pkgdesc="Return the jsonschema-objects true value of an iterable"
-url="https://github.com/cwacek/python-jsonschema-objects"
-license=('MIT')
-arch=('any')
-depends=('python-inflection' 'python-markdown' 'python-jsonschema' 'python-six')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner' 'python-pytest-mock')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/cwacek/python-jsonschema-objects/archive/$pkgver.tar.gz")
-sha512sums=('b514383bbc52ecfca1238a95a36277ef4c8c4fbf8794729d43d39db8a752ce384528f0c30bbc01daf9fc3678eca26711dd18e588eda8517cb10dcfe0e45ff3e9')
-
-build() {
-  cd python-jsonschema-objects-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd python-jsonschema-objects-$pkgver
-  python setup.py pytest --addopts --doctest-glob='python_jsonschema_objects/*.md'
-}
-
-package() {
-  cd python-jsonschema-objects-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}

Copied: python-jsonschema-objects/repos/community-any/PKGBUILD (from rev 1259251, python-jsonschema-objects/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-07-31 09:33:30 UTC (rev 1259252)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-jsonschema-objects
+pkgver=0.4.1
+pkgrel=1
+pkgdesc="Return the jsonschema-objects true value of an iterable"
+url="https://github.com/cwacek/python-jsonschema-objects"
+license=('MIT')
+arch=('any')
+depends=('python-inflection' 'python-markdown' 'python-jsonschema' 'python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-pytest-mock')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/cwacek/python-jsonschema-objects/archive/$pkgver.tar.gz"
+         markdown.patch)
+sha512sums=('4f47424741aa918e514f2570d316fab9feccc0e0860fe5fc6b863d2a75d4f109f80eb03e4f52549e075e83ebbd2ebceab95c5b43966650993e9bb59e94e02b63'
+            '49952338da8829f05eefcb8cdd2df465c01100c224aeea87e7620bfe761b2ec3cbb55733b9475c116ebd1486508a5a049cf7efa8c33219298bc8e6006deb9118')
+
+prepare() {
+  cd python-jsonschema-objects-$pkgver
+  patch -p1 < ../markdown.patch # Port to recent python-markdown
+}
+
+build() {
+  cd python-jsonschema-objects-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd python-jsonschema-objects-$pkgver
+  python setup.py pytest --addopts --doctest-glob='python_jsonschema_objects/*.md'
+}
+
+package() {
+  cd python-jsonschema-objects-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}

Copied: python-jsonschema-objects/repos/community-any/markdown.patch (from rev 1259251, python-jsonschema-objects/trunk/markdown.patch)
===================================================================
--- markdown.patch	                        (rev 0)
+++ markdown.patch	2022-07-31 09:33:30 UTC (rev 1259252)
@@ -0,0 +1,13 @@
+diff --git a/python_jsonschema_objects/markdown_support.py b/python_jsonschema_objects/markdown_support.py
+index bb2ea1b..6b63899 100644
+--- a/python_jsonschema_objects/markdown_support.py
++++ b/python_jsonschema_objects/markdown_support.py
+@@ -45,7 +45,7 @@ class SpecialFencedCodeExtension(Extension):
+         """ Add FencedBlockPreprocessor to the Markdown instance. """
+         md.registerExtension(self)
+ 
+-        if markdown.version_info[0] >= 3:
++        if markdown.__version_info__[0] >= 3:
+             md.preprocessors.register(
+                 SpecialFencePreprocessor(md), "fenced_code_block", 10
+             )



More information about the arch-commits mailing list