SuLab / WikidataIntegrator

A Wikidata Python module integrating the MediaWiki API and the Wikidata SPARQL endpoint
MIT License
244 stars 46 forks source link

Review redundant dependencies in both setup.py and requirements.txt #88

Closed andrawaag closed 4 years ago

andrawaag commented 5 years ago

Currently, WDI dependencies are set in both requirements.txt and setup.py. Some of the dependencies currently set in requirements.txt need to be set in setup.py. Moving these to setup.py however, stalled the deployment to Pypi, with the direct effect of all bots being stalled. To get the bots going, I added some of the dependencies in both setup.py and requirements.txt, to have the bots running again.

Once all bots are stable, this issue needs to be revisited to get rid of the current redundancies.

stuppie commented 5 years ago

Ya, this was weird, I'm not sure why this happens, but if you have pandas in the setup.py, it fails to install. Its a known issue: https://github.com/numpy/numpy/issues/2434

andrawaag commented 5 years ago

The problem seems to originate in the order where requirements and setup.py are called. See: https://github.com/hsolbrig/PyShEx/issues/39#issuecomment-466807148 for details. An quick sollution is to first call pip requirements and then run setup.py. Using Pipenv is suggested as a better solution. We need to investigate and maybe try running one bot with pipenv

andrawaag commented 5 years ago

Pipenv indeed fixes this issue. For now I am leaving this issue open, until pipenv is deployed in all running bots