[arch-commits] Commit in python-pytest-celery/repos/community-any (PKGBUILD PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Mon Aug 1 07:51:07 UTC 2022


    Date: Monday, August 1, 2022 @ 07:51:07
  Author: arojas
Revision: 1259595

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   65 ++++++++++++++++++++++++-------------------------------------
 1 file changed, 26 insertions(+), 39 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-01 07:50:58 UTC (rev 1259594)
+++ PKGBUILD	2022-08-01 07:51:07 UTC (rev 1259595)
@@ -1,39 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-pytest-celery
-pkgver=0.0.0
-pkgrel=3
-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=('5fc9c52da674ec2fcf55d6ebf278aec166877c5bd7962c786e5432e77d15132247021e4552001aad19bd7827e5b16256062eade43a8fc59c5b52e264d06b1cae')
-
-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
-
-  # dephell does not generate py_modules into setup.py, so the resulting installation is missing
-  # the module source code itself. Patching it here as a workaround until we fix it properly.
-  sed -i '/author_email=/a \    py_modules=["pytest_celery"],' 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:

Copied: python-pytest-celery/repos/community-any/PKGBUILD (from rev 1259594, python-pytest-celery/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-01 07:51:07 UTC (rev 1259595)
@@ -0,0 +1,26 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-celery
+pkgver=0.0.0
+pkgrel=4
+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-build' 'python-installer' 'python-flit-core')
+source=("https://pypi.io/packages/source/p/pytest-celery/pytest-celery-$pkgver.tar.gz")
+sha512sums=('5fc9c52da674ec2fcf55d6ebf278aec166877c5bd7962c786e5432e77d15132247021e4552001aad19bd7827e5b16256062eade43a8fc59c5b52e264d06b1cae')
+
+build() {
+  cd pytest-celery-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+package() {
+  cd pytest-celery-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  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