[arch-commits] Commit in python-markups/trunk (PKGBUILD)

Eli Schwartz eschwartz at archlinux.org
Tue Jul 3 06:34:59 UTC 2018


    Date: Tuesday, July 3, 2018 @ 06:34:59
  Author: eschwartz
Revision: 350460

upgpkg: python-markups 3.0.0-3

python 3.7 rebuild
add testsuite, optdepends

Modified:
  python-markups/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-03 06:34:27 UTC (rev 350459)
+++ PKGBUILD	2018-07-03 06:34:59 UTC (rev 350460)
@@ -6,12 +6,13 @@
 pkgbase=python-markups
 pkgname=('python-markups' 'python2-markups')
 pkgver=3.0.0
-pkgrel=2
+pkgrel=3
 pkgdesc='Wrapper around various text markups'
 arch=('any')
 url='https://launchpad.net/python-markups'
 license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-markdown-math' 'python2-markdown-math')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-markdown-math' 'python2-markdown-math'
+             'python-docutils' 'python2-docutils' 'python-pygments' 'python2-pygments')
 source=($pkgname-$pkgver.tar.gz::http://github.com/retext-project/pymarkups/archive/$pkgver.tar.gz)
 source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"{,.asc})
 sha256sums=('1ea19458dfca6a4562044e701aa8698089a0c659fc535689ed260f89a04f8d39'
@@ -25,8 +26,17 @@
   python2 setup.py build
 }
 
+check() {
+  cd "${srcdir}"/${_pkgname}-${pkgver}
+
+  python setup.py test
+  python2 setup.py test
+}
+
 package_python-markups() {
   depends=('python-markdown-math')
+  optdepends=('python-docutils: for reStructuredText language support'
+              'python-pygments: for highlighting output style')
 
   cd "${srcdir}"/${_pkgname}-${pkgver}
   python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
@@ -35,6 +45,8 @@
 
 package_python2-markups() {
   depends=('python2-markdown-math')
+  optdepends=('python2-docutils: for reStructuredText language support'
+              'python2-pygments: for highlighting output style')
 
   cd "${srcdir}"/${_pkgname}-${pkgver}
   python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build



More information about the arch-commits mailing list