14
0
forked from pool/python-tweepy

Accepting request 951973 from home:sebix:branches:devel:languages:python

- update to version 4.5.0:
 - New Features / Improvements:
   - Revamp authentication interface
     - Add support for OAuth 2.0 Authorization Code Flow with PKCE
       - Add `OAuth2UserHandler` ([2b83507](2b835073cb), [16763e2](16763e2ff6))
       - Add `user_auth` parameters to `Client` methods ([8f38429](8f38429440), [e88b074](e88b07465f), [0d6b68a](0d6b68aeb3))
     - Rename `OAuthHandler` to `OAuth1UserHandler` ([fb6eb7d](fb6eb7d53d))
       - `OAuthHandler` is kept as a deprecated alias ([cba7317](cba7317a4a))
     - Rename `AppAuthHandler` to `Oauth2AppHandler` ([529d793](529d793620))
       - `AppAuthHandler` is kept as a deprecated alias ([d4ceb1a](d4ceb1aedb))
     - Rename `OAuth2Bearer` to `OAuth2BearerHandler` ([0781fde](0781fde83c))
     - Allow passing access token and secret directly to `OAuth1UserHandler.__init__` ([99f3583](99f3583d99))
     - Allow `OAuth2BearerHandler` to be used as `auth` parameter for `API` ([5a2a3fc](5a2a3fc602))
     - Remove `AuthHandler` ([d600c4c](d600c4cf6a))
     - Remove `OAuth1UserHandler.get_xauth_access_token` ([8e2de9f](8e2de9f590))
     - Update and improve authentication documentation ([f9a722b](f9a722bae8))
     - Other improvements and optimizations
   - Add `Client.get_me` ([c49cbdf](c49cbdfcbd), [62b5b58](62b5b586e7), [f6895d3](f6895d36ee), [bb87b26](bb87b269ef))
   - Add support for `Media.url` ([#1722](https://github.com/tweepy/tweepy/issues/1722))
   - Use requests exception to handle `JSONDecodeError` ([b492b0a](b492b0a9fd))
     - Update requests dependency requirement to >= 2.27.0 ([ed66e8e](ed66e8e98e))
 - Bug Fixes:
   - Fix `Response.includes["polls"]` not being `Poll` objects ([#1733](https://github.com/tweepy/tweepy/pull/1733))
   - Fix `Paginator` handling of `Client.get_all_tweets_count` ([#1761](https://github.com/tweepy/tweepy/pull/1761))
 - Misc:
   - Improve and optimize `Model.__getstate__` ([#1707](https://github.com/tweepy/tweepy/issues/1707))
   - Add API v2 examples to documentation ([bbdbb7b](bbdbb7bbd7))
   - Update and improve various documentation
- update to version 4.4.0:
 - New Features / Improvements:

OBS-URL: https://build.opensuse.org/request/show/951973
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tweepy?expand=0&rev=26
This commit is contained in:
2022-02-08 10:51:48 +00:00
committed by Git OBS Bridge
parent 9336cb3257
commit 6aab51ec32
4 changed files with 509 additions and 19 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-tweepy
#
# 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,29 +18,23 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-tweepy
Version: 3.8.0
Version: 4.5.0
Release: 0
Summary: Twitter library for python
License: MIT
Group: Development/Languages/Python
URL: https://github.com/tweepy/tweepy
Source: https://github.com/tweepy/tweepy/archive/v%{version}.tar.gz
BuildRequires: %{python_module PySocks >= 1.5.7}
BuildRequires: %{python_module mock >= 1.0.1}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.11.1}
BuildRequires: %{python_module requests-oauthlib >= 0.7.0}
BuildRequires: %{python_module requests >= 2.27.0}
BuildRequires: %{python_module requests-oauthlib >= 1.0.0}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.10.0}
BuildRequires: %{python_module vcrpy >= 1.0.1}
BuildRequires: %{python_module vcrpy >= 1.10.3}
BuildRequires: fdupes
BuildRequires: python-rpm-generators
BuildRequires: python-rpm-macros
Requires: python-PySocks >= 1.5.7
Requires: python-requests >= 2.11.1
Requires: python-requests-oauthlib >= 0.7.0
Requires: python-six >= 1.10.0
BuildArch: noarch
%{?python_enable_dependency_generator}
%python_subpackages
%description
@@ -49,7 +43,6 @@ API, and streaming API.
%prep
%setup -q -n tweepy-%{version}
sed -i 's/from nose import SkipTest/from unittest import SkipTest/' tests/test_api.py
%build
%python_build
@@ -64,8 +57,8 @@ export USE_REPLAY=1
%pytest -rs -k 'not (TweepyAuthTests or test_filter_track or test_sample or test_sitestream or test_userstream or test_exp_backoff)'
%files %{python_files}
%doc README.md CHANGELOG.md docs/*.rst
%doc README.md docs/*.rst docs/*.md
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/tweepy*
%changelog