14
0
forked from pool/python-tweepy
Files
python-tweepy/python-tweepy.spec
Dirk Mueller 7f0e34ce63 Accepting request 983471 from home:yarunachalam:branches:devel:languages:python
- update to version 4.9.0: 
  New Features / Improvements
  * Add support for Direct Message typing indicator and read receipts (#1856)
  * Add API.indicate_direct_message_typing and API.mark_direct_message_read
  * Fallback to "detail" response value for HTTPException message (b6b8241)
  * Handle "error" key of response being a string in HTTPException (2da4452)
  * Twitter API Deprecations
  * Deprecate Stream.sample and note deprecation of compliance messages for Stream.filter (#1876)
  Misc
  * Use setup.cfg for coverage.py configuration (e24bb2f)
  * Explicitly specify coverage >= 4.4.2 requirement for dev extra (b5bd35e)
  * Use setup.cfg for tox configuration (e24bb2f)
  * Update lower bound for dev extra tox requirement to >= 3.21.0 (ba6e6b1)
  * Remove tests_require from setup.py (2870031)
  * Stop creating universal wheels (9d93ec8)
  * Update and improve various documentation and tests
- update to version 4.8.0:
  New Features / Improvements
  * Add support for Bookmarks with Twitter API v2 (#1848)
  * Add Client.remove_bookmark, Client.get_bookmarks, Client.bookmark
  * Add support for using OAuth 2.0 Authorization Code Flow with Client methods that require the authenticating user's ID (0157d0b)
  * Raise TypeError for those methods when the access token isn't set
  * Raise NotFound rather than HTTPException when encountering 404 response status codes in BaseClient.request (b6b8219)
- update to version 4.7.0:
  New Features / Improvements
  * Add support for Quote Tweets lookup with Twitter API v2 (#1844)
  * Add Client.get_quote_tweets
  * Python Backwards-Incompatible Changes
  * Drop support for Python 3.6, which has reached end-of-life status (#1788)
  Bug Fixes

OBS-URL: https://build.opensuse.org/request/show/983471
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tweepy?expand=0&rev=27
2022-06-19 17:20:59 +00:00

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.9.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