diff options
author | Rafael Fontenelle | 2018-08-22 15:40:21 -0300 |
---|---|---|
committer | Rafael Fontenelle | 2018-08-22 15:40:21 -0300 |
commit | e09848759a8f021853273e5e34e71da4f0e808c3 (patch) | |
tree | bd1de4fae8e091e6d539ace231d7bc9d373c3ee2 | |
download | aur-e09848759a8f021853273e5e34e71da4f0e808c3.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 20 | ||||
-rw-r--r-- | PKGBUILD | 39 |
3 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a5c74d4aa71e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = python-pytest-datafiles + pkgdesc = py.test plugin to create a 'tmpdir' containing predefined files/directories. + pkgver = 1.0 + pkgrel = 1 + url = https://github.com/MobileDynasty/pytest-env + arch = any + license = MIT + makedepends = python-pytest + makedepends = python2-pytest + source = https://pypi.org/packages/source/p/pytest-datafiles/pytest-datafiles-1.0.tar.gz + sha256sums = bb6493c00e8cfb26e9a08f3cc6d5796ae1d168a5a3d09a0e31b3c65b5619a4f0 + +pkgname = python-pytest-datafiles + depends = python-pytest + +pkgname = python2-pytest-datafiles + depends = python2-pytest + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..1aace9926737 --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +# ignore everything ... +* + +# ... except itself +!.gitignore + +# ... except changes in package +!PKGBUILD +!.SRCINFO + +# ... except possible source files +!*.patch +!*.diff +!*.desktop +!*.png +!LICENSE + +# ... except files from PKGBUILD fields +!*.changelog +!*.install diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ff335c93d2b7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Rafael Fontenelle <rafaelff@gnome.org> +_name=pytest-datafiles +pkgname=('python-pytest-datafiles' 'python2-pytest-datafiles') +pkgbase=python-$_name +pkgver=1.0 +pkgrel=1 +pkgdesc="py.test plugin to create a 'tmpdir' containing predefined files/directories." +arch=(any) +url="https://github.com/MobileDynasty/pytest-env" +license=('MIT') +makedepends=(python-pytest python2-pytest) +source=("https://pypi.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz") +sha256sums=('bb6493c00e8cfb26e9a08f3cc6d5796ae1d168a5a3d09a0e31b3c65b5619a4f0') + +prepare() { + cp -a $_name-$pkgver{,-py2} +} + +build() { + cd "$srcdir/$_name-$pkgver" + python setup.py build + + cd "$srcdir/$_name-$pkgver-py2" + python2 setup.py build +} + +package_python-pytest-datafiles() { + depends=(python-pytest) + cd "$srcdir/$_name-$pkgver" + python setup.py install --root="$pkgdir/" --optimize=1 --skip-build + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-pytest-datafiles() { + depends=(python2-pytest) + cd "$srcdir/$_name-$pkgver-py2" + python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |