1
0
python-pure-protobuf/get-tests.sh
Richard Rahl d70c4e774b - update to 3.1.2:
* Do not reset a one-of group with a None value
  * Update and apply Ruff
  * Update all non-major dependencies

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pure-protobuf?expand=0&rev=9
2024-08-16 17:04:05 +00:00

18 lines
426 B
Bash

#!/usr/bin/sh
set -e
if [ -z $1 ]; then
echo "Please input a version for which we should download the tests for"
else
VERSION=$1
curl -LO https://github.com/eigenein/protobuf/archive/refs/tags/$VERSION.tar.gz
mkdir -p tmp
tar xf $VERSION.tar.gz -C tmp
cd tmp/protobuf-$VERSION
tar cf python-pure-protobuf-tests-$VERSION.tar.gz tests
mv python-pure-protobuf-tests-$VERSION.tar.gz ../..
cd ../..
rm -rf tmp $VERSION.tar.gz
fi