Hello community, here is the log from the commit of package python-tweepy for openSUSE:Factory checked in at 2020-08-18 15:08:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-tweepy (Old) and /work/SRC/openSUSE:Factory/.python-tweepy.new.3399 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-tweepy" Tue Aug 18 15:08:23 2020 rev:12 rq:826975 version:3.8.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-tweepy/python-tweepy.changes 2019-07-22 17:19:33.325908159 +0200 +++ /work/SRC/openSUSE:Factory/.python-tweepy.new.3399/python-tweepy.changes 2020-08-18 15:08:34.735979300 +0200 @@ -1,0 +2,6 @@ +Sun Aug 16 06:23:21 UTC 2020 - John Vandenberg <[email protected]> + +- Activate test suite, replacing nose with pytest +- Add %doc + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-tweepy.spec ++++++ --- /var/tmp/diff_new_pack.3srcX9/_old 2020-08-18 15:08:36.131979878 +0200 +++ /var/tmp/diff_new_pack.3srcX9/_new 2020-08-18 15:08:36.131979878 +0200 @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -27,8 +27,8 @@ Source: https://github.com/tweepy/tweepy/archive/v%{version}.tar.gz 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 pytest} BuildRequires: %{python_module requests >= 2.11.1} BuildRequires: %{python_module requests-oauthlib >= 0.7.0} BuildRequires: %{python_module setuptools} @@ -49,6 +49,7 @@ %prep %setup -q -n tweepy-%{version} +sed -i 's/from nose import SkipTest/from unittest import SkipTest/' tests/test_api.py %build %python_build @@ -58,10 +59,12 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# Sadly tests need access to twitter api -#%%python_expand nosetests-%{$python_bin_suffix} -v tests.test_cursors tests.test_api tests.test_utils +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 CHANGELOG.md docs/*.rst %license LICENSE %{python_sitelib}/*
