[arch-commits] Commit in python-flufl.i18n/repos/community-any (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Thu Oct 22 17:38:35 UTC 2020


    Date: Thursday, October 22, 2020 @ 17:38:35
  Author: dvzrv
Revision: 729305

archrelease: copy trunk to community-any

Added:
  python-flufl.i18n/repos/community-any/PKGBUILD
    (from rev 729304, python-flufl.i18n/trunk/PKGBUILD)
Deleted:
  python-flufl.i18n/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   95 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 47 insertions(+), 48 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-22 17:38:27 UTC (rev 729304)
+++ PKGBUILD	2020-10-22 17:38:35 UTC (rev 729305)
@@ -1,48 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=flufl.i18n
-pkgname=python-flufl.i18n
-pkgver=3.1
-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=('048b9a53598e42bc7b2733375aaa7c149017a844cf5bd5eb77d058593a2c4efdea66e7341ef300210c9c2e0c0ad265a513e3a40ecfb138e3f81475d20a03fc88')
-b2sums=('93e169ca72217954bf67aa7bc912538126616b4f8f1d1892918a329124df33a41438f7bf79b919c6de39d46a25605f3c13b9ca0bd79dc4129d113cb478541c62')
-
-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() {
-  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-                          --optimize=1 \
-                          --root="${pkgdir}"
-  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
-  # upstream accidentally added tests top-level:
-  # https://gitlab.com/warsaw/flufl.i18n/-/issues/5
-  rm -rvf "${pkgdir}/${site_packages}/test"*
-}

Copied: python-flufl.i18n/repos/community-any/PKGBUILD (from rev 729304, python-flufl.i18n/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-10-22 17:38:35 UTC (rev 729305)
@@ -0,0 +1,47 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=flufl.i18n
+pkgname=python-flufl.i18n
+pkgver=3.1.2
+pkgrel=1
+pkgdesc="A high level API for internationalization"
+arch=('any')
+url="https://gitlab.com/warsaw/flufl.i18n"
+license=('Apache')
+depends=('python-atpublic')
+makedepends=('python-setuptools')
+checkdepends=('python-sybil' 'python-pytest')
+provides=('python-flufl-i18n')
+replaces=('python-flufl-i18n')
+# upstream removed tests from the sdist tarball: https://gitlab.com/warsaw/flufl.i18n/-/issues/8
+# source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+source=("https://gitlab.com/warsaw/${_name}/-/archive/${pkgver}/${_name}-${pkgver}.tar.gz")
+sha512sums=('560ca3d28708a1a2203f95c8ae6cc8ad69849884493508c63d4ac5824d4e7eacafbb8dddca2a815a26d9af5c1af62d126031e8a5db4378950b4ea39636d81407')
+b2sums=('0ea7d45322c1dcf7e743abe8371f33981001e36e5b21fbccd9b8bdd0964a2ceedacc80eafda1971b5a55bf0989ad1a3ef512cd2e9467954fa06ec2768219e0e6')
+
+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() {
+  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+                          --optimize=1 \
+                          --root="${pkgdir}"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list