File tree Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 3030 python -m pip install -r requirements-dev.txt
3131 - name : tox
3232 run : |
33- tox -e py
33+ tox -e `python -c "import sys; print('py' + ''.join(sys.version.split('.')[:2]))"`
Original file line number Diff line number Diff line change 22# pip install -r requirements.txt
33lxml
44requests
5- rdflib
6- rdflib-jsonld
5+ rdflib >= 6.0.0 ; python_version >= "3.7"
6+ rdflib < 6.0.0 ; python_version < "3.7"
7+ rdflib-jsonld <= 0.5.0 ; python_version < "3.7"
78pyrdfa3
89mf2py >= 1.1.0
910six >= 1.11
Original file line number Diff line number Diff line change @@ -38,8 +38,10 @@ def get_version():
3838 packages = find_packages (exclude = ['tests' ,]),
3939 package_data = {'extruct' : ['VERSION' ]},
4040 install_requires = ['lxml' ,
41- 'rdflib' ,
42- 'rdflib-jsonld' ,
41+ 'rdflib<6.0.0;python_version<"3.7"' ,
42+ 'rdflib-jsonld<=0.5.0;python_version<"3.7"' ,
43+ # rdflib 6.x.y (only on 3.7 and up) contains jsonld
44+ 'rdflib>=6.0.0;python_version>="3.7"' ,
4345 'pyrdfa3' ,
4446 'mf2py' ,
4547 'w3lib' ,
Original file line number Diff line number Diff line change 88commands =
99 py.test --cov-report =term --cov-report = --cov =extruct {posargs:extruct tests}
1010
11+ [testenv:py36]
12+ deps =
13+ setuptools<58 # https://stackoverflow.com/a/69100830/217088
14+ commands =
15+ pip install -r requirements-dev.txt
16+ py.test --cov-report =term --cov-report = --cov =extruct {posargs:extruct tests}
1117
1218[testenv:py38]
1319commands =
You can’t perform that action at this time.
0 commit comments