Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
Add upper version limit for rdflib (#131)
Browse files Browse the repository at this point in the history
rdflib 5.0.0 reworked some amount of their interface, which breaks things here. Minimally, SPARQLWrapper is no longer used,
and a requests based wrapper internal to rdflib is now used, which breaks compatibility with older RDF stores that do not follow
the SPARQL Protocol 1.1 spec. Setting this to minimize the break here, with a look to move to rdflib 5 in the next major version
bump of gutenberg itself.

Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
  • Loading branch information
MasterOdin committed Apr 21, 2020
1 parent 378a7b4 commit 2004353
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,20 @@ steps:
displayName: 'Upgrade pip and setuptools'

- powershell: |
$mirror = "https://download.lfd.uci.edu/pythonlibs/r7aykn4w"
$mirror = "https://download.lfd.uci.edu/pythonlibs/s2jqpv5t/cp3$(python.version.minor)"
$wheel = "bsddb3-6.2.6-cp3$(python.version.minor)-cp3$(python.version.minor)m-win_amd64.whl"
Invoke-WebRequest -Uri "$mirror/$wheel" -OutFile "$(Agent.TempDirectory)\$wheel"
pip install "$(Agent.TempDirectory)\$wheel"
condition: and(eq(variables['python.version.major'], '3'), eq(variables['os.image'], 'windows-latest'))
displayName: 'Install bsddb3 wheel'
condition: and(eq(variables['python.version.major'], '3'), eq(variables['os.image'], 'windows-latest'), eq(variables['python.version.minor'], '5'))
displayName: 'Install bsddb3 wheel (3.5)'

- powershell: |
$mirror = "https://download.lfd.uci.edu/pythonlibs/s2jqpv5t"
$wheel = "bsddb3-6.2.7-cp3$(python.version.minor)-cp3$(python.version.minor)m-win_amd64.whl"
Invoke-WebRequest -Uri "$mirror/$wheel" -OutFile "$(Agent.TempDirectory)\$wheel"
pip install "$(Agent.TempDirectory)\$wheel"
condition: and(eq(variables['python.version.major'], '3'), eq(variables['os.image'], 'windows-latest'), ge(variables['python.version.minor'], '6'))
displayName: 'Install bsddb3 wheel (3.6+)'

- script: |
brew install berkeley-db4
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

install_requires = [
'future>=0.15.2',
'rdflib>=4.2.0',
'rdflib>=4.2.0,<5.0.0',
'requests>=2.5.1',
'six>=1.10.0',
'setuptools>=18.5',
Expand Down

0 comments on commit 2004353

Please sign in to comment.