summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartino Pilia2018-09-28 14:55:30 +0200
committerMartino Pilia2018-09-28 14:55:30 +0200
commitd275ce12e45913c7b09603095d8c8aa7cec6c9f1 (patch)
treebe7508ab70d08528a577cb5d0227b86f84877fb3
downloadaur-d275ce12e45913c7b09603095d8c8aa7cec6c9f1.tar.gz
package submission
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD19
2 files changed, 35 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3874bcd1191
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = python-tensorboardx
+ pkgdesc = Tensorboard for PyTorch
+ pkgver = 1.4
+ pkgrel = 1
+ url = https://github.com/lanpa/tensorboardX
+ arch = any
+ license = MIT
+ makedepends = python-pytorch
+ makedepends = python-torchvision
+ makedepends = tensorboard
+ depends = python
+ source = https://files.pythonhosted.org/packages/source/t/tensorboardX/tensorboardX-1.4.tar.gz
+ sha256sums = bacf2825c8fb9c40bea22c50796fc4afe5bf11ff5f5c3b7ad7c933ad034b6fae
+
+pkgname = python-tensorboardx
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4ca0769e8d8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,19 @@
+# Maintainer of this PKGBUILD file: Martino Pilia <martino.pilia@gmail.com>
+_name=tensorboardX
+pkgname=python-tensorboardx
+pkgver=1.4
+pkgrel=1
+pkgdesc="Tensorboard for PyTorch"
+arch=('any')
+url="https://github.com/lanpa/tensorboardX"
+license=('MIT')
+depends=('python')
+makedepends=('python-pytorch' 'python-torchvision' 'tensorboard')
+source+=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha256sums=('bacf2825c8fb9c40bea22c50796fc4afe5bf11ff5f5c3b7ad7c933ad034b6fae')
+
+package() {
+ cd "$srcdir/$_name-$pkgver"
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ python setup.py install --optimize=1 --root="$pkgdir"
+}