[arch-commits] Commit in python-tensorflow-estimator/repos (2 files)

2020-11-10 Thread Evangelos Foutras via arch-commits
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 
+# Maintainer: Konstantin Gizdov (kgizdov) 
+
+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
+}


[arch-commits] Commit in python-tensorflow-estimator/repos (2 files)

2019-10-27 Thread Evangelos Foutras via arch-commits
Date: Sunday, October 27, 2019 @ 20:47:46
  Author: foutrelis
Revision: 520800

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

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

Copied: python-tensorflow-estimator/repos/community-staging-any/PKGBUILD (from 
rev 520799, python-tensorflow-estimator/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2019-10-27 20:47:46 UTC (rev 520800)
@@ -0,0 +1,37 @@
+# Maintainer: Sven-Hendrik Haase 
+# Maintainer: Konstantin Gizdov (kgizdov) 
+
+pkgname=python-tensorflow-estimator
+pkgver=2.0.0
+_pkgver=2.0.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-wheel' 'python-setuptools' 'python-pip' 
'python-tensorflow')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/tensorflow/estimator/archive/v${_pkgver}.tar.gz;)
+sha512sums=('99bbdb4be9cd9f46128657b262fc6daa61a1dbfad6c430c43bb62ef99cefec10b10bf03090adcb21bdac0404e00084b4e5c4961761a52462afdeb105ef1e0c73')
+
+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
+}