summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartino Pilia2020-08-01 15:15:06 +0200
committerMartino Pilia2020-08-01 15:15:06 +0200
commit6d24bbdba135ad4fe93818f74bb333f19de257b3 (patch)
tree8525c3dd9bf2bfa84fbf305eb9ba245556beb945
parentc8775718af21cd2b934dc5a57366f27f0e80a278 (diff)
downloadaur-python-tensorboardx.tar.gz
Version 2.1
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD25
2 files changed, 28 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0f9415fb03b..b9dcb395815 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,23 @@
pkgbase = python-tensorboardx
pkgdesc = Tensorboard for PyTorch
- pkgver = 1.9
+ pkgver = 2.1
pkgrel = 1
url = https://github.com/lanpa/tensorboardX
arch = any
license = MIT
+ checkdepends = python-pytest
+ checkdepends = python-matplotlib
+ checkdepends = python-crc32c
makedepends = python-setuptools
makedepends = git
+ depends = python-numpy
depends = python-protobuf
depends = python-six
+ optdepends = python-crc32c: speed up
+ optdepends = python-soundfile: 200x speed up the add_audio() function
conflicts = python-tensorboard-git
- source = git+https://github.com/lanpa/tensorboardX.git#tag=v1.9
- sha256sums = SKIP
+ source = https://github.com/lanpa/tensorboardX/archive/v2.1.tar.gz
+ sha256sums = 2556d5601eab25b8fafa20aa0ea36c9c307be225122e68d6047b558edc302fa3
pkgname = python-tensorboardx
diff --git a/PKGBUILD b/PKGBUILD
index be9c8d16e7a..22ba159f350 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,33 @@
# Maintainer of this PKGBUILD file: Martino Pilia <martino.pilia@gmail.com>
_name=tensorboardX
pkgname=python-tensorboardx
-pkgver=1.9
+pkgver=2.1
pkgrel=1
pkgdesc="Tensorboard for PyTorch"
arch=('any')
url="https://github.com/lanpa/tensorboardX"
license=('MIT')
-depends=('python-protobuf' 'python-six')
+depends=(
+ 'python-numpy'
+ 'python-protobuf'
+ 'python-six'
+ )
makedepends=('python-setuptools' 'git')
+optdepends=(
+ 'python-crc32c: speed up'
+ 'python-soundfile: 200x speed up the add_audio() function'
+ )
+checkdepends=(
+ 'python-pytest'
+ 'python-matplotlib'
+ 'python-crc32c'
+ )
conflicts=('python-tensorboard-git')
-source+=("git+https://github.com/lanpa/tensorboardX.git#tag=v${pkgver}")
-sha256sums=('SKIP')
+source+=("https://github.com/lanpa/tensorboardX/archive/v${pkgver}.tar.gz")
+sha256sums=('2556d5601eab25b8fafa20aa0ea36c9c307be225122e68d6047b558edc302fa3')
package() {
- cd "$srcdir/$_name"
+ cd "${srcdir}/${_name}-${pkgver}"
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- python setup.py install --optimize=1 --root="$pkgdir"
+ python setup.py install --optimize=1 --root="${pkgdir}"
}