14
0
forked from pool/python-tweepy

Accepting request 826975 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/826975
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tweepy?expand=0&rev=12
This commit is contained in:
2020-08-18 13:08:23 +00:00
committed by Git OBS Bridge
2 changed files with 13 additions and 4 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Aug 16 06:23:21 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Activate test suite, replacing nose with pytest
- Add %doc
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 22 11:56:47 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com> Mon Jul 22 11:56:47 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-tweepy # spec file for package python-tweepy
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -27,8 +27,8 @@ URL: https://github.com/tweepy/tweepy
Source: https://github.com/tweepy/tweepy/archive/v%{version}.tar.gz Source: https://github.com/tweepy/tweepy/archive/v%{version}.tar.gz
BuildRequires: %{python_module PySocks >= 1.5.7} BuildRequires: %{python_module PySocks >= 1.5.7}
BuildRequires: %{python_module mock >= 1.0.1} BuildRequires: %{python_module mock >= 1.0.1}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 2.11.1} BuildRequires: %{python_module requests >= 2.11.1}
BuildRequires: %{python_module requests-oauthlib >= 0.7.0} BuildRequires: %{python_module requests-oauthlib >= 0.7.0}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
@@ -49,6 +49,7 @@ API, and streaming API.
%prep %prep
%setup -q -n tweepy-%{version} %setup -q -n tweepy-%{version}
sed -i 's/from nose import SkipTest/from unittest import SkipTest/' tests/test_api.py
%build %build
%python_build %python_build
@@ -58,10 +59,12 @@ API, and streaming API.
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
# Sadly tests need access to twitter api export USE_REPLAY=1
#%%python_expand nosetests-%{$python_bin_suffix} -v tests.test_cursors tests.test_api tests.test_utils # 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} %files %{python_files}
%doc README.md CHANGELOG.md docs/*.rst
%license LICENSE %license LICENSE
%{python_sitelib}/* %{python_sitelib}/*