2011-06-02 09:54:36 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-tweepy
|
|
|
|
#
|
2018-05-02 10:54:14 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-06-02 09:54:36 +00:00
|
|
|
#
|
|
|
|
# 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.
|
2012-06-25 15:16:43 +00:00
|
|
|
|
2011-06-02 09:54:36 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-10-24 11:16:27 +00:00
|
|
|
|
2018-05-02 10:54:14 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2011-06-02 09:54:36 +00:00
|
|
|
Name: python-tweepy
|
2018-05-02 10:54:14 +00:00
|
|
|
Version: 3.6.0
|
2011-06-02 09:54:36 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Twitter library for python
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2018-05-02 10:54:14 +00:00
|
|
|
URL: https://github.com/tweepy/tweepy
|
|
|
|
Source: https://github.com/tweepy/tweepy/archive/v%{version}.tar.gz
|
|
|
|
Patch0: tweepy-pip2.10.patch
|
|
|
|
BuildRequires: %{python_module PySocks >= 1.5.7}
|
|
|
|
BuildRequires: %{python_module mock >= 1.0.1}
|
|
|
|
BuildRequires: %{python_module nose}
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module requests >= 2.11.1}
|
|
|
|
BuildRequires: %{python_module requests-oauthlib >= 0.7.0}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module six >= 1.10.0}
|
|
|
|
BuildRequires: %{python_module vcrpy >= 1.0.1}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python2-unittest2
|
|
|
|
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
|
2011-06-02 09:54:36 +00:00
|
|
|
BuildArch: noarch
|
2018-05-02 10:54:14 +00:00
|
|
|
%python_subpackages
|
2010-09-15 19:02:49 +00:00
|
|
|
|
|
|
|
%description
|
2011-06-02 09:54:36 +00:00
|
|
|
A library for accessing the Twitter.com API. Supports OAuth, covers the entire
|
|
|
|
API, and streaming API.
|
2010-09-15 19:02:49 +00:00
|
|
|
|
|
|
|
%prep
|
2011-06-02 09:54:36 +00:00
|
|
|
%setup -q -n tweepy-%{version}
|
2018-05-02 10:54:14 +00:00
|
|
|
%patch0 -p1
|
2010-09-15 19:02:49 +00:00
|
|
|
|
|
|
|
%build
|
2018-05-02 10:54:14 +00:00
|
|
|
%python_build
|
2010-09-15 19:02:49 +00:00
|
|
|
|
|
|
|
%install
|
2018-05-02 10:54:14 +00:00
|
|
|
%python_install
|
|
|
|
# do not install generic example folder
|
|
|
|
%python_expand rm -r %{buildroot}%{$python_sitelib}/examples
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2010-09-15 19:02:49 +00:00
|
|
|
|
2018-05-02 10:54:14 +00:00
|
|
|
%check
|
|
|
|
# Sadly tests need access to twitter api
|
|
|
|
#%%python_expand nosetests-%{$python_bin_suffix} -v tests.test_cursors tests.test_api tests.test_utils
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
2011-06-02 09:54:36 +00:00
|
|
|
%{python_sitelib}/*
|
2010-09-15 19:02:49 +00:00
|
|
|
|
2011-06-02 09:54:36 +00:00
|
|
|
%changelog
|