From e80491c54de5c54fe666526cd01217375d128efd Mon Sep 17 00:00:00 2001 From: Mathieu Bridon Date: Thu, 3 Aug 2017 18:45:59 +0200 Subject: Drop repoze.lru on Python 3 Starting with Python 3.2, the functools module grew a lru_cache function which can replace our usage of repoze.lru. --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 2af0535c3..3a7f7e161 100644 --- a/setup.py +++ b/setup.py @@ -12,6 +12,8 @@ # ############################################################################## +import sys + from setuptools import setup, find_packages def readfile(name): @@ -24,7 +26,6 @@ CHANGES = readfile('CHANGES.txt') install_requires = [ 'setuptools', 'WebOb >= 1.7.0rc2', # Response.has_body - 'repoze.lru >= 0.4', # py3 compat 'zope.interface >= 3.8.0', # has zope.interface.registry 'zope.deprecation >= 3.5.0', # py3 compat 'venusian >= 1.0a3', # ``ignore`` @@ -87,6 +88,7 @@ setup(name='pyramid', python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*', install_requires=install_requires, extras_require={ + ':python_version<"3.2"': ['repoze.lru >= 0.4'], 'testing': testing_extras, 'docs': docs_extras, }, -- cgit v1.2.3