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

Baptiste Jonglez zorun at archlinux.org
Sun Apr 14 10:36:46 UTC 2019


    Date: Sunday, April 14, 2019 @ 10:36:45
  Author: zorun
Revision: 451571

upgpkg: python-sphinxcontrib-bibtex 0.4.2-2

Modified:
  python-sphinxcontrib-bibtex/trunk/PKGBUILD

----------+
 PKGBUILD |   38 +++++++-------------------------------
 1 file changed, 7 insertions(+), 31 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-04-14 10:35:53 UTC (rev 451570)
+++ PKGBUILD	2019-04-14 10:36:45 UTC (rev 451571)
@@ -1,56 +1,32 @@
 # Maintainer: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
 # Contributor: Patrice Peterson <runiq at archlinux dot us>
 
-pkgbase=python-sphinxcontrib-bibtex
-pkgname=(python-sphinxcontrib-bibtex python2-sphinxcontrib-bibtex)
+pkgname=python-sphinxcontrib-bibtex
 pkgver=0.4.2
-pkgrel=1
+pkgrel=2
 pkgdesc="A Sphinx extension for BibTeX style citations"
 arch=('any')
 url="http://sphinxcontrib-bibtex.readthedocs.org"
 license=('BSD')
-depends=('python-six' 'python-sphinx' 'python-pybtex' 'python-pybtex-docutils' 'python-oset'
-         'python2-six' 'python2-sphinx' 'python2-pybtex' 'python2-pybtex-docutils' 'python2-oset')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-nose' 'python-sphinx-testing'
-              'python2-nose' 'python2-sphinx-testing')
+depends=('python-six' 'python-sphinx' 'python-pybtex' 'python-pybtex-docutils' 'python-oset')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'python-sphinx-testing')
 source=("https://pypi.io/packages/source/s/sphinxcontrib-bibtex/sphinxcontrib-bibtex-$pkgver.tar.gz")
 sha256sums=('169afb3a3485775e5473934a0fdff1780e8bdcdd44db7ed286044a074331c729')
 
-prepare() {
-  cp -a sphinxcontrib-bibtex-$pkgver{,-py2}
-}
-
 build() {
   cd "$srcdir/sphinxcontrib-bibtex-$pkgver"
   python setup.py build
-
-  cd "$srcdir/sphinxcontrib-bibtex-$pkgver-py2"
-  python2 setup.py build
 }
 
 check() {
   cd "$srcdir/sphinxcontrib-bibtex-$pkgver"
-  # Some tests fail because of a warning
+  # Some tests fail because of a warning: https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/163
   python setup.py nosetests || warning "Some python3 tests failed"
-
-  cd "$srcdir/sphinxcontrib-bibtex-$pkgver-py2"
-  # Some tests fail because of a warning
-  python2 setup.py nosetests || warning "Some python2 tests failed"
 }
 
-package_python-sphinxcontrib-bibtex() {
-  depends=('python-six' 'python-sphinx' 'python-pybtex' 'python-pybtex-docutils' 'python-oset')
-
+package() {
   cd "$srcdir/sphinxcontrib-bibtex-$pkgver"
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
   install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
-
-package_python2-sphinxcontrib-bibtex() {
-  depends=('python2-six' 'python2-sphinx' 'python2-pybtex' 'python2-pybtex-docutils' 'python2-oset')
-
-  cd "$srcdir/sphinxcontrib-bibtex-$pkgver-py2"
-  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}



More information about the arch-commits mailing list