Update setup.py and add python_requires

This commit is contained in:
Jérôme Lebleu
2020-01-07 10:16:54 +01:00
parent 09434afd9e
commit b665cc442d
+2 -5
View File
@@ -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,