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

Konstantin Gizdov kgizdov at gemini.archlinux.org
Thu Aug 25 17:21:12 UTC 2022


    Date: Thursday, August 25, 2022 @ 17:21:11
  Author: kgizdov
Revision: 1279517

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-25 17:21:05 UTC (rev 1279516)
+++ PKGBUILD	2022-08-25 17:21:11 UTC (rev 1279517)
@@ -1,33 +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=sphinxcontrib-bibtex
-pkgname="python-${_pkgname}"
-pkgver=2.4.2
-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' 'python-numpydoc')
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mcmtroffaes/${_pkgname}/archive/${pkgver}.tar.gz")
-sha256sums=('4f69e266c1ebb3cd1a2912be790f905359ee3e02f38d8d1f32bf16cc7b127ab1')
-
-build() {
-  cd "${srcdir}/${_pkgname}-${pkgver}"
-  python setup.py build
-}
-
-check() {
-  cd "${srcdir}/${_pkgname}-${pkgver}"
-  PYTHONPATH=".:./src:${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"
-}

Copied: python-sphinxcontrib-bibtex/repos/community-any/PKGBUILD (from rev 1279516, python-sphinxcontrib-bibtex/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-25 17:21:11 UTC (rev 1279517)
@@ -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.5.0
+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-scm' 'python-build' 'python-installer' 'python-wheel')
+checkdepends=('python-pytest' 'python-pytest-cov' 'python-numpydoc')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mcmtroffaes/${_pkgname}/archive/${pkgver}.tar.gz")
+b2sums=('9018b99064ac02efabcf9a0470a04c62ae7fa3d6e17f919e06249c5c882f85b1324e40e88f2491f0a9547e7a40a0183a56757c51a29a609f9dd93a3df00990f5')
+
+build() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  PYTHONPATH="${PWD}/build/lib:${PWD}/src:${PYTHONPATH}" pytest -k 'not test_citation_rinoh'
+}
+
+package() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  python -m installer --destdir="${pkgdir}" dist/*.whl
+  install -Dm644 LICENSE.rst "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list