[arch-commits] Commit in django/repos (testing-any testing-any/PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Thu Aug 6 19:02:32 UTC 2020


    Date: Thursday, August 6, 2020 @ 19:02:31
  Author: jelle
Revision: 393214

archrelease: copy trunk to testing-any

Added:
  django/repos/testing-any/
  django/repos/testing-any/PKGBUILD
    (from rev 393213, django/trunk/PKGBUILD)

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

Copied: django/repos/testing-any/PKGBUILD (from rev 393213, django/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2020-08-06 19:02:31 UTC (rev 393214)
@@ -0,0 +1,48 @@
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Dan McGee <dan at archlinux.org>
+# Contributor: Shahar Weiss <sweiss4 at gmx.net>
+
+pkgbase=django
+pkgname=('python-django')
+pkgver=3.1
+pkgrel=1
+pkgdesc="A high-level Python Web framework that encourages rapid development and clean design"
+arch=('any')
+license=('BSD')
+url="http://www.djangoproject.com/"
+checkdepends=('python-pytest' 'python-tblib')
+makedepends=('python' 'python-setuptools')
+depends=('python' 'python-setuptools' 'python-pytz' 'python-sqlparse' 'python-asgiref')
+optdepends=('python-psycopg2: for PostgreSQL backend')
+source=("Django-$pkgver.tar.gz::https://www.djangoproject.com/download/$pkgver/tarball/")
+sha512sums=('31f0821966f4ebc6b2a719b69f1137a32a7228414221e8938a66c9b940465c008761bd380ba9ea603e3693d38c233d6f23afe0cbe5647eb2478844ce2d0e7fd4')
+
+build() {
+  cd "$srcdir/Django-$pkgver"
+  python setup.py build
+}
+
+package_python-django() {
+  cd "$srcdir/Django-$pkgver"
+
+  # fix reproducibility of .pyc files
+  export PYTHONHASHSEED=0
+
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  ln -s django-admin.py "$pkgdir"/usr/bin/django-admin3.py
+  ln -s django-admin "$pkgdir"/usr/bin/django-admin3
+  install -Dm644 extras/django_bash_completion \
+    "$pkgdir"/usr/share/bash-completion/completions/django-admin.py
+  ln -s django-admin.py \
+    "$pkgdir"/usr/share/bash-completion/completions/django-admin
+  ln -s django-admin.py \
+    "$pkgdir"/usr/share/bash-completion/completions/manage.py
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+check() {
+  cd "$srcdir/Django-$pkgver"
+  PYTHONPATH="$PWD" python tests/runtests.py || echo 'tests failed'
+}



More information about the arch-commits mailing list