17
0

Compare commits

4 Commits

Author SHA256 Message Date
c4de304bee Accepting request 1297991 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1297991
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-thriftpy2?expand=0&rev=12
2025-08-07 14:48:42 +00:00
04dca77ac5 - Update to 0.5.3
* Move dependencies from setup.py to project.toml
  * fix tox config
  * fix flake8 error in local test
  * fix: sub module conflict error
  * Use SO_REUSEPORT only for AF_INET sockets
  * Make flake8 happy
  * Resolve daemon warnings for threading methods
  * Add GHA workflow to build wheels
  * Allow for omitted FieldID in Field definitions
  * Bump version to v0.5.3b1
  * Requires Python3.7
  * feat: optimize error output
  * fix: memory leak risk
  * Bump version 0.5.3b2
  * Add experimental freethreading support
  * Bump version 0.5.3
- Drop 0001-Use-SO_REUSEPORT-only-for-AF_INET-sockets.patch, merged upstream
- Update BuildRequires from pyproject.toml

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-thriftpy2?expand=0&rev=28
2025-08-06 16:15:38 +00:00
08f50e1d64 Accepting request 1248709 from devel:languages:python
- Add patch 0001-Use-SO_REUSEPORT-only-for-AF_INET-sockets.patch to
  make it compatible with latest cpython. gh#Thriftpy/thriftpy2#303
- Update to 0.5.2:
  * Fix an issue where loading a thrift file in a sub-thread will cause an error with load_fp.
  * Move static metadata from setup.py to pyproject.toml.
  * Using a thread pool to avoid TAsyncSocket.open block the event loop.
- 0.5.1:
  * Fix an issue where loading a thrift file in a sub-thread will cause an error.
  * Some typo fixes.

OBS-URL: https://build.opensuse.org/request/show/1248709
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-thriftpy2?expand=0&rev=11
2025-02-26 16:24:32 +00:00
d299e6cce3 - Add patch 0001-Use-SO_REUSEPORT-only-for-AF_INET-sockets.patch to
make it compatible with latest cpython. gh#Thriftpy/thriftpy2#303
- Update to 0.5.2:
  * Fix an issue where loading a thrift file in a sub-thread will cause an error with load_fp.
  * Move static metadata from setup.py to pyproject.toml.
  * Using a thread pool to avoid TAsyncSocket.open block the event loop.
- 0.5.1:
  * Fix an issue where loading a thrift file in a sub-thread will cause an error.
  * Some typo fixes.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-thriftpy2?expand=0&rev=26
2025-02-26 12:07:51 +00:00
4 changed files with 48 additions and 8 deletions

View File

@@ -1,3 +1,39 @@
-------------------------------------------------------------------
Tue Aug 5 12:06:41 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.5.3
* Move dependencies from setup.py to project.toml
* fix tox config
* fix flake8 error in local test
* fix: sub module conflict error
* Use SO_REUSEPORT only for AF_INET sockets
* Make flake8 happy
* Resolve daemon warnings for threading methods
* Add GHA workflow to build wheels
* Allow for omitted FieldID in Field definitions
* Bump version to v0.5.3b1
* Requires Python3.7
* feat: optimize error output
* fix: memory leak risk
* Bump version 0.5.3b2
* Add experimental freethreading support
* Bump version 0.5.3
- Drop 0001-Use-SO_REUSEPORT-only-for-AF_INET-sockets.patch, merged upstream
- Update BuildRequires from pyproject.toml
-------------------------------------------------------------------
Wed Feb 26 11:05:48 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Add patch 0001-Use-SO_REUSEPORT-only-for-AF_INET-sockets.patch to
make it compatible with latest cpython. gh#Thriftpy/thriftpy2#303
- Update to 0.5.2:
* Fix an issue where loading a thrift file in a sub-thread will cause an error with load_fp.
* Move static metadata from setup.py to pyproject.toml.
* Using a thread pool to avoid TAsyncSocket.open block the event loop.
- 0.5.1:
* Fix an issue where loading a thrift file in a sub-thread will cause an error.
* Some typo fixes.
-------------------------------------------------------------------
Wed May 29 11:59:34 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-thriftpy2
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-thriftpy2
Version: 0.5.0
Version: 0.5.3
Release: 0
Summary: Pure python implementation of Apache Thrift
License: MIT
@@ -34,11 +34,11 @@ BuildRequires: %{python_module pytest >= 2.8}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{python_module toml}
BuildRequires: %{python_module tornado >= 5.0}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-pytest-asyncio
Requires: python-ply >= 3.4
Requires: python-six
Recommends: python-tornado >= 5.0
@@ -67,10 +67,14 @@ find %{buildroot}%{$python_sitearch} -name '*.c' -exec rm {} \;
}
%check
cd tests
# the two tests fail in OBS on timeout
# test_asynchronous_exception/test_asynchronous_result - needs old tornado to work
%pytest_arch -k 'not (test_able_to_communicate or test_zero_length_string or test_asynchronous_exception or test_asynchronous_result or test_api_ipv6)'
donttest="test_able_to_communicate or test_zero_length_string or test_asynchronous_exception or test_asynchronous_result or test_api_ipv6"
# Requires python-pytest-reraise
donttest+=" or test_load_in_sub_thread or test_load_fp_in_sub_thread"
cd tests
%pytest_arch -k "not ($donttest)"
%files %{python_files}
%license LICENSE

View File

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

3
v0.5.3.tar.gz Normal file
View File

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