[arch-commits] Commit in python-pytest-django/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Feb 7 11:48:22 UTC 2019
Date: Thursday, February 7, 2019 @ 11:48:21
Author: felixonmars
Revision: 429850
archrelease: copy trunk to community-any
Added:
python-pytest-django/repos/community-any/PKGBUILD
(from rev 429849, python-pytest-django/trunk/PKGBUILD)
Deleted:
python-pytest-django/repos/community-any/PKGBUILD
----------+
PKGBUILD | 122 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 61 insertions(+), 61 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-02-07 11:48:01 UTC (rev 429849)
+++ PKGBUILD 2019-02-07 11:48:21 UTC (rev 429850)
@@ -1,61 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-pytest-django
-pkgname=('python-pytest-django' 'python2-pytest-django')
-pkgver=3.4.5
-pkgrel=1
-pkgdesc="A Django plugin for py.test"
-arch=('any')
-license=('BSD')
-url="https://github.com/pytest-dev/pytest-django"
-makedepends=('python-pytest' 'python2-pytest' 'python-setuptools-scm' 'python2-setuptools-scm'
- 'python2-pathlib')
-checkdepends=('python-django' 'python2-django' 'python-pytest-xdist' 'python2-pytest-xdist')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-django/archive/$pkgver.tar.gz")
-sha512sums=('864b3d4680f81c7a422a18f9d600a1cee87794567c16d97acd31bb3ee33e01d4af44a2ec0d3e97c8947c985ed0a7d6e6155506e62593e0c2d41e04553f525baf')
-
-prepare() {
- cp -a pytest-django-$pkgver{,-py2}
-
- export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-}
-
-build() {
- cd "$srcdir"/pytest-django-$pkgver
- python setup.py build
-
- cd "$srcdir"/pytest-django-$pkgver-py2
- python2 setup.py build
-}
-
-check() {
- # Hack entry points by installing it
-
- cd "$srcdir"/pytest-django-$pkgver
- python setup.py install --root="$PWD/tmp_install" --optimize=1
- PYTHONPATH="$PWD/tmp_install/usr/lib/python3.7/site-packages:$PYTHONPATH:$PWD" \
- DJANGO_SETTINGS_MODULE=pytest_django_test.settings_sqlite \
- py.test tests
-
- cd "$srcdir"/pytest-django-$pkgver-py2
- python2 setup.py install --root="$PWD/tmp_install" --optimize=1
- PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH:$PWD" \
- DJANGO_SETTINGS_MODULE=pytest_django_test.settings_sqlite \
- py.test2 tests
-}
-
-package_python-pytest-django() {
- depends=('python-pytest')
-
- cd pytest-django-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
- install -Dm664 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-pytest-django() {
- depends=('python2-pytest' 'python2-pathlib')
-
- cd pytest-django-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -Dm664 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-pytest-django/repos/community-any/PKGBUILD (from rev 429849, python-pytest-django/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-02-07 11:48:21 UTC (rev 429850)
@@ -0,0 +1,61 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pytest-django
+pkgname=('python-pytest-django' 'python2-pytest-django')
+pkgver=3.4.7
+pkgrel=1
+pkgdesc="A Django plugin for py.test"
+arch=('any')
+license=('BSD')
+url="https://github.com/pytest-dev/pytest-django"
+makedepends=('python-pytest' 'python2-pytest' 'python-setuptools-scm' 'python2-setuptools-scm'
+ 'python2-pathlib')
+checkdepends=('python-django' 'python2-django' 'python-pytest-xdist' 'python2-pytest-xdist')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-django/archive/$pkgver.tar.gz")
+sha512sums=('a2c521da0e38c7d48abd0c836d4644d1a290f55f3050ed00ea44886b6f20bc05d29e787d05de26c35995879569b3fcbe5e81db2c18d9e013dbb50f6305a64904')
+
+prepare() {
+ cp -a pytest-django-$pkgver{,-py2}
+
+ export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+}
+
+build() {
+ cd "$srcdir"/pytest-django-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/pytest-django-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ # Hack entry points by installing it
+
+ cd "$srcdir"/pytest-django-$pkgver
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python3.7/site-packages:$PYTHONPATH:$PWD" \
+ DJANGO_SETTINGS_MODULE=pytest_django_test.settings_sqlite \
+ py.test tests
+
+ cd "$srcdir"/pytest-django-$pkgver-py2
+ python2 setup.py install --root="$PWD/tmp_install" --optimize=1
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH:$PWD" \
+ DJANGO_SETTINGS_MODULE=pytest_django_test.settings_sqlite \
+ py.test2 tests
+}
+
+package_python-pytest-django() {
+ depends=('python-pytest')
+
+ cd pytest-django-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm664 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-pytest-django() {
+ depends=('python2-pytest' 'python2-pathlib')
+
+ cd pytest-django-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -Dm664 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list