[arch-commits] Commit in python-pybtex/repos/community-any (PKGBUILD PKGBUILD)
Konstantin Gizdov
kgizdov at gemini.archlinux.org
Mon Jan 31 22:02:07 UTC 2022
Date: Monday, January 31, 2022 @ 22:02:07
Author: kgizdov
Revision: 1121506
archrelease: copy trunk to community-any
Added:
python-pybtex/repos/community-any/PKGBUILD
(from rev 1121505, python-pybtex/trunk/PKGBUILD)
Deleted:
python-pybtex/repos/community-any/PKGBUILD
----------+
PKGBUILD | 74 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 39 insertions(+), 35 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-31 22:02:01 UTC (rev 1121505)
+++ PKGBUILD 2022-01-31 22:02:07 UTC (rev 1121506)
@@ -1,35 +0,0 @@
-# Maintainer: Konstantin Gizdov <arch at kge dot pw>
-# Contributor: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
-# Contributor: Immae
-
-pkgname=python-pybtex
-pkgver=0.24.0
-pkgrel=3
-pkgdesc="A BibTeX-compatible bibliography processor written in Python"
-arch=("any")
-url="https://pybtex.org"
-license=("GPL")
-# Overridden in package_* functions
-makedepends=('python-setuptools')
-depends=('python' 'python-setuptools' 'python-six' 'python-yaml' 'python-latexcodec')
-checkdepends=('python-pytest')
-source=("https://pypi.io/packages/source/p/pybtex/pybtex-$pkgver.tar.gz")
-sha256sums=('818eae35b61733e5c007c3fcd2cfb75ed1bc8b4173c1f70b56cc4c0802d34755')
-
-build() {
- cd "$srcdir/pybtex-$pkgver"
- python setup.py build
-}
-
-check() {
- cd "$srcdir/pybtex-$pkgver"
- pytest
-}
-
-package() {
- cd "$srcdir/pybtex-$pkgver"
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
- # Files under site-packages/tests/ conflict with other python packages.
- rm -rf "$pkgdir"/usr/lib/python3.?/site-packages/tests/
-}
Copied: python-pybtex/repos/community-any/PKGBUILD (from rev 1121505, python-pybtex/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-01-31 22:02:07 UTC (rev 1121506)
@@ -0,0 +1,39 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+# Contributor: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
+# Contributor: Immae
+
+pkgname=python-pybtex
+pkgver=0.24.0
+pkgrel=4
+pkgdesc="A BibTeX-compatible bibliography processor written in Python"
+arch=("any")
+url="https://pybtex.org"
+license=("GPL")
+# Overridden in package_* functions
+makedepends=('python-setuptools')
+depends=('python' 'python-setuptools' 'python-six' 'python-yaml' 'python-latexcodec')
+checkdepends=('python-pytest')
+source=("https://pypi.io/packages/source/p/pybtex/pybtex-$pkgver.tar.gz")
+sha256sums=('818eae35b61733e5c007c3fcd2cfb75ed1bc8b4173c1f70b56cc4c0802d34755')
+
+get_pyver () {
+ python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))'
+}
+
+build() {
+ cd "${srcdir}/pybtex-${pkgver}"
+ python setup.py build
+}
+
+check() {
+ cd "${srcdir}/pybtex-${pkgver}"
+ pytest
+}
+
+package() {
+ cd "${srcdir}/pybtex-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+
+ # Files under site-packages/tests/ conflict with other python packages.
+ rm -rf "${pkgdir}/usr/lib/python$(get_pyver)"/site-packages/tests
+}
More information about the arch-commits
mailing list