From b665cc442d6d85803e8775f6034b1e531b3588e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Thu, 2 Jan 2020 13:49:07 +0100 Subject: [PATCH] Update setup.py and add python_requires --- setup.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 3eb2f2d80..fba4f5548 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- """ A setuptools based setup module. @@ -8,9 +7,6 @@ See: https://packaging.python.org/en/latest/distributing.html """ -from __future__ import unicode_literals - -import io from os import path try: @@ -42,7 +38,7 @@ if __name__ == "__main__": path.join(HERE, "postgresql-requirements.txt")) LDAP_REQUIRES = get_requirements(path.join(HERE, "ldap-requirements.txt")) - with io.open(path.join(HERE, "README.rst"), encoding="utf-8") as readme: + with open(path.join(HERE, "README.rst")) as readme: LONG_DESCRIPTION = readme.read() setup( @@ -74,6 +70,7 @@ if __name__ == "__main__": scripts=["bin/modoboa-admin.py"], install_requires=INSTALL_REQUIRES, use_scm_version=True, + python_requires=">=3.4", setup_requires=["setuptools_scm"], extras_require={ "ldap": LDAP_REQUIRES,