From 0d96672ea91f27c9292b5c3089babe5dc2709bdf4b2e01ca89c5c43e202f52ed Mon Sep 17 00:00:00 2001 From: Richard Rahl Date: Tue, 15 Oct 2024 21:51:05 +0000 Subject: [PATCH] - 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 --- .gitattributes | 23 +++++++++ .gitignore | 1 + get-tests.sh | 17 +++++++ pure_protobuf-3.1.0.tar.gz | 3 ++ pure_protobuf-3.1.1.tar.gz | 3 ++ pure_protobuf-3.1.2.tar.gz | 3 ++ pure_protobuf-3.1.3.tar.gz | 3 ++ python-pure-protobuf-tests-3.1.0.tar.gz | 3 ++ python-pure-protobuf-tests-3.1.1.tar.gz | 3 ++ python-pure-protobuf-tests-3.1.2.tar.gz | 3 ++ python-pure-protobuf-tests-3.1.3.tar.gz | 3 ++ python-pure-protobuf.changes | 45 ++++++++++++++++ python-pure-protobuf.spec | 68 +++++++++++++++++++++++++ 13 files changed, 178 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 get-tests.sh create mode 100644 pure_protobuf-3.1.0.tar.gz create mode 100644 pure_protobuf-3.1.1.tar.gz create mode 100644 pure_protobuf-3.1.2.tar.gz create mode 100644 pure_protobuf-3.1.3.tar.gz create mode 100644 python-pure-protobuf-tests-3.1.0.tar.gz create mode 100644 python-pure-protobuf-tests-3.1.1.tar.gz create mode 100644 python-pure-protobuf-tests-3.1.2.tar.gz create mode 100644 python-pure-protobuf-tests-3.1.3.tar.gz create mode 100644 python-pure-protobuf.changes create mode 100644 python-pure-protobuf.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/get-tests.sh b/get-tests.sh new file mode 100644 index 0000000..0f15b83 --- /dev/null +++ b/get-tests.sh @@ -0,0 +1,17 @@ +#!/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 diff --git a/pure_protobuf-3.1.0.tar.gz b/pure_protobuf-3.1.0.tar.gz new file mode 100644 index 0000000..e348e53 --- /dev/null +++ b/pure_protobuf-3.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c0b60d630e529309b8ab3f94aec91acc478385ede02d115f7981b24c7151d89b +size 18198 diff --git a/pure_protobuf-3.1.1.tar.gz b/pure_protobuf-3.1.1.tar.gz new file mode 100644 index 0000000..a007021 --- /dev/null +++ b/pure_protobuf-3.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:951c812f6e06a25c2b4c2d56e81f49793a8adbfae77da5db84d693aa57ae1d2b +size 18190 diff --git a/pure_protobuf-3.1.2.tar.gz b/pure_protobuf-3.1.2.tar.gz new file mode 100644 index 0000000..fece541 --- /dev/null +++ b/pure_protobuf-3.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:700f70671b892d52b5c2f1d7330bce3e57eb5fac3d8831a8d8a631457eaac236 +size 18293 diff --git a/pure_protobuf-3.1.3.tar.gz b/pure_protobuf-3.1.3.tar.gz new file mode 100644 index 0000000..a9b9c9e --- /dev/null +++ b/pure_protobuf-3.1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ae439e1920e9c0e6bf65bf892948085e021cb4a7dc3f2ec399b0ee735422f30d +size 18341 diff --git a/python-pure-protobuf-tests-3.1.0.tar.gz b/python-pure-protobuf-tests-3.1.0.tar.gz new file mode 100644 index 0000000..7e2c1b1 --- /dev/null +++ b/python-pure-protobuf-tests-3.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:48e1e2f8b427031df145c889efac8edc0b5e20c7fdbc58bf5ce1379036683318 +size 71680 diff --git a/python-pure-protobuf-tests-3.1.1.tar.gz b/python-pure-protobuf-tests-3.1.1.tar.gz new file mode 100644 index 0000000..cb38951 --- /dev/null +++ b/python-pure-protobuf-tests-3.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ef3134031d22aacbe22c0969e5dd82bee5b6406813677e9a4c8ab17eeb322208 +size 71680 diff --git a/python-pure-protobuf-tests-3.1.2.tar.gz b/python-pure-protobuf-tests-3.1.2.tar.gz new file mode 100644 index 0000000..a76a05d --- /dev/null +++ b/python-pure-protobuf-tests-3.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:918a6299cd266e2e00d31b3aec143ee822a25bf6dec9be7ed361353e961a8c93 +size 81920 diff --git a/python-pure-protobuf-tests-3.1.3.tar.gz b/python-pure-protobuf-tests-3.1.3.tar.gz new file mode 100644 index 0000000..8c3e80e --- /dev/null +++ b/python-pure-protobuf-tests-3.1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f11919b94565f72b99ddfa8f798b8b453c6b38367aaa13e19df35b970299ebb8 +size 71680 diff --git a/python-pure-protobuf.changes b/python-pure-protobuf.changes new file mode 100644 index 0000000..d0fb626 --- /dev/null +++ b/python-pure-protobuf.changes @@ -0,0 +1,45 @@ +------------------------------------------------------------------- +Tue Oct 15 21:47:22 UTC 2024 - Richard Rahl + +- update to 3.1.3: + * drop support for python 3.8 + * add support for python 3.13 + * prepare for python 3.14 + +------------------------------------------------------------------- +Fri Aug 16 16:50:05 UTC 2024 - Richard Rahl + +- 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 + +------------------------------------------------------------------- +Tue Jul 23 09:22:54 UTC 2024 - Richard Rahl + +- update to 3.1.1: + * update dependencies + +------------------------------------------------------------------- +Fri May 17 02:04:36 UTC 2024 - Richard Rahl + +- update to 3.1.0: + * dependency updates + +------------------------------------------------------------------- +Fri Mar 8 00:46:53 UTC 2024 - Richard Rahl + +- 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/) + +------------------------------------------------------------------- +Sat Dec 16 07:45:47 UTC 2023 - Richard Rahl + +- initial packaging diff --git a/python-pure-protobuf.spec b/python-pure-protobuf.spec new file mode 100644 index 0000000..181adf6 --- /dev/null +++ b/python-pure-protobuf.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-pure-protobuf +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-pure-protobuf +Version: 3.1.3 +Release: 0 +Summary: Protocol Buffers using Python type annotations +License: MIT +URL: https://github.com/eigenein/protobuf +Source: https://files.pythonhosted.org/packages/source/p/pure-protobuf/pure_protobuf-%{version}.tar.gz +Source1: %{name}-tests-%{version}.tar.gz +Source99: get-tests.sh +BuildRequires: %{python_module get-annotations} +BuildRequires: %{python_module hatch_vcs} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} +BuildRequires: %{python_module poetry-dynamic-versioning} +BuildRequires: %{python_module pydantic} +BuildRequires: %{python_module typing-extensions} +BuildRequires: fdupes +BuildRequires: git-core +BuildRequires: python-rpm-macros +## needed for tests +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-benchmark} +BuildRequires: %{python_module pytest-cov} +BuildArch: noarch +Requires: python-typing-extensions +%python_subpackages + +%description +%{summary}. + +%prep +%autosetup -a1 -p1 -n pure_protobuf-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%{python_sitelib}/pure_protobuf +%{python_sitelib}/pure_protobuf-%{version}.dist-info + +%changelog