Date: Thursday, October 20, 2022 @ 18:36:22
Author: dvzrv
Revision: 1333002
archrelease: copy trunk to community-testing-any
Added:
python-django-mailman3/repos/community-testing-any/
python-django-mailman3/repos/community-testing-any/PKGBUILD
(from rev 1333001, python-django-mailman3/trunk/PKGBUILD)
python-django-mailman3/repos/community-testing-any/keys/
----------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
Copied: python-django-mailman3/repos/community-testing-any/PKGBUILD (from rev
1333001, python-django-mailman3/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2022-10-20 18:36:22 UTC (rev 1333002)
@@ -0,0 +1,46 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=django-mailman3
+pkgname=python-django-mailman3
+pkgver=1.3.7.r96.gbf4b154
+_commit=bf4b154f04e894dfc60ca58a8de321657a9759e1 # somewhere on master post
1.3.7
+pkgrel=1
+pkgdesc="Libraries and templates to Django-based interfaces interacting with
Mailman"
+arch=(any)
+url="https://gitlab.com/mailman/django-mailman3"
+license=(GPL3)
+depends=(python-django python-django-allauth python-django-gravatar
+python-mailmanclient python-pytz)
+makedepends=(git python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest)
+source=(git+https://gitlab.com/mailman/django-mailman3#commit=$_commit)
+sha512sums=('SKIP')
+b2sums=('SKIP')
+validpgpkeys=('541EA0448453394FF77A0ECC9D9B2BA061D0A67C') # Abhilash Raj
<[email protected]>
+
+pkgver() {
+ cd $_name
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/v//g;s/-/./g'
+}
+
+build() {
+ cd $_name
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd $_name
+ export PYTHONPATH="build:$PYTHONPATH"
+ django-admin test --settings=django_mailman3.tests.settings_test
django_mailman3
+}
+
+package() {
+ local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
+
+ cd $_name
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ # remove tests
+ rm -frv "$pkgdir/$site_packages/django_mailman3/tests/"
+
+ install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname"
+}