Sync from SUSE:ALP:Source:Standard:1.0 python-proto-plus revision 0f790bfc9b8d25d25eefe43c330c78b5

This commit is contained in:
Adrian Schröter 2024-01-05 10:05:08 +01:00
commit ea7e6d9d4d
6 changed files with 269 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

3
_multibuild Normal file
View File

@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

BIN
proto-plus-1.22.3.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

14
pytest-staticmethod.patch Normal file
View File

@ -0,0 +1,14 @@
---
proto/_file_info.py | 1 -
1 file changed, 1 deletion(-)
--- a/proto/_file_info.py
+++ b/proto/_file_info.py
@@ -51,7 +51,6 @@ class _FileInfo(
return descriptor
- @staticmethod
def proto_file_name(name):
return "{0}.proto".format(name.replace(".", "/"))

138
python-proto-plus.changes Normal file
View File

@ -0,0 +1,138 @@
-------------------------------------------------------------------
Tue Nov 7 12:59:38 UTC 2023 - Matthias Fehring <buschmann23@opensuse.org>
- Update to 1.22.3
* Resolve issue where marshal fails with cross api dependency
(gh#googleapis/proto-plus-python#349)
-------------------------------------------------------------------
Fri Feb 24 11:03:30 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- Update to 1.22.2
* Add support for Python 3.11 (#329) (5cff3a0)
* Fix typo in index.rst (#342) (a66a378)
-------------------------------------------------------------------
Fri Sep 9 12:39:29 UTC 2022 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 1.22.1
* Add no-pretty print option (#336)
- from version 1.22.0
* Add support for protobuf v4 (#327)
* Fix Timestamp, Duration and FieldMask marshaling
in REST transport (a2e7300)
* fixes bug in the test. (#332)
- from version 1.20.6
* **deps:** allow protobuf < 5.0.0 (#324)
* fix changelog header to consistent size (#319)
- from version 1.20.5
* **deps:** require google-api-core[grpc] >= 1.31.5 (1d13c41)
* **deps:** require protobuf>= 3.15.0, <4.0.0dev (#315)
- from version 1.20.4
* default proto package name is the module name, not "" (#309)
* lookup attribute instead of performing a deepcopy (#226)
- Update BuildRequires and Requires from setup.py
-------------------------------------------------------------------
Mon Apr 25 17:45:27 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Update to 1.20.3:
- additional logic to mitigate collisions with reserved terms
- dir(proto.Message) does not raise
- mitigate collisions in field names
- add custom dir for messages and message classes
- workaround for buggy pytest
- Add pytest-staticmethod.patch which works around Pytest bug
gh#pytest-dev/pytest#9637.
-------------------------------------------------------------------
Mon Jan 31 15:13:44 UTC 2022 - Matthias Fehring <buschmann23@opensuse.org>
- update to 0.19.9
* add pickling support to proto messages
(gh#googleapis/proto-plus-python#280)
- from 0.19.8
* fix typos
- from 0.19.7
* restore allowing None as value for stringy ints
(gh#googleapis/proto-plus-python#272)
- from 0.19.6
* setting 64bit fields from strings supported
(gh#googleapis/proto-plus-python#267)
- from 0.19.5
* Clarify semantics of multiple oneof variants passed to msg ctor
- from 0.19.4
* clarify that proto plus messages are not pickleable
- from 0.19.3
* setting bytes field from python string base64 decodes before
assignment (gh#googleapis/proto-plus-python#265)
- from 0.19.2
* ensure enums are hashable (gh#googleapis/proto-plus-python#252)
- from 0.19.1
* ensure enums are incomparable w other enum types
(gh#googleapis/proto-plus-python#248)
-------------------------------------------------------------------
Thu Nov 11 08:25:24 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
- Add multibuild to defeat a build loop.
-------------------------------------------------------------------
Fri Sep 10 10:52:33 UTC 2021 - Matthias Fehring <buschmann23@opensuse.org>
- update to 1.19.0
* pass 'including_default_value_fields' through to 'Message.to_dict'
method (gh#googleapis/proto-plus-python#232)
-------------------------------------------------------------------
Sat Mar 20 12:24:03 UTC 2021 - Matthias Fehring <buschmann23@opensuse.org>
- update to 1.18.1
* Add arm64 support for PY3.6 (gh#googleapis/proto-plus-python#219)
- from 1.18.0
* add copy_from method for field assignment
(gh#googleapis/proto-plus-python#512)
-------------------------------------------------------------------
Mon Mar 15 17:22:01 UTC 2021 - Matthias Fehring <buschmann23@opensuse.org>
- update to 1.17.0
* add preserving_proto_field_name to to_json (gh#googleapis/proto-plus-python#213)
- from 1.16.0
* add preserving_proto_field_name passthrough in MessageMeta.to_dict
(gh#googleapis/proto-plus-python#211)
- from 1.15.0
* allow_alias fro enums (gh#googleapis/proto-plus-python#207)
- from 1.14.3
* adding enums to a repeated field does not raise a TypeError
(gh#googleapis/proto-plus-python#202)
- from 1.14.2
* use the correct environment for uploading to pypi
- from 1.14.1
* install the wheel dependency
- from 1.14.0
* Features
+ Pypi publish ghub actions (gh#googleapis/proto-plus-python#189)
* Bug Fixes
* proper setitem and insert for RepeatedComposite
(gh#googleapis/proto-plus-python#178)
* proper native marshal for repeated enumeration fields
(gh#googleapis/proto-plus-python#180)
- from 1.13.1
* update docstring to match type hint (gh#googleapis/proto-plus-python#172)
-------------------------------------------------------------------
Wed Jan 6 15:48:02 UTC 2021 - Matthias Fehring <buschmann23@opensuse.org>
- update to 1.13.0
* add 3.9 support and drop 3.5
(gh#googleapis/proto-plus-python#167)
- from 1.12.0
* add default values parameter to to_json
(gh#googleapis/proto-plus-python#162)
-------------------------------------------------------------------
Tue Oct 20 11:42:01 UTC 2020 - Matthias Fehring <buschmann23@opensuse.org>
- initial package version 1.11.0

88
python-proto-plus.spec Normal file
View File

@ -0,0 +1,88 @@
#
# spec file
#
# Copyright (c) 2023 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/
#
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%define skip_python2 1
%define modname proto-plus
Name: python-proto-plus%{psuffix}
Version: 1.22.3
Release: 0
Summary: Pythonic Protocol Buffers
License: Apache-2.0
URL: https://github.com/googleapis/proto-plus-python
Source0: https://files.pythonhosted.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM pytest-staticmethod.patch gh#pytest-dev/pytest#9637 mcepl@suse.com
# workaround for the problem with pytest 7.0
Patch0: pytest-staticmethod.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module protobuf >= 3.19.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros
# SECTION test requirements
%if %{with test}
BuildRequires: %{python_module google-api-core >= 1.31.5}
BuildRequires: %{python_module proto-plus}
BuildRequires: %{python_module pytest}
%endif
# /SECTION
BuildRequires: fdupes
Requires: python-protobuf >= 3.19.0
BuildArch: noarch
%python_subpackages
%description
This is a wrapper around protocol buffers. Protocol buffers is
a specification format for APIs, such as those inside Google.
This library provides protocol buffer message classes and objects
that largely behave like native Python types.
%prep
%autosetup -p1 -n %{modname}-%{version}
%build
%python_build
%install
%if !%{with test}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
# gh#googleapis/proto-plus-python#311
%pytest -k 'not (test_fields_mitigate_collision or test_dir or test_dir_message_base)'
%endif
%if !%{with test}
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/proto
%{python_sitelib}/proto_plus-%{version}*-info
%endif
%changelog