From 84f9acd05c20c2ba4410f72de7585eb51bc17de3 Mon Sep 17 00:00:00 2001
From: Tamas Gal <tgal@km3net.de>
Date: Tue, 22 Sep 2020 15:15:02 +0200
Subject: [PATCH] Add Python 2.7 compat

---
 .gitlab-ci.yml | 9 +++++++++
 setup.py       | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d6a82ba..9d7a795 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -30,6 +30,15 @@ stages:
       reports:
         junit: "reports/junit*.xml"
 
+test-py2.7:
+    image: docker.km3net.de/base/python:2
+    stage: test
+    script:
+        - *virtualenv_definition
+        - make test
+    <<: *junit_definition
+    allow_failure: true
+
 test-py3.5:
     image: docker.km3net.de/base/python:3.5
     stage: test
diff --git a/setup.py b/setup.py
index d47f2fe..bcc57d5 100644
--- a/setup.py
+++ b/setup.py
@@ -32,7 +32,7 @@ setup(
     platforms='any',
     setup_requires=['setuptools_scm'],
     use_scm_version=True,
-    python_requires='>=3.5',
+    python_requires='>=2.7',
     install_requires=read_stripped_lines("requirements.txt"),
     extras_require={"dev": read_stripped_lines("requirements-dev.txt")},
     classifiers=[
-- 
GitLab