From b299ec5513c6c5a5c74da0cc130abc7769080bb4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@ericsson.com>
Date: Tue, 9 Apr 2024 09:02:58 +0200
Subject: [PATCH] downgraded Mako

---
 CHANGELOG.md     | 1 +
 docs/index.rst   | 6 ++++++
 requirements.txt | 4 ++--
 setup.cfg        | 2 +-
 4 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 45c8665..6bd7757 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,7 @@
 
 * certified for Python 3.11 and 3.12
 * CI moved to GitHub Actions
+* downgraded Mako, since newer Mako requires Python 3.8
 
 # v1.5
 
diff --git a/docs/index.rst b/docs/index.rst
index d7fad24..f014513 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -82,6 +82,12 @@ or
 Otherwise :code:`PyInit` won't be generated by Cython
 and such module will be unimportable in Python. Normal import won't suffice.
 
+Please install Snakehouse in a separate venv. This is because it requires an ancient version of
+the templating library Mako_, because newer versions requires Python 3.8, and I wanted
+Snakehouse to support older Pythons as well.
+
+.. _Mako: https://pypi.org/project/Mako/1.1.0/
+
 Contributions
 =============
 
diff --git a/requirements.txt b/requirements.txt
index efe15f8..6a00477 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,3 +1,3 @@
 Cython
-mako
-satella>=2.14.46
+mako==1.1.0
+satella
diff --git a/setup.cfg b/setup.cfg
index 8ef9bfc..6cd1634 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -33,7 +33,7 @@ classifier =
 [options]
 install_requires =
     Cython
-    mako
+    mako == 1.1.0
     satella
 
 python_requires = !=2.7.*,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*
-- 
GitLab