[arch-commits] Commit in python-sphinxcontrib-bibtex/repos/community-any (2 files)

Konstantin Gizdov kgizdov at archlinux.org
Sun Jan 31 19:27:49 UTC 2021


    Date: Sunday, January 31, 2021 @ 19:27:49
  Author: kgizdov
Revision: 838549

archrelease: copy trunk to community-any

Added:
  python-sphinxcontrib-bibtex/repos/community-any/PKGBUILD
    (from rev 838548, python-sphinxcontrib-bibtex/trunk/PKGBUILD)
Deleted:
  python-sphinxcontrib-bibtex/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   68 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 33 insertions(+), 35 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-01-31 19:27:43 UTC (rev 838548)
+++ PKGBUILD	2021-01-31 19:27:49 UTC (rev 838549)
@@ -1,35 +0,0 @@
-# Maintainer: Konstantin Gizdov <arch at kge dot pw>
-# Co-Maintainer: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
-# Contributor: Patrice Peterson <runiq at archlinux dot us>
-
-pkgname=python-sphinxcontrib-bibtex
-pkgver=1.0.0
-pkgrel=3
-pkgdesc="A Sphinx extension for BibTeX style citations"
-arch=('any')
-url="https://sphinxcontrib-bibtex.readthedocs.org"
-license=('BSD')
-depends=('python-sphinx' 'python-pybtex' 'python-pybtex-docutils' 'python-oset')
-makedepends=('python-setuptools')
-checkdepends=('python-nose' 'python-sphinx-testing' 'python-coverage')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mcmtroffaes/sphinxcontrib-bibtex/archive/1.0.0.tar.gz")
-sha256sums=('964798058d91783bdd358c68e9f3a4e214a075dca91f8d91637f09ac467130d8')
-
-build() {
-  cd "$srcdir/sphinxcontrib-bibtex-$pkgver"
-  python setup.py build
-}
-
-check() {
-  cd "$srcdir/sphinxcontrib-bibtex-$pkgver"
-  # Some tests fail because of a warning: https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/163
-  local MY_YELLOW='\033[1;33m'
-  local MY_NOCOLOUR='\033[0m'
-  python setup.py nosetests || echo -e "${MY_YELLOW}WARNING: Some python3 tests failed!\n(https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/163)${MY_NOCOLOUR}"
-}
-
-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"
-}

Copied: python-sphinxcontrib-bibtex/repos/community-any/PKGBUILD (from rev 838548, python-sphinxcontrib-bibtex/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-01-31 19:27:49 UTC (rev 838549)
@@ -0,0 +1,33 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+# Co-Maintainer: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
+# Contributor: Patrice Peterson <runiq at archlinux dot us>
+
+_pkgname=sphinxcontrib-bibtex
+pkgname="python-${_pkgname}"
+pkgver=2.1.4
+pkgrel=1
+pkgdesc="A Sphinx extension for BibTeX style citations"
+arch=('any')
+url="https://sphinxcontrib-bibtex.readthedocs.org"
+license=('BSD')
+depends=('python-sphinx' 'python-pybtex' 'python-pybtex-docutils' 'python-docutils')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mcmtroffaes/${_pkgname}/archive/${pkgver}.tar.gz")
+sha256sums=('85a7a3fcd2bbe7b6f84f2d3c4495d50f2b0481cfd98c6e2efddc38464f520655')
+
+build() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  PYTHONPATH=".:${PYTHONPATH}" pytest
+}
+
+package() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  python 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