python-tweepy: update to 3.7.0.
This commit is contained in:
parent
2831079294
commit
220bcba6bb
|
@ -1,59 +0,0 @@
|
||||||
From 778bd7a31d2f5fae98652735e7844533589ca221 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Ben Cipollini <bcipollini@classy.org>
|
|
||||||
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 requirements.txt requirements.txt
|
|
||||||
index 14440314..cd8c47d3 100644
|
|
||||||
--- requirements.txt
|
|
||||||
+++ 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 setup.py setup.py
|
|
||||||
index 18c59108..5688c2f5 100644
|
|
||||||
--- setup.py
|
|
||||||
+++ 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="tweepy@googlegroups.com",
|
|
||||||
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',
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-tweepy'
|
# Template file for 'python-tweepy'
|
||||||
pkgname=python-tweepy
|
pkgname=python-tweepy
|
||||||
version=3.6.0
|
version=3.7.0
|
||||||
revision=2
|
revision=1
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="tweepy-${version}"
|
wrksrc="tweepy-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
|
@ -12,11 +12,13 @@ short_desc="Twitter library for Python2"
|
||||||
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://github.com/tweepy/tweepy"
|
homepage="https://github.com/tweepy/tweepy"
|
||||||
distfiles="https://github.com/tweepy/tweepy/archive/v${version}.tar.gz"
|
distfiles="${PYPI_SITE}/t/tweepy/tweepy-${version}.tar.gz
|
||||||
checksum=70f0c02b6249a3a7551328f731f1b90c822a780eb2fd15eaef4510a477c9f33c
|
https://raw.githubusercontent.com/tweepy/tweepy/master/LICENSE>LICENSE.txt"
|
||||||
|
checksum="fe85a79f58a01dd335968523b91c5fce760e7fe78bf25a6e71c72204fe499d0b
|
||||||
|
deeeae0dcc22dbf108a801b8dc4e484bcc1bfb541b1a4f4615ab3e61def44fb5"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense ../LICENSE.txt
|
||||||
# remove examples from site-packages root
|
# remove examples from site-packages root
|
||||||
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/examples
|
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/examples
|
||||||
}
|
}
|
||||||
|
@ -28,6 +30,6 @@ python3-tweepy_package() {
|
||||||
short_desc="${short_desc/Python2/Python3}"
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/python3*
|
vmove usr/lib/python3*
|
||||||
vlicense LICENSE
|
vlicense ../LICENSE.txt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue