forked from pool/python-twython
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 84a6128384 | |||
| 80ea39de3e | |||
| 5f884bac89 | |||
| 720a709991 |
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 17 01:01:38 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Add patch support-python314.patch:
|
||||||
|
* Check for zstd support in the testsuite.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jun 4 06:14:47 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
Wed Jun 4 06:14:47 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-twython
|
# spec file for package python-twython
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -21,9 +21,10 @@ Version: 3.9.1
|
|||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python wrapper for the Twitter API
|
Summary: Python wrapper for the Twitter API
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/ryanmcgrath/twython
|
URL: https://github.com/ryanmcgrath/twython
|
||||||
Source: https://files.pythonhosted.org/packages/source/t/twython/twython-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/t/twython/twython-%{version}.tar.gz
|
||||||
|
# PATCH-FIX-OPENSUSE Check for zstd compression support in a test
|
||||||
|
Patch0: support-python314.patch
|
||||||
# PyJWT 1.4.2 isnt compatible with single-spec
|
# PyJWT 1.4.2 isnt compatible with single-spec
|
||||||
BuildRequires: %{python_module PyJWT > 1.4.2}
|
BuildRequires: %{python_module PyJWT > 1.4.2}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
@@ -61,7 +62,7 @@ Features include:
|
|||||||
- Seamless Python 3 support!
|
- Seamless Python 3 support!
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n twython-%{version}
|
%autosetup -p1 -n twython-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|||||||
19
support-python314.patch
Normal file
19
support-python314.patch
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
Index: twython-3.9.1/tests/test_core.py
|
||||||
|
===================================================================
|
||||||
|
--- twython-3.9.1.orig/tests/test_core.py
|
||||||
|
+++ twython-3.9.1/tests/test_core.py
|
||||||
|
@@ -285,7 +285,13 @@ class TwythonAPITestCase(unittest.TestCa
|
||||||
|
|
||||||
|
self.api.get(endpoint)
|
||||||
|
|
||||||
|
- self.assertEqual(b'gzip, deflate', responses.calls[0].request.headers['Accept-Encoding'])
|
||||||
|
+ accept_encoding = b'gzip, deflate'
|
||||||
|
+ try:
|
||||||
|
+ import compression.zstd
|
||||||
|
+ accept_encoding += b', zstd'
|
||||||
|
+ except ImportError:
|
||||||
|
+ pass
|
||||||
|
+ self.assertEqual(accept_encoding, responses.calls[0].request.headers['Accept-Encoding'])
|
||||||
|
|
||||||
|
# Static methods
|
||||||
|
def test_construct_api_url(self):
|
||||||
Reference in New Issue
Block a user