1
0

Accepting request 1139149 from home:rrahl0

I want to maintain python-pure-protobuf in devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1139149
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pure-protobuf?expand=0&rev=1
This commit is contained in:
Dirk Mueller 2024-01-17 07:23:54 +00:00 committed by Git OBS Bridge
commit d1d8739eaa
6 changed files with 95 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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:08e497d46876ff7f78e8bf703c42788a7e8521be4a6540f7fe37e5259f6ffea2
size 16481

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a8019df38da4e20bf0d37278d878c2eb502a76cbf0616c8d6aa15bc06e73814b
size 51200

View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Sat Dec 16 07:45:47 UTC 2023 - Richard Rahl <rrahl0@proton.me>
- initial packaging

61
python-pure-protobuf.spec Normal file
View File

@ -0,0 +1,61 @@
#
# spec file for package python-pure-protobuf
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-pure-protobuf
Version: 2.3.0
Release: 0
Summary: Protocol Buffers using Python type annotations
Group: Development/Libraries/Python
License: MIT
Group: Development/Libraries/Python
URL: https://github.com/eigenein/protobuf
Source: https://files.pythonhosted.org/packages/source/p/pure-protobuf/pure_protobuf-%{version}.tar.gz
Source1: pure_protobuf-tests-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module hatch_vcs}
BuildRequires: fdupes
## needed for tests
BuildRequires: %{python_module pytest}
BuildArch: noarch
%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
donttest="serializer"
%pytest -k "not $donttest"
%files %{python_files}
%{python_sitelib}/pure_protobuf
%{python_sitelib}/pure_protobuf-%{version}.dist-info
%changelog