Skip to content

Commit

Permalink
python-tf2onnx: unpin flatbuffers and update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Chih-Hsuan Yen committed Sep 29, 2022
1 parent 68f6a7b commit 50f2fe1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions archlinuxcn/python-tf2onnx/PKGBUILD
Expand Up @@ -3,12 +3,12 @@
pkgname=python-tf2onnx
epoch=1
pkgver=1.12.1
pkgrel=2
pkgrel=3
pkgdesc='Convert TensorFlow models to ONNX'
arch=(any)
url='https://github.com/onnx/tensorflow-onnx'
license=(MIT)
depends=(python python-tensorflow python-numpy python-onnx python-requests python-six)
depends=(python python-tensorflow python-numpy python-onnx python-requests python-six python-flatbuffers)
makedepends=(python-setuptools python-build python-installer python-wheel)
checkdepends=(python-pytest python-graphviz python-parameterized python-yaml python-onnxruntime)
source=("https://github.com/onnx/tensorflow-onnx/archive/v$pkgver/tf2onnx-v$pkgver.tar.gz"
Expand All @@ -22,6 +22,9 @@ prepare() {
sed -i -r 's#--cov\S+##' setup.cfg
sed -i "s#'pytest-runner'##" setup.py

# https://github.com/onnx/tensorflow-onnx/issues/1977
sed -i 's#flatbuffers~=1.12#flatbuffers#' setup.py

# The latest upstream tag may not sync with the version file
echo $pkgver > VERSION_NUMBER

Expand Down

0 comments on commit 50f2fe1

Please sign in to comment.