Date: Saturday, April 8, 2023 @ 08:15:32 Author: felixonmars Revision: 1442188
archrelease: copy trunk to community-staging-any Added: python-tensorflow-estimator/repos/community-staging-any/ python-tensorflow-estimator/repos/community-staging-any/PKGBUILD (from rev 1442187, python-tensorflow-estimator/trunk/PKGBUILD) ----------+ PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) Copied: python-tensorflow-estimator/repos/community-staging-any/PKGBUILD (from rev 1442187, python-tensorflow-estimator/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2023-04-08 08:15:32 UTC (rev 1442188) @@ -0,0 +1,36 @@ +# Maintainer: Sven-Hendrik Haase <svenst...@archlinux.org> +# Maintainer: Konstantin Gizdov (kgizdov) <a...@kge.pw> + +pkgname=python-tensorflow-estimator +pkgver=2.12.0 +pkgrel=2 +pkgdesc="A high-level TensorFlow API that greatly simplifies machine learning programming" +url="https://github.com/tensorflow/estimator" +license=('APACHE') +arch=('any') +depends=('python-wrapt') +makedepends=('bazel' 'python-installer' 'python-setuptools' 'python-tensorflow' 'python-wheel') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tensorflow/estimator/archive/v${pkgver}.tar.gz") +sha512sums=('d86bfde67c97988beeb5abc8042c1847c6d0081d54e21e35424d463895e95a5d0adc74d7d2bb006a617748da3b9a8bbb8979d6a842f024ab3a4d08a2e806147b') + +build() { + cd estimator-${pkgver} + + bazel build //tensorflow_estimator/tools/pip_package:build_pip_package + bazel-bin/tensorflow_estimator/tools/pip_package/build_pip_package "${srcdir}/estimator_pip" +} + +check() { + cd estimator-${pkgver} + + # Of course, upstream doesn't care about working tests... + # Revisit this at some point. + # bazel test //tensorflow_estimator/... +} + +package() { + cd estimator-${pkgver} + + WHEEL_PACKAGE=$(find "$srcdir"/estimator_pip -name "tensor*.whl") + python -m installer --destdir="$pkgdir" $WHEEL_PACKAGE +}