summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Scholl2015-07-06 18:59:12 -0400
committerDavid Scholl2015-07-06 18:59:12 -0400
commit6d0b67689bdf3c34422923a88ceb2e9509aa3494 (patch)
tree7d0c04125cfc891533ef323ed3f5a4e42bc214a4
downloadaur-6d0b67689bdf3c34422923a88ceb2e9509aa3494.tar.gz
Initial import
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD47
2 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d06613604ee
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = python-tablib
+ pkgdesc = Format-agnostic tabular data library (XLS, JSON, YAML, CSV)
+ pkgver = 0.10.0
+ pkgrel = 2
+ url = http://python-tablib.org
+ arch = any
+ license = MIT
+ checkdepends = python-pytest
+ checkdepends = python2-pytest
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ source = https://pypi.python.org/packages/source/t/tablib/tablib-0.10.0.tar.gz
+ sha256sums = 41c2dad7f491f5557e22783a9af81bed62f7b6fb0d7afd4c2ee301f3eb428c93
+
+pkgname = python-tablib
+ depends = python
+
+pkgname = python2-tablib
+ depends = python2
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e4b3478b89f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: David Scholl <djscholl at gmail dot com>
+_module="tablib"
+pkgname=("python-${_module}" "python2-${_module}")
+pkgver="0.10.0"
+pkgrel="2"
+pkgdesc="Format-agnostic tabular data library (XLS, JSON, YAML, CSV)"
+arch=("any")
+url="http://python-tablib.org"
+license=("MIT")
+makedepends=("python-setuptools" "python2-setuptools")
+checkdepends=("python-pytest" "python2-pytest")
+source=("https://pypi.python.org/packages/source/${_module:0:1}/${_module}/${_module}-${pkgver}.tar.gz")
+sha256sums=('41c2dad7f491f5557e22783a9af81bed62f7b6fb0d7afd4c2ee301f3eb428c93')
+
+prepare() {
+ cp -a "${srcdir}/${_module}-${pkgver}"{,-python2}
+}
+
+build() {
+ cd "${srcdir}/${_module}-${pkgver}"
+ python setup.py build
+ cd "${srcdir}/${_module}-${pkgver}-python2"
+ python2 setup.py build
+}
+
+check() {
+ cd "${srcdir}/${_module}-${pkgver}"
+ PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test
+ cd "${srcdir}/${_module}-${pkgver}-python2"
+ PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test2
+}
+
+package_python-tablib() {
+ depends=("python")
+ cd "${srcdir}/${_module}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -D -m644 "${srcdir}/${_module}-${pkgver}/LICENSE" \
+ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-tablib() {
+ depends=("python2")
+ cd "${srcdir}/${_module}-${pkgver}-python2"
+ python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -D -m644 "${srcdir}/${_module}-${pkgver}-python2/LICENSE" \
+ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}