python-pure-protobuf/get-tests.sh
Richard Rahl 0d96672ea9 - update to 3.1.3:
* drop support for python 3.8
  * add support for python 3.13
  * prepare for python 3.14

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pure-protobuf?expand=0&rev=11
2024-10-15 21:51: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