From f9647d0701d1ec62aebc3d25507f16a12c6be561 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 21 Aug 2019 12:26:21 -0700 Subject: [PATCH] setup.py: Only require future on Python 2 We only use future for the `builtins` module which is standard in Python 3. Signed-off-by: Anders Kaseorg --- CHANGELOG.md | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 903ba86..c13e3c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ ## x.y.z (unreleased) -- CommonMark now requires `future >= 0.14.0` for uniform `builtins` imports in Python 2/3 +- CommonMark now requires `future >= 0.14.0` on Python 2, for uniform `builtins` imports in Python 2/3 ## 0.9.0 (2019-05-02) - The CommonMark spec has been updated to 0.29. Completed by @iamahuman. diff --git a/setup.py b/setup.py index ad42eba..030873a 100644 --- a/setup.py +++ b/setup.py @@ -53,7 +53,7 @@ def run(self): }, cmdclass={'test': Test}, install_requires=[ - 'future>=0.14.0', + 'future>=0.14.0;python_version<"3"', ], tests_require=tests_require, extras_require={'test': tests_require},