forked from pool/python-tweepy
- 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
65 lines
2.1 KiB
RPMSpec
65 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package python-tweepy
|
|
#
|
|
# 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
|
|
# 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-tweepy
|
|
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 pytest}
|
|
BuildRequires: %{python_module requests >= 2.27.0}
|
|
BuildRequires: %{python_module requests-oauthlib >= 1.0.0}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module vcrpy >= 1.10.3}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-generators
|
|
BuildRequires: python-rpm-macros
|
|
BuildArch: noarch
|
|
%{?python_enable_dependency_generator}
|
|
%python_subpackages
|
|
|
|
%description
|
|
A library for accessing the Twitter.com API. Supports OAuth, covers the entire
|
|
API, and streaming API.
|
|
|
|
%prep
|
|
%setup -q -n tweepy-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
export USE_REPLAY=1
|
|
# TweepyAuthTests, test_filter_track, test_sample, test_sitestream, test_userstream and test_exp_backoff fail due to network
|
|
%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 docs/*.rst docs/*.md
|
|
%license LICENSE
|
|
%{python_sitelib}/tweepy*
|
|
|
|
%changelog
|