From fdccd314b8e2805fbdae1c8cace641baeb1eb87c Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 25 Jun 2015 12:15:05 +0200 Subject: [PATCH] Remove future usage There's no good reason to use it, and the future package is a pain to install as it easily breaks the system and compatibility with other Python packages. --- pytimeparse/timeparse.py | 1 - setup.py | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/pytimeparse/timeparse.py b/pytimeparse/timeparse.py index 06b15f1..94a5c64 100644 --- a/pytimeparse/timeparse.py +++ b/pytimeparse/timeparse.py @@ -31,7 +31,6 @@ kinds of time expressions. # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -from builtins import dict, int import re SIGN = r'(?P[+|-])?' diff --git a/setup.py b/setup.py index 83c72a6..677f002 100644 --- a/setup.py +++ b/setup.py @@ -22,11 +22,6 @@ with open(path.join(HERE, 'pytimeparse', 'VERSION'), encoding='utf-8') as f: with open(path.join(HERE, 'README.rst'), encoding='utf-8') as f: LONG_DESCRIPTION = f.read() -# http://stackoverflow.com/a/19719657/1062499 -INSTALL_REQUIRES = [] -if sys.version_info.major == 2: - INSTALL_REQUIRES.append('future >= 0.14') - setup( name='pytimeparse', @@ -81,12 +76,6 @@ setup( # simple. Or you can use find_packages(). packages=find_packages(exclude=[]), - # List run-time dependencies here. These will be installed by pip when your - # project is installed. For an analysis of "install_requires" vs pip's - # requirements files see: - # https://packaging.python.org/en/latest/requirements.html - install_requires=INSTALL_REQUIRES, - # List additional groups of dependencies here (e.g. development dependencies). # You can install these using the following syntax, for example: # $ pip install -e .[dev,test]