From 5f29bb16d5ca49626d5191bbfe67d3bee07611cc Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Tue, 13 Feb 2018 14:24:49 +0100 Subject: [PATCH] Updated setup.py for Python 3+ and Django 1.11+ --- setup.py | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/setup.py b/setup.py index 0dc1c089..11e82f07 100755 --- a/setup.py +++ b/setup.py @@ -1,6 +1,5 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -from __future__ import print_function import os import sys @@ -24,17 +23,8 @@ def get_path(fname): return os.path.join(os.path.dirname(__file__), fname) -def read_file(fname): - """ - Read file and decode in py2k - """ - if sys.version_info < (3,): - return open(fname).read().decode("utf-8") - return open(fname).read() - - requirements = [ - "Django>=1.8,<2.0", + "Django>=1.11,<2.0", "bleach>=1.5,<2", "Pillow", "django-nyt>=1.0,<1.1", @@ -57,7 +47,7 @@ setup( packages=find_packages('src'), package_dir={'': 'src'}, py_modules=[os.path.splitext(os.path.basename(path))[0] for path in glob('src/*.py')], - long_description=read_file('README.rst'), + long_description=open('README.rst').read(), zip_safe=False, install_requires=requirements, classifiers=[ @@ -68,7 +58,6 @@ setup( 'Intended Audience :: Developers', 'Operating System :: OS Independent', 'Programming Language :: Python', - 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', -- 2.45.2