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

Felix Yan felixonmars at archlinux.org
Tue Nov 10 03:59:37 UTC 2020


    Date: Tuesday, November 10, 2020 @ 03:59:37
  Author: felixonmars
Revision: 748324

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pytest-celery/repos/community-staging-any/PKGBUILD (from rev 748323, python-pytest-celery/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 03:59:37 UTC (rev 748324)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-celery
+pkgver=0.0.0a1
+pkgrel=2
+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