Skip to content

Commit 778bd7a

Browse files
author
Ben Cipollini
committedApr 18, 2018
tweepy#1029 - migrate requirements to setup.py, reference in requirements.txt
1 parent dfa8e1e commit 778bd7a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed
 

‎requirements.txt

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
requests>=2.11.1
2-
requests_oauthlib>=0.7.0
3-
six>=1.10.0
4-
PySocks>=1.5.7
1+
--index-url https://pypi.python.org/simple/
2+
3+
-e .

‎setup.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#from distutils.core import setup
33
import re, uuid
44
from setuptools import setup, find_packages
5-
from pip.req import parse_requirements
65

76
VERSIONFILE = "tweepy/__init__.py"
87
ver_file = open(VERSIONFILE, "rt").read()
@@ -14,9 +13,6 @@
1413
else:
1514
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
1615

17-
install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())
18-
reqs = [str(req.req) for req in install_reqs]
19-
2016
setup(name="tweepy",
2117
version=version,
2218
description="Twitter library for python",
@@ -25,7 +21,12 @@
2521
author_email="tweepy@googlegroups.com",
2622
url="http://github.com/tweepy/tweepy",
2723
packages=find_packages(exclude=['tests']),
28-
install_requires=reqs,
24+
install_requires=[
25+
"requests>=2.11.1",
26+
"requests_oauthlib>=0.7.0",
27+
"six>=1.10.0",
28+
"PySocks>=1.5.7",
29+
],
2930
keywords="twitter library",
3031
classifiers=[
3132
'Development Status :: 4 - Beta',

0 commit comments

Comments
 (0)
Please sign in to comment.