[arch-commits] Commit in python-flufl.i18n/repos/community-any (PKGBUILD PKGBUILD)
David Runge
dvzrv at archlinux.org
Mon Jul 13 21:08:29 UTC 2020
Date: Monday, July 13, 2020 @ 21:08:29
Author: dvzrv
Revision: 663539
archrelease: copy trunk to community-any
Added:
python-flufl.i18n/repos/community-any/PKGBUILD
(from rev 663538, python-flufl.i18n/trunk/PKGBUILD)
Deleted:
python-flufl.i18n/repos/community-any/PKGBUILD
----------+
PKGBUILD | 86 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 45 insertions(+), 41 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-13 21:08:19 UTC (rev 663538)
+++ PKGBUILD 2020-07-13 21:08:29 UTC (rev 663539)
@@ -1,41 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=flufl.i18n
-pkgname=python-flufl.i18n
-pkgver=2.0.2
-pkgrel=2
-pkgdesc="A high level API for internationalization"
-arch=('any')
-url="https://flufli18n.readthedocs.io/en/latest/"
-license=('Apache')
-depends=('python-atpublic')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest')
-provides=('python-flufl-i18n')
-replaces=('python-flufl-i18n')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('05d9283bed456ee8d48704dc595f514e13b0c74096df177ed49bf178987baeee014ddc4331cc7d36edffbee1dcb58fcae152c2cb317b7ce73d9630864b98f1cd')
-
-prepare() {
- mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
-}
-
-build() {
- cd "$pkgname-$pkgver"
- python setup.py build
-}
-
-check() {
- cd "$pkgname-$pkgver"
- export PYTHONPATH="build:${PYTHONPATH}"
- pytest -v
-}
-
-package() {
- cd "$pkgname-$pkgver"
- python setup.py install --skip-build \
- --optimize=1 \
- --prefix=/usr \
- --root="${pkgdir}"
- install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-}
Copied: python-flufl.i18n/repos/community-any/PKGBUILD (from rev 663538, python-flufl.i18n/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-07-13 21:08:29 UTC (rev 663539)
@@ -0,0 +1,45 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=flufl.i18n
+pkgname=python-flufl.i18n
+pkgver=3.0
+pkgrel=1
+pkgdesc="A high level API for internationalization"
+arch=('any')
+url="https://flufli18n.readthedocs.io/en/latest/"
+license=('Apache')
+depends=('python-atpublic')
+makedepends=('python-setuptools')
+checkdepends=('python-sybil' 'python-pytest')
+provides=('python-flufl-i18n')
+replaces=('python-flufl-i18n')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('97191353718c2adeff88fc23e8c1de9893f64e836cc5d69141d29a1d163d0cc07b1bfc811e761bc6555d7716c4028843e143663f951c7a81e1e4dd4d2be631a2')
+b2sums=('5bb3e315b6114388619cac51ddcd1f114b707474cc1dfa15ec6d53163a831dfab391ef415432edacb7d3e5d98b61c259c5499107909ba1d425e4c68ca4b96e89')
+
+prepare() {
+ mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+ cd "$pkgname-$pkgver"
+ # we don't need code coverage during tests
+ sed -e '/addopts/d' -i setup.cfg
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ export PYTHONPATH="build:${PYTHONPATH}"
+ pytest -v
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
More information about the arch-commits
mailing list