Date: Sunday, July 17, 2022 @ 23:23:30 Author: svenstaro Revision: 1254388
archrelease: copy trunk to community-x86_64 Added: tensorboard/repos/community-x86_64/PKGBUILD (from rev 1254387, tensorboard/trunk/PKGBUILD) Deleted: tensorboard/repos/community-x86_64/PKGBUILD tensorboard/repos/community-x86_64/bazel.patch tensorboard/repos/community-x86_64/oauthlib-version.patch ------------------------+ PKGBUILD | 129 ++++++++++++++++++++++------------------------- bazel.patch | 31 ----------- oauthlib-version.patch | 12 ---- 3 files changed, 61 insertions(+), 111 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-07-17 23:23:05 UTC (rev 1254387) +++ PKGBUILD 2022-07-17 23:23:30 UTC (rev 1254388) @@ -1,68 +0,0 @@ -# Maintainer: Sven-Hendrik Haase <svenst...@archlinux.org> -# Contributor: Konstantin Gizdov <arch at kge dot pw> - -pkgname=tensorboard -pkgver=2.9.1 -pkgrel=1 -pkgdesc="TensorFlow's Visualization Toolkit" -url='https://github.com/tensorflow/tensorboard' -arch=('x86_64') -license=('APACHE') -depends=('python' 'python-werkzeug' 'python-numpy' 'python-bleach' 'python-wheel' 'python-markdown' - 'python-html5lib' 'python-protobuf' 'python-grpcio' 'python-google-auth-oauthlib' - 'python-tensorboard_plugin_wit' 'absl-py') -makedepends=('bazel' 'python-setuptools' 'tree' 'rust' 'python-pip') -optdepends=('python-tensorflow: advanced features for TensorBoard') -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tensorflow/tensorboard/archive/${pkgver}.tar.gz" - oauthlib-version.patch - bazel.patch) -options=('!lto') -sha512sums=('795964f63f0d657b3dc9946f1ecbddf1b61605f7f229237396462736f38032630a3426841f1c2ce9f4b8eda7e9c5f7e140fce367af59063d655318be64035fcd' - 'c85bf0c6e67a19bce0af3ad2dd65851991ba15a6bb7f96433650d5a2725706e015a34166656cfb76874d2498067e6c56bdabb07d114fd9299436f68ebdf50ec3' - 'b85a33ea074c1a6022fd9c71a0d2477953400c49a1ddbad149ed356061a70f5c60b26b65dae272d1f88c8f6b22b6a12fd1a9a32322876b38d173201f87ab6846') - -prepare() { - cd "$pkgname-$pkgver" - # FS#74460 - patch -Np1 -i "${srcdir}"/oauthlib-version.patch - # fix build - #patch -Np1 -i "${srcdir}"/bazel.patch -} - -build() { - cd "$pkgname-$pkgver" - - PYTHONWARNINGS=ignore bazel build //tensorboard - bazel build //tensorboard/pip_package:build_pip_package - - cd tensorboard/data/server - cargo build --release - python pip_package/build.py --server-binary target/release/rustboard --out-dir /tmp - cd "$srcdir/$pkgname-$pkgver" - - mkdir pypackage - cp -R bazel-bin/tensorboard/pip_package/build_pip_package.runfiles/org_tensorflow_tensorboard/external pypackage - cp -R bazel-bin/tensorboard/pip_package/build_pip_package.runfiles/org_tensorflow_tensorboard/tensorboard pypackage - cp tensorboard/pip_package/{README.rst,MANIFEST.in,setup.py,requirements.txt} pypackage - cp README.md pypackage - cd pypackage - python setup.py build -} - -package() { - cd "$pkgname-$pkgver" - - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - - pip install --ignore-installed --root "$pkgdir" /tmp/*.whl - - cd pypackage - python setup.py install --root="$pkgdir" --optimize=1 - - rm -r "$pkgdir"/usr/lib/python3.10/site-packages/external/ - - _requires="$pkgdir"/usr/lib/python3.10/site-packages/tensorboard-${pkgver}-py3.10.egg-info/requires.txt - sed -i 's/tensorboard-data-server.*/tensorboard-data-server/' ${_requires} -} - -# vim:set ts=2 sw=2 et: Copied: tensorboard/repos/community-x86_64/PKGBUILD (from rev 1254387, tensorboard/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-07-17 23:23:30 UTC (rev 1254388) @@ -0,0 +1,61 @@ +# Maintainer: Sven-Hendrik Haase <svenst...@archlinux.org> +# Contributor: Konstantin Gizdov <arch at kge dot pw> + +pkgname=tensorboard +pkgver=2.9.1 +pkgrel=2 +pkgdesc="TensorFlow's Visualization Toolkit" +url='https://github.com/tensorflow/tensorboard' +arch=('x86_64') +license=('APACHE') +depends=('python' 'python-werkzeug' 'python-numpy' 'python-bleach' 'python-wheel' 'python-markdown' + 'python-html5lib' 'python-protobuf' 'python-grpcio' 'python-google-auth-oauthlib' + 'python-tensorboard_plugin_wit' 'absl-py') +makedepends=('bazel' 'python-setuptools' 'tree' 'rust' 'python-pip') +optdepends=('python-tensorflow: advanced features for TensorBoard') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tensorflow/tensorboard/archive/${pkgver}.tar.gz") +options=('!lto') +sha512sums=('795964f63f0d657b3dc9946f1ecbddf1b61605f7f229237396462736f38032630a3426841f1c2ce9f4b8eda7e9c5f7e140fce367af59063d655318be64035fcd') + +prepare() { + cd "$pkgname-$pkgver" + + # Remove fixed version requirements as we usually ship more up-to-date + # versions than are specified and it tends to work fine anyhow. + sed -i "s/[<>=].*//" tensorboard/pip_package/requirements.txt +} + +build() { + cd "$pkgname-$pkgver" + + PYTHONWARNINGS=ignore bazel build //tensorboard + bazel build //tensorboard/pip_package:build_pip_package + + cd tensorboard/data/server + cargo build --release + python pip_package/build.py --server-binary target/release/rustboard --out-dir /tmp + cd "$srcdir/$pkgname-$pkgver" + + mkdir pypackage + cp -R bazel-bin/tensorboard/pip_package/build_pip_package.runfiles/org_tensorflow_tensorboard/external pypackage + cp -R bazel-bin/tensorboard/pip_package/build_pip_package.runfiles/org_tensorflow_tensorboard/tensorboard pypackage + cp tensorboard/pip_package/{README.rst,MANIFEST.in,setup.py,requirements.txt} pypackage + cp README.md pypackage + cd pypackage + python setup.py build +} + +package() { + cd "$pkgname-$pkgver" + + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + pip install --ignore-installed --root "$pkgdir" /tmp/*.whl + + cd pypackage + python setup.py install --root="$pkgdir" --optimize=1 + + rm -r "$pkgdir"/usr/lib/python3.10/site-packages/external/ +} + +# vim:set ts=2 sw=2 et: Deleted: bazel.patch =================================================================== --- bazel.patch 2022-07-17 23:23:05 UTC (rev 1254387) +++ bazel.patch 2022-07-17 23:23:30 UTC (rev 1254388) @@ -1,31 +0,0 @@ -diff --color -aur tensorboard-2.8.0-old/WORKSPACE tensorboard-2.8.0-new/WORKSPACE ---- tensorboard-2.8.0-old/WORKSPACE 2022-01-20 22:45:42.000000000 +0200 -+++ tensorboard-2.8.0-new/WORKSPACE 2022-04-20 16:09:22.681666037 +0300 -@@ -3,6 +3,14 @@ - load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - - http_archive( -+ name = "build_bazel_rules_apple", -+ sha256 = "0052d452af7742c8f3a4e0929763388a66403de363775db7e90adecb2ba4944b", -+ urls = [ -+ "https://github.com/bazelbuild/rules_apple/releases/download/0.31.3/rules_apple.0.31.3.tar.gz", -+ ], -+) -+ -+http_archive( - name = "io_bazel_rules_webtesting", - sha256 = "9bb461d5ef08e850025480bab185fd269242d4e533bca75bfb748001ceb343c3", - urls = [ -@@ -39,10 +47,9 @@ - - http_archive( - name = "build_bazel_rules_nodejs", -- sha256 = "1134ec9b7baee008f1d54f0483049a97e53a57cd3913ec9d6db625549c98395a", -+ sha256 = "e79c08a488cc5ac40981987d862c7320cee8741122a2649e9b08e850b6f20442", - urls = [ -- "http://mirror.tensorflow.org/github.com/bazelbuild/rules_nodejs/releases/download/3.4.0/rules_nodejs-3.4.0.tar.gz", -- "https://github.com/bazelbuild/rules_nodejs/releases/download/3.4.0/rules_nodejs-3.4.0.tar.gz", -+ "https://github.com/bazelbuild/rules_nodejs/releases/download/3.8.0/rules_nodejs-3.8.0.tar.gz" - ], - ) - Deleted: oauthlib-version.patch =================================================================== --- oauthlib-version.patch 2022-07-17 23:23:05 UTC (rev 1254387) +++ oauthlib-version.patch 2022-07-17 23:23:30 UTC (rev 1254388) @@ -1,12 +0,0 @@ -diff --color -aur tensorboard-2.8.0-old/tensorboard/pip_package/requirements.txt tensorboard-2.8.0-new/tensorboard/pip_package/requirements.txt ---- tensorboard-2.8.0-old/tensorboard/pip_package/requirements.txt 2022-01-20 22:45:42.000000000 +0200 -+++ tensorboard-2.8.0-new/tensorboard/pip_package/requirements.txt 2022-04-20 15:24:05.125066973 +0300 -@@ -21,7 +21,7 @@ - # Until this issue is closed - # https://github.com/googleapis/google-cloud-python/issues/10566 - google-auth >= 1.6.3, < 3 --google-auth-oauthlib >= 0.4.1, < 0.5 -+google-auth-oauthlib >= 0.4.1 - markdown >= 2.6.8 - numpy >= 1.12.0 - protobuf >= 3.6.0