From c8aba30a61346148d1b59209a17b98aa07b4d146 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Mon, 21 Feb 2022 19:06:33 +0100 Subject: enable using with Python 3.7 --- setup.cfg | 3 ++- src/hydrilla/server/config.py | 3 +++ src/hydrilla/server/serve.py | 3 +++ src/test/test_server.py | 3 +++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index c07fad7..4cc05d5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -33,10 +33,11 @@ package_dir = = src packages = find: include_package_data=True +python_requires = >= 3.7 install_requires = hydrilla.builder flask - jsonschema + jsonschema>=3.0 [options.package_data] hydrilla.server = locales/*/LC_MESSAGES/messages.mo diff --git a/src/hydrilla/server/config.py b/src/hydrilla/server/config.py index 0155e83..e0cc186 100644 --- a/src/hydrilla/server/config.py +++ b/src/hydrilla/server/config.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 from pathlib import Path diff --git a/src/hydrilla/server/serve.py b/src/hydrilla/server/serve.py index 075eaef..2ef30cb 100644 --- a/src/hydrilla/server/serve.py +++ b/src/hydrilla/server/serve.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 os import pathlib diff --git a/src/test/test_server.py b/src/test/test_server.py index 2c2d50e..4a6ade3 100644 --- a/src/test/test_server.py +++ b/src/test/test_server.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 pytest import sys import shutil -- cgit v1.2.3