[arch-commits] Commit in python-pytest-celery/trunk (PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Mon Aug 1 07:50:59 UTC 2022
Date: Monday, August 1, 2022 @ 07:50:58
Author: arojas
Revision: 1259594
upgpkg: python-pytest-celery 0.0.0-4: drop dephell usage
Modified:
python-pytest-celery/trunk/PKGBUILD
----------+
PKGBUILD | 21 ++++-----------------
1 file changed, 4 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-01 07:48:46 UTC (rev 1259593)
+++ PKGBUILD 2022-08-01 07:50:58 UTC (rev 1259594)
@@ -2,37 +2,24 @@
pkgname=python-pytest-celery
pkgver=0.0.0
-pkgrel=3
+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-dephell')
+makedepends=('python-build' 'python-installer' 'python-flit-core')
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
+ python -m build --wheel --no-isolation
}
package() {
cd pytest-celery-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
+ python -m installer --destdir="$pkgdir" dist/*.whl
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list