Skip to content

Commit 032ad7c

Browse files
committed
[setup.py] Support package installation Python<3.7
The rdflib > 6.0.0 requires Python 3.7. The introduced changes still support the odml package installation with a Python version < 3.7 and an rdflib version pinned to 5.0.0.
1 parent 1480c90 commit 032ad7c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

setup.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@
3535
# owlrl depends on rdflib; update any changes in requirements-test.txt as well.
3636
tests_req = ["owlrl", "pytest", "requests"]
3737

38+
# Keep support for for Python versions below 3.7; relevant for the
39+
# rdflib usage; rdflib >= 6 does not support Python versions below 3.7.
40+
if _python_version.minor <= 6:
41+
# pyparsing needs to be pinned to 2.4.7 due to issues with the rdflib 5.0.0 library.
42+
install_req = ["docopt", "lxml", "pathlib", "pyyaml>=5.1", "rdflib==5.0.0", "pyparsing==2.4.7"]
43+
44+
# owlrl depends on rdflib and needs to be pinned to a corresponding version.
45+
tests_req = ["owlrl==5.2.3", "pytest", "requests"]
46+
3847
setup(
3948
name='odML',
4049
version=VERSION,

0 commit comments

Comments
 (0)