aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-02-21 18:59:53 +0100
committerWojtek Kosior <koszko@koszko.org>2022-02-21 19:15:25 +0100
commit143aed2d07ebdb1b9bd9cd7865830719006150e3 (patch)
tree9a76ea602dfa4aa0914b61365cacf45230ab6e9c
parent9b4c04565cc3a61ac1ed2a2b4de9d5a00bc2ceae (diff)
downloadhydrilla-builder-143aed2d07ebdb1b9bd9cd7865830719006150e3.tar.gz
hydrilla-builder-143aed2d07ebdb1b9bd9cd7865830719006150e3.zip
enable using with Python 3.7
-rw-r--r--setup.cfg3
-rw-r--r--src/hydrilla/builder/build.py3
-rw-r--r--src/hydrilla/util/_util.py3
-rw-r--r--src/test/test_hydrilla_builder.py3
4 files changed, 11 insertions, 1 deletions
diff --git a/setup.cfg b/setup.cfg
index d4f8a1c..5ab23af 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -32,9 +32,10 @@ package_dir =
= src
packages = find:
include_package_data=True
+python_requires = >= 3.7
install_requires =
click
- jsonschema
+ jsonschema>=3.0
# reuse is optional:
# reuse
diff --git a/src/hydrilla/builder/build.py b/src/hydrilla/builder/build.py
index 2824e9b..5a46259 100644
--- a/src/hydrilla/builder/build.py
+++ b/src/hydrilla/builder/build.py
@@ -24,6 +24,9 @@
# file's license. Although I request that you do not make use this code
# in a proprietary program, I am not going to enforce this in court.
+# Enable using with Python 3.7.
+from __future__ import annotations
+
import json
import re
import zipfile
diff --git a/src/hydrilla/util/_util.py b/src/hydrilla/util/_util.py
index 364945c..62843f4 100644
--- a/src/hydrilla/util/_util.py
+++ b/src/hydrilla/util/_util.py
@@ -24,6 +24,9 @@
# file's license. Although I request that you do not make use this code
# in a proprietary program, I am not going to enforce this in court.
+# Enable using with Python 3.7.
+from __future__ import annotations
+
import re
import json
import locale
diff --git a/src/test/test_hydrilla_builder.py b/src/test/test_hydrilla_builder.py
index 93392db..5b11dd9 100644
--- a/src/test/test_hydrilla_builder.py
+++ b/src/test/test_hydrilla_builder.py
@@ -4,6 +4,9 @@
#
# Available under the terms of Creative Commons Zero v1.0 Universal.
+# Enable using with Python 3.7.
+from __future__ import annotations
+
import pytest
import json
import shutil