File tree 4 files changed +14
-5
lines changed
4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 30
30
python -m pip install -r requirements-dev.txt
31
31
- name : tox
32
32
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 2
2
# pip install -r requirements.txt
3
3
lxml
4
4
requests
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"
7
8
pyrdfa3
8
9
mf2py >= 1.1.0
9
10
six >= 1.11
Original file line number Diff line number Diff line change @@ -38,8 +38,10 @@ def get_version():
38
38
packages = find_packages (exclude = ['tests' ,]),
39
39
package_data = {'extruct' : ['VERSION' ]},
40
40
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"' ,
43
45
'pyrdfa3' ,
44
46
'mf2py' ,
45
47
'w3lib' ,
Original file line number Diff line number Diff line change 8
8
commands =
9
9
py.test --cov-report =term --cov-report = --cov =extruct {posargs:extruct tests}
10
10
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}
11
17
12
18
[testenv:py38]
13
19
commands =
You can’t perform that action at this time.
0 commit comments