commit d1d8739eaa67d6dd8ee0a66d5c98d84a40c3cd05ed0df534625a4c8f59f5f771 Author: Dirk Mueller Date: Wed Jan 17 07:23:54 2024 +0000 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 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/pure_protobuf-2.3.0.tar.gz b/pure_protobuf-2.3.0.tar.gz new file mode 100644 index 0000000..42dfc58 --- /dev/null +++ b/pure_protobuf-2.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:08e497d46876ff7f78e8bf703c42788a7e8521be4a6540f7fe37e5259f6ffea2 +size 16481 diff --git a/pure_protobuf-tests-2.3.0.tar.gz b/pure_protobuf-tests-2.3.0.tar.gz new file mode 100644 index 0000000..60df2bc --- /dev/null +++ b/pure_protobuf-tests-2.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a8019df38da4e20bf0d37278d878c2eb502a76cbf0616c8d6aa15bc06e73814b +size 51200 diff --git a/python-pure-protobuf.changes b/python-pure-protobuf.changes new file mode 100644 index 0000000..f726fe3 --- /dev/null +++ b/python-pure-protobuf.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +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..452ad12 --- /dev/null +++ b/python-pure-protobuf.spec @@ -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