diff --git a/AUTHORS b/AUTHORS index 55ae6a4..b73a1a3 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,3 +1,4 @@ +GitHub Action Harold Solbrig clin113jhu hsolbrig diff --git a/ChangeLog b/ChangeLog index 6c33920..03e949d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,20 @@ CHANGES ======= +* Update dependency on urllib3 + +v0.1.6 +------ + +* Automatically generated requirements and Pipfile.lock +* Fix issue #14 +* Update setup.cfg + +v0.1.5 +------ + +* Remove 3.7 unit tests +* Automatically generated requirements and Pipfile.lock * Add github actions for unit test and update * Update test cases to reflect rdflib 5.0 differences * Fix issue 12 diff --git a/Pipfile b/Pipfile index 56e778f..baffbcc 100644 --- a/Pipfile +++ b/Pipfile @@ -7,7 +7,7 @@ verify_ssl = true requests = "*" [packages] -rdflib = ">=5.0.0" +rdflib = "~=5.0, >=5.0.0" pyjsg = ">=0.11.6" rfc3987 = "*" bcp47 = "*" diff --git a/Pipfile.lock b/Pipfile.lock index c0d4602..b9772d3 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "a19f392c5e56e4222505014600bb481a25f2cf4bc8604f7e0721981c52432c72" + "sha256": "5aad704633b1f3aeea78dd70bd24b31643957398e6f75662f26a1904a87e30e2" }, "pipfile-spec": 6, "requires": {}, @@ -60,11 +60,11 @@ }, "rdflib": { "hashes": [ - "sha256:7ce4d757eb26f4dd43205ec340d8c097f29e5adfe45d6ea20238c731dc679879", - "sha256:bb24f0058070d5843503e15b37c597bc3858d328d11acd9476efad3aa62f555d" + "sha256:78149dd49d385efec3b3adfbd61c87afaf1281c30d3fcaf1b323b34f603fb155", + "sha256:88208ea971a87886d60ae2b1a4b2cdc263527af0454c422118d43fe64b357877" ], "index": "pypi", - "version": "==6.0.0" + "version": "==5.0.0" }, "rfc3987": { "hashes": [ diff --git a/funowl/__init__.py b/funowl/__init__.py index db3e323..acf3f1a 100644 --- a/funowl/__init__.py +++ b/funowl/__init__.py @@ -1,3 +1,6 @@ +import sys +from warnings import warn + from . prefix_declarations import Prefix from . declarations import Declaration from . literals import Datatype, StringLiteralNoLanguage, TypedLiteral, StringLiteralWithLanguage, Literal @@ -29,7 +32,11 @@ from . ontology_document import OntologyDocument, Ontology, Import from . axioms import Axiom + +if sys.version_info < (3, 8, 0): + warn(f"FunOwl needs python 3.8 or later. Current version: {sys.version_info}") + # TODO: Run coverage and test or toss anything that isn't executed # TODO: Consider removing the streaming IO feature -- it doesn't seem to do a lot for performance and makes things compicated # TODO: Put an official unit test in -- something like rdflib -# TODO: See table 5 in OWL Spec -- builtin solution? \ No newline at end of file +# TODO: See table 5 in OWL Spec -- builtin solution? diff --git a/requirements.txt b/requirements.txt index 4f2434c..538f23b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,5 +12,5 @@ bcp47 pyjsg>=0.11.6 -rdflib>=5.0.0 +rdflib~=5.0, >=5.0.0 rfc3987 diff --git a/tests/test_owl2_test_suite/syntax_converter.py b/tests/test_owl2_test_suite/syntax_converter.py index a46225c..fcc555c 100644 --- a/tests/test_owl2_test_suite/syntax_converter.py +++ b/tests/test_owl2_test_suite/syntax_converter.py @@ -29,7 +29,7 @@ def convert(key: str, content: str, output_format: OWLFormat=OWLFormat.func) -> :return: Converted information if successful """ try: - resp = requests.post('http://www.ldf.fi/service/owl-converter/', + resp = requests.post('https://www.ldf.fi/service/owl-converter/', data=dict(onto=content, to=output_format.name)) except ConnectionError as e: logging.getLogger().error(f"{key}: {str(e)}")