[arch-commits] Commit in python-pytest-celery/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu Sep 24 21:39:38 UTC 2020


    Date: Thursday, September 24, 2020 @ 21:39:38
  Author: felixonmars
Revision: 711932

archrelease: copy trunk to community-any

Added:
  python-pytest-celery/repos/community-any/
  python-pytest-celery/repos/community-any/PKGBUILD
    (from rev 711931, python-pytest-celery/trunk/PKGBUILD)

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

Copied: python-pytest-celery/repos/community-any/PKGBUILD (from rev 711931, python-pytest-celery/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-09-24 21:39:38 UTC (rev 711932)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-celery
+pkgver=0.0.0a1
+pkgrel=1
+pkgdesc='A shim pytest plugin to enable celery.contrib.pytest'
+arch=('any')
+license=('BSD')
+url='https://github.com/celery/pytest-celery'
+depends=('python-celery')
+makedepends=('python-dephell')
+source=("https://pypi.io/packages/source/p/pytest-celery/pytest-celery-$pkgver.tar.gz")
+sha512sums=('ea8ef26aaa5dd5c04608cb01bedb4946bb6712d08203e5f9b1b9b2b1a9e49e7a550466d7a9dd896fb5d813960cee35eed139099952589cdf21e03dadd7e2a20f')
+
+prepare() {
+  cd pytest-celery-$pkgver
+
+  # poetry-generated setup.py is badly broken in several ways, including
+  # distribution of tests in the built package as well as using distutils for
+  # bad metadata. See https://github.com/sdispater/poetry/issues/866
+  dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build() {
+  cd pytest-celery-$pkgver
+  python setup.py build
+}
+
+package() {
+  cd pytest-celery-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list