Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-twython for openSUSE:Factory checked in at 2022-10-12 18:24:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-twython (Old) and /work/SRC/openSUSE:Factory/.python-twython.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-twython" Wed Oct 12 18:24:41 2022 rev:3 rq:1009902 version:3.9.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-twython/python-twython.changes 2020-06-02 14:43:23.876423974 +0200 +++ /work/SRC/openSUSE:Factory/.python-twython.new.2275/python-twython.changes 2022-10-12 18:26:19.833906332 +0200 @@ -1,0 +2,7 @@ +Tue Oct 11 16:19:03 UTC 2022 - Yogalakshmi Arunachalam <[email protected]> + +- Update to version 3.9.1 + * Changes from raising StopIteration to returning instead. + * Updates information about Python 2.7 support drop. + +------------------------------------------------------------------- Old: ---- twython-3.8.2.tar.gz New: ---- twython-3.9.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-twython.spec ++++++ --- /var/tmp/diff_new_pack.HStVDs/_old 2022-10-12 18:26:20.281907319 +0200 +++ /var/tmp/diff_new_pack.HStVDs/_new 2022-10-12 18:26:20.289907337 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-twython # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 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 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-twython -Version: 3.8.2 +Version: 3.9.1 Release: 0 Summary: Python wrapper for the Twitter API License: MIT ++++++ twython-3.8.2.tar.gz -> twython-3.9.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/twython-3.8.2/PKG-INFO new/twython-3.9.1/PKG-INFO --- old/twython-3.8.2/PKG-INFO 2020-04-05 01:21:32.000000000 +0200 +++ new/twython-3.9.1/PKG-INFO 2021-07-17 00:35:08.581444700 +0200 @@ -1,10 +1,10 @@ Metadata-Version: 2.1 Name: twython -Version: 3.8.2 +Version: 3.9.1 Summary: Actively maintained, pure Python wrapper for the Twitter API. Supports both normal and streaming Twitter APIs Home-page: https://github.com/ryanmcgrath/twython/tree/master Author: Ryan McGrath -Author-email: [email protected] +Author-email: [email protected] License: MIT Description: # Twython @@ -40,7 +40,13 @@ $ pip install twython ``` - Or, if you want the code that is currently on GitHub + If you're on a legacy project that needs Python 2.7 support, you can install the last version of Twython that supported 2.7: + + ``` + pip install twython==3.7.0` + ``` + + Or, if you want the code that is currently on GitHub: ```bash git clone git://github.com/ryanmcgrath/twython.git @@ -340,10 +346,10 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules Classifier: Topic :: Communications :: Chat Classifier: Topic :: Internet -Classifier: Programming Language :: Python -Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3 :: Only Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 +Requires-Python: >=3.5 Description-Content-Type: text/markdown diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/twython-3.8.2/README.md new/twython-3.9.1/README.md --- old/twython-3.8.2/README.md 2020-04-03 07:44:33.000000000 +0200 +++ new/twython-3.9.1/README.md 2021-07-17 00:32:54.000000000 +0200 @@ -32,7 +32,13 @@ $ pip install twython ``` -Or, if you want the code that is currently on GitHub +If you're on a legacy project that needs Python 2.7 support, you can install the last version of Twython that supported 2.7: + +``` +pip install twython==3.7.0` +``` + +Or, if you want the code that is currently on GitHub: ```bash git clone git://github.com/ryanmcgrath/twython.git diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/twython-3.8.2/docs/usage/advanced_usage.rst new/twython-3.9.1/docs/usage/advanced_usage.rst --- old/twython-3.8.2/docs/usage/advanced_usage.rst 2020-04-03 07:18:33.000000000 +0200 +++ new/twython-3.9.1/docs/usage/advanced_usage.rst 2021-07-16 23:28:19.000000000 +0200 @@ -59,15 +59,10 @@ .. code-block:: python - # Assume you are working with a JPEG + # Assuming that you are working with a JPEG from PIL import Image - try: - # Python 3 - from io import StringIO - except ImportError: - # Python 2 - from StringIO import StringIO + from io import BytesIO photo = Image.open('/path/to/file/image.jpg') @@ -76,14 +71,13 @@ height = int((float(photo.size[1]) * float(wpercent))) photo = photo.resize((basewidth, height), Image.ANTIALIAS) - image_io = StringIO.StringIO() + image_io = BytesIO() photo.save(image_io, format='JPEG') # If you do not seek(0), the image will be at the end of the file and # unable to be read image_io.seek(0) - response = twitter.upload_media(media=image_io) twitter.update_status(status='Checkout this cool image!', media_ids=[response['media_id']]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/twython-3.8.2/setup.py new/twython-3.9.1/setup.py --- old/twython-3.8.2/setup.py 2020-04-05 01:20:40.000000000 +0200 +++ new/twython-3.9.1/setup.py 2021-07-17 00:30:52.000000000 +0200 @@ -9,7 +9,7 @@ from distutils.core import setup __author__ = 'Ryan McGrath <[email protected]>' -__version__ = '3.8.2' +__version__ = '3.9.1' packages = [ 'twython', @@ -24,8 +24,9 @@ name='twython', version=__version__, install_requires=['requests>=2.1.0', 'requests_oauthlib>=0.4.0'], + python_requires='>=3.5', author='Ryan McGrath', - author_email='[email protected]', + author_email='[email protected]', license='MIT', url='https://github.com/ryanmcgrath/twython/tree/master', keywords='twitter search api tweet twython stream', @@ -41,9 +42,8 @@ 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Communications :: Chat', 'Topic :: Internet', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3 :: Only', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/twython-3.8.2/twython/__init__.py new/twython-3.9.1/twython/__init__.py --- old/twython-3.8.2/twython/__init__.py 2020-04-03 07:18:33.000000000 +0200 +++ new/twython-3.9.1/twython/__init__.py 2021-07-17 00:33:09.000000000 +0200 @@ -19,7 +19,7 @@ """ __author__ = 'Ryan McGrath <[email protected]>' -__version__ = '3.7.0' +__version__ = '3.9.1' from .api import Twython from .streaming import TwythonStreamer diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/twython-3.8.2/twython/api.py new/twython-3.9.1/twython/api.py --- old/twython-3.8.2/twython/api.py 2020-04-03 07:18:33.000000000 +0200 +++ new/twython-3.9.1/twython/api.py 2021-07-17 00:30:42.000000000 +0200 @@ -9,6 +9,7 @@ dealing with the Twitter API """ +from __future__ import generator_stop import warnings import re @@ -430,7 +431,7 @@ @staticmethod def construct_api_url(api_url, **params): - """Construct a Twitter API url, encoded, with parameters + r"""Construct a Twitter API url, encoded, with parameters :param api_url: URL of the Twitter API endpoint you are attempting to construct @@ -469,7 +470,7 @@ return self.cursor(self.search, q=search_query, **params) def cursor(self, function, return_pages=False, **params): - """Returns a generator for results that match a specified query. + r"""Returns a generator for results that match a specified query. :param function: Instance of a Twython function (Twython.get_home_timeline, Twython.search) @@ -501,7 +502,7 @@ content = function(**params) if not content: - raise StopIteration + return if hasattr(function, 'iter_key'): results = content.get(function.iter_key) @@ -516,7 +517,7 @@ if function.iter_mode == 'cursor' and \ content['next_cursor_str'] == '0': - raise StopIteration + return try: if function.iter_mode == 'id': @@ -529,7 +530,7 @@ params = dict(parse_qsl(next_results.query)) else: # No more results - raise StopIteration + return else: # Twitter gives tweets in reverse chronological order: params['max_id'] = str(int(content[-1]['id_str']) - 1) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/twython-3.8.2/twython/streaming/types.py new/twython-3.9.1/twython/streaming/types.py --- old/twython-3.8.2/twython/streaming/types.py 2020-04-03 08:28:09.000000000 +0200 +++ new/twython-3.9.1/twython/streaming/types.py 2021-07-17 00:30:42.000000000 +0200 @@ -35,7 +35,7 @@ self.params = None def filter(self, **params): - """Stream statuses/filter + r"""Stream statuses/filter :param \*\*params: Parameters to send with your stream request @@ -47,7 +47,7 @@ self.streamer._request(url, 'POST', params=params) def sample(self, **params): - """Stream statuses/sample + r"""Stream statuses/sample :param \*\*params: Parameters to send with your stream request @@ -59,7 +59,7 @@ self.streamer._request(url, params=params) def firehose(self, **params): - """Stream statuses/firehose + r"""Stream statuses/firehose :param \*\*params: Parameters to send with your stream request @@ -71,7 +71,7 @@ self.streamer._request(url, params=params) def set_dynamic_filter(self, **params): - """Set/update statuses/filter + r"""Set/update statuses/filter :param \*\*params: Parameters to send with your stream request diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/twython-3.8.2/twython.egg-info/PKG-INFO new/twython-3.9.1/twython.egg-info/PKG-INFO --- old/twython-3.8.2/twython.egg-info/PKG-INFO 2020-04-05 01:21:31.000000000 +0200 +++ new/twython-3.9.1/twython.egg-info/PKG-INFO 2021-07-17 00:35:08.000000000 +0200 @@ -1,10 +1,10 @@ Metadata-Version: 2.1 Name: twython -Version: 3.8.2 +Version: 3.9.1 Summary: Actively maintained, pure Python wrapper for the Twitter API. Supports both normal and streaming Twitter APIs Home-page: https://github.com/ryanmcgrath/twython/tree/master Author: Ryan McGrath -Author-email: [email protected] +Author-email: [email protected] License: MIT Description: # Twython @@ -40,7 +40,13 @@ $ pip install twython ``` - Or, if you want the code that is currently on GitHub + If you're on a legacy project that needs Python 2.7 support, you can install the last version of Twython that supported 2.7: + + ``` + pip install twython==3.7.0` + ``` + + Or, if you want the code that is currently on GitHub: ```bash git clone git://github.com/ryanmcgrath/twython.git @@ -340,10 +346,10 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules Classifier: Topic :: Communications :: Chat Classifier: Topic :: Internet -Classifier: Programming Language :: Python -Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3 :: Only Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 Classifier: Programming Language :: Python :: 3.7 +Requires-Python: >=3.5 Description-Content-Type: text/markdown
