Date: Tuesday, November 10, 2020 @ 13:53:54
  Author: foutrelis
Revision: 749518

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 749517, python-tensorflow-estimator/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: python-tensorflow-estimator/repos/community-staging-any/PKGBUILD (from 
rev 749517, python-tensorflow-estimator/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2020-11-10 13:53:54 UTC (rev 749518)
@@ -0,0 +1,36 @@
+# Maintainer: Sven-Hendrik Haase <[email protected]>
+# Maintainer: Konstantin Gizdov (kgizdov) <[email protected]>
+
+pkgname=python-tensorflow-estimator
+pkgver=2.3.0
+pkgrel=3
+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-wheel' 'python-setuptools' 'python-pip' 
'python-tensorflow')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tensorflow/estimator/archive/v${pkgver}.tar.gz";)
+sha512sums=('0befc9c04650a0cd91ce90bc2e9a5d17ae3f7d8d8e4b8f763f223bbb891c73c7e2cbe91a2779af36342008e16f02d118120d94165c6a8e3c14a723b32ee29cb0')
+
+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")
+  pip install --ignore-installed --upgrade --root "$pkgdir"/ $WHEEL_PACKAGE 
--no-dependencies
+}

Reply via email to