python-pure-protobuf/get-tests.sh
Richard Rahl 2a30a83417 Accepting request 1156207 from home:rrahl0:upgrades
- add script get-tests.sh to fetch tests
- update to 3.0.1:
  * technical update (deps)
- update to 3.0.0:
  * = field field declarations replaced with Annotated hinting
  * Removed @message decorator in favour of BaseMessage
  * Re-written the core
  * Typing changes (see also: https://eigenein.github.io/protobuf/migration/)

OBS-URL: https://build.opensuse.org/request/show/1156207
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pure-protobuf?expand=0&rev=3
2024-03-08 02:36:32 +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