From 143aed2d07ebdb1b9bd9cd7865830719006150e3 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Mon, 21 Feb 2022 18:59:53 +0100 Subject: enable using with Python 3.7 --- setup.cfg | 3 ++- src/hydrilla/builder/build.py | 3 +++ src/hydrilla/util/_util.py | 3 +++ src/test/test_hydrilla_builder.py | 3 +++ 4 files changed, 11 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3