14
0

- Skip a few tests that attempt name resolution.

- Switch to pytest macro.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycapnp?expand=0&rev=13
This commit is contained in:
2024-12-16 01:25:11 +00:00
committed by Git OBS Bridge
commit dce2109715
5 changed files with 182 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

3
pycapnp-2.0.0.tar.gz Normal file
View File

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

74
python-pycapnp.changes Normal file
View File

@@ -0,0 +1,74 @@
-------------------------------------------------------------------
Mon Dec 16 01:24:52 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Skip a few tests that attempt name resolution.
- Switch to pytest macro.
- No more greedy globs in %files.
-------------------------------------------------------------------
Tue Apr 16 08:24:15 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Update to 2.0.0
* Update to bundled capnproto-1.0.1
* Remove support for Python 3.7
* Update Cython version and Python to 3.12
* Make pycapnp more GIL friendly
* Remove the synchronous RPC mode
* Update documentation to async code
* Some fixes to the magic import system
* more changes, see CHANGELOG.md
-------------------------------------------------------------------
Sun Aug 13 19:51:17 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 1.3.0:
* Update to bundled capnproto-0.10.3
* Add Python 3.11
* Prevent race condition in example code (#305)
-------------------------------------------------------------------
Wed Dec 7 20:52:44 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to v1.2.2
* Update bundled bundled capnp to 0.8.1 due to CVE-2022-46149
* This only affects pycapnp if you're using bundled capnp (otherwise
just update libcapnp)
* pypi packages are affected
-------------------------------------------------------------------
Fri Oct 28 20:02:46 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to v1.2.1
* Fix packaging for Apple Silicon
-------------------------------------------------------------------
Tue Oct 4 23:56:00 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to v1.2.0 (2022-08-29)
Added support for Apple Silicon
- Update to v1.1.1 (2022-05-23)
Added Python 3.10 support
aarch64 wheel support
Fix doc string for _DynamicResizableListBuilder
fix for unreleased buffers under mmap (issue 280)
- Update to v1.1.0 (2021-06-09)
Validated compatibility with Python 3.10.0b2
Remove all bare except
Improve _StructModuleWhich to inherit from enum.Enum
Add Union on top level union messages
Fixed memory leak in _SegmentArrayMessageReader
Removed many pycodestyle warnings
Avoid crash if __file__ is not set by importer
Fixed module.pyx _set_<field> for boolean fields
Fixed setup.py.tmpl support for *.c++ files
Fixed _gen.py for python3 as dict_keys object are not indexable.
Add test data to sdist
Add pyproject.yaml
Add missing inheritance to _Schema for _StructSchema
-------------------------------------------------------------------
Wed Mar 10 07:15:37 AM UTC 2021 - John Vandenberg <jayvdb@gmail.com>
- Initial spec for v1.0.0

81
python-pycapnp.spec Normal file
View File

@@ -0,0 +1,81 @@
#
# spec file for package python-pycapnp
#
# 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-pycapnp
Version: 2.0.0
Release: 0
Summary: Cython wrapping of the C++ Cap'n Proto library
License: BSD-2-Clause
URL: https://github.com/capnproto/pycapnp
Source: https://github.com/capnproto/pycapnp/archive/refs/tags/v%{version}.tar.gz#/pycapnp-%{version}.tar.gz
BuildRequires: %{python_module Cython with %python-Cython < 3}
BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pkgconfig}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(capnp)
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
A cython wrapping of the C++ Cap'n Proto library.
%prep
%setup -q -n pycapnp-%{version}
sed -i '1{/^#!/d}' capnp/templates/setup.py.tmpl
%build
export CFLAGS="%{optflags}"
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/capnpc-cython
%{python_expand rm %{buildroot}%{$python_sitearch}/capnp/helpers/*.h
%fdupes %{buildroot}%{$python_sitearch}
}
%check
mv capnp/ /tmp
# Attempts to resolve names
%pytest_arch -k 'not (test_ssl_async_example or test_ssl_reconnecting_async_example or test_async_ssl_calculator_example)'
mv /tmp/capnp/ .
%post
%python_install_alternative capnpc-cython
%postun
%python_uninstall_alternative capnpc-cython
%files %{python_files}
%doc CHANGELOG.md README.md
%license LICENSE.md
%python_alternative %{_bindir}/capnpc-cython
%{python_sitearch}/capnp
%{python_sitearch}/pycapnp-%{version}.dist-info
%changelog