Hello community, here is the log from the commit of package python-tweepy for openSUSE:Factory checked in at 2018-05-08 13:36:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-tweepy (Old) and /work/SRC/openSUSE:Factory/.python-tweepy.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-tweepy" Tue May 8 13:36:26 2018 rev:8 rq:603035 version:3.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-tweepy/python-tweepy.changes 2016-03-02 14:21:24.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-tweepy.new/python-tweepy.changes 2018-05-08 13:36:28.207436751 +0200 @@ -1,0 +2,10 @@ +Wed May 2 10:42:39 UTC 2018 - [email protected] + +- Switch to github tarball +- Update url +- Update to version 3.6.0: + * Most notably support for python3 and various tweaks +- Add patch to work with new pip: + * tweepy-pip2.10.patch + +------------------------------------------------------------------- Old: ---- tweepy-3.5.0.tar.gz New: ---- tweepy-pip2.10.patch v3.6.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-tweepy.spec ++++++ --- /var/tmp/diff_new_pack.inAZT7/_old 2018-05-08 13:36:28.939410334 +0200 +++ /var/tmp/diff_new_pack.inAZT7/_new 2018-05-08 13:36:28.939410334 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-tweepy # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,29 +16,34 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-tweepy -Version: 3.5.0 +Version: 3.6.0 Release: 0 -Url: http://github.com/joshthecoder/tweepy Summary: Twitter library for python License: MIT Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/t/tweepy/tweepy-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-pip -BuildRequires: python-requests >= 2.4.3 -BuildRequires: python-requests-oauthlib >= 0.4.1 -BuildRequires: python-setuptools -BuildRequires: python-six >= 1.7.3 -Requires: python-requests >= 2.4.3 -Requires: python-requests-oauthlib >= 0.4.1 -Requires: python-six >= 1.7.3 -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else +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 BuildArch: noarch -%endif +%python_subpackages %description A library for accessing the Twitter.com API. Supports OAuth, covers the entire @@ -46,17 +51,23 @@ %prep %setup -q -n tweepy-%{version} +%patch0 -p1 %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -# remove the examples from site package root -rm -r %{buildroot}%{python_sitelib}/examples +%python_install +# do not install generic example folder +%python_expand rm -r %{buildroot}%{$python_sitelib}/examples +%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 -%files -%defattr(-,root,root,-) +%files %{python_files} +%license LICENSE %{python_sitelib}/* %changelog ++++++ tweepy-pip2.10.patch ++++++ >From 778bd7a31d2f5fae98652735e7844533589ca221 Mon Sep 17 00:00:00 2001 From: Ben Cipollini <[email protected]> Date: Wed, 18 Apr 2018 10:26:07 -0700 Subject: [PATCH] #1029 - migrate requirements to setup.py, reference in requirements.txt --- requirements.txt | 7 +++---- setup.py | 11 ++++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/requirements.txt b/requirements.txt index 14440314..cd8c47d3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ -requests>=2.11.1 -requests_oauthlib>=0.7.0 -six>=1.10.0 -PySocks>=1.5.7 +--index-url https://pypi.python.org/simple/ + +-e . diff --git a/setup.py b/setup.py index 18c59108..5688c2f5 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,6 @@ #from distutils.core import setup import re, uuid from setuptools import setup, find_packages -from pip.req import parse_requirements VERSIONFILE = "tweepy/__init__.py" ver_file = open(VERSIONFILE, "rt").read() @@ -14,9 +13,6 @@ else: raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,)) -install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1()) -reqs = [str(req.req) for req in install_reqs] - setup(name="tweepy", version=version, description="Twitter library for python", @@ -25,7 +21,12 @@ author_email="[email protected]", url="http://github.com/tweepy/tweepy", packages=find_packages(exclude=['tests']), - install_requires=reqs, + install_requires=[ + "requests>=2.11.1", + "requests_oauthlib>=0.7.0", + "six>=1.10.0", + "PySocks>=1.5.7", + ], keywords="twitter library", classifiers=[ 'Development Status :: 4 - Beta',
