forked from pool/python-twython
Accepting request 810765 from home:mcalabkova:branches:devel:languages:python
- Update to version to 3.8.2 * Bump release with latest patches from GitHub. * Fix Direct Messages with patches from @manuelcortez. * Use PyPI tarball again because upstream did not tag this release - Drop upstreamed patch get_oembed_tweet-endpoint.patch - Replace nose with pytest OBS-URL: https://build.opensuse.org/request/show/810765 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-twython?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
42d32a6d63
commit
36b7d7a3e0
@@ -1,22 +0,0 @@
|
||||
From 340fb4ea162b3e02fb5e245ad8651ec62d34cea5 Mon Sep 17 00:00:00 2001
|
||||
From: Vishvajit Pathak <vishvajit@motoinsight.com>
|
||||
Date: Sat, 29 Sep 2018 15:18:31 +0530
|
||||
Subject: [PATCH] ISSUE-497 : Fixed the api end point in get_oembed_tweet
|
||||
|
||||
---
|
||||
twython/endpoints.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/twython/endpoints.py b/twython/endpoints.py
|
||||
index 00392b8..9da30db 100644
|
||||
--- a/twython/endpoints.py
|
||||
+++ b/twython/endpoints.py
|
||||
@@ -268,7 +268,7 @@ def get_oembed_tweet(self, **params):
|
||||
https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-oembed
|
||||
|
||||
"""
|
||||
- return self.get('statuses/oembed', params=params)
|
||||
+ return self.get('oembed', params=params)
|
||||
|
||||
def get_retweeters_ids(self, **params):
|
||||
"""Returns a collection of up to 100 user IDs belonging to users who
|
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 2 09:05:23 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
- Update to version to 3.8.2
|
||||
* Bump release with latest patches from GitHub.
|
||||
* Fix Direct Messages with patches from @manuelcortez.
|
||||
* Use PyPI tarball again because upstream did not tag this release
|
||||
- Drop upstreamed patch get_oembed_tweet-endpoint.patch
|
||||
- Replace nose with pytest
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 30 03:19:14 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-twython
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,32 +12,31 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-twython
|
||||
Version: 3.7.0
|
||||
Version: 3.8.2
|
||||
Release: 0
|
||||
License: MIT
|
||||
Summary: Python wrapper for the Twitter API
|
||||
Url: https://github.com/ryanmcgrath/twython
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Source: https://github.com/ryanmcgrath/twython/archive/%{version}.tar.gz#/twython-%{version}.tar.gz
|
||||
Patch: get_oembed_tweet-endpoint.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module nose}
|
||||
URL: https://github.com/ryanmcgrath/twython
|
||||
Source: https://files.pythonhosted.org/packages/source/t/twython/twython-%{version}.tar.gz
|
||||
# PyJWT 1.4.2 isnt compatible with single-spec
|
||||
BuildRequires: %{python_module PyJWT > 1.4.2}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module requests >= 2.1.0}
|
||||
BuildRequires: %{python_module requests-oauthlib >= 0.4.0}
|
||||
BuildRequires: %{python_module responses}
|
||||
# PyJWT 1.4.2 isnt compatible with single-spec
|
||||
BuildRequires: %{python_module PyJWT > 1.4.2}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-requests >= 2.1.0
|
||||
Requires: python-requests-oauthlib >= 0.4.0
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -62,7 +61,6 @@ Features include:
|
||||
|
||||
%prep
|
||||
%setup -q -n twython-%{version}
|
||||
%patch -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -73,10 +71,10 @@ Features include:
|
||||
|
||||
%check
|
||||
# Five failing tests
|
||||
%python_exec %{_bindir}/nosetests -e '(test_get_lastfunction_header_should_return_header|test_request_should_handle_(rate_limit|401|400_that_is_not_auth_related|400_for_missing_auth_data))'
|
||||
%pytest -k "not (test_get_lastfunction_header_should_return_header or test_request_should_handle_40 or test_request_should_handle_rate_limit)"
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{python_sitelib}/*
|
||||
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:075165fdd26dc0200769edd7cc48cde0206fbb7f2452d16794e283abd327726d
|
||||
size 373183
|
3
twython-3.8.2.tar.gz
Normal file
3
twython-3.8.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c6ca64309260e0ab47267f76217c80812f591991437f376fc61498816384f9e7
|
||||
size 373927
|
Reference in New Issue
Block a user