gyorilab / indra_db

A Database-based knowledge back-end built on and for INDRA. The INDRA Database is a service that can be set up by any user with their own content and knowledge access. Our implementation of the database is the back-end to many of our projects, providing a vast and detailed knowledge base derived from many resources.
GNU General Public License v3.0
16 stars 10 forks source link

Deploy to PyPI #179

Open cthoyt opened 3 years ago

cthoyt commented 3 years ago

It might be nice to have a copy of this on PyPI. I considered that most users won't have access to our copy of the database, but it might be convenient at least for other tools that rely on the DB such as the curation interface

pagreene commented 3 years ago

It might be worth looking into. We considered this in the past, but some of the core dependencies have at various times required custom builds (looking at you psycopg2. However, I think they have since fixed it so you can install them just using pip, so this might be doable now.

On the other hand, I do worry that putting it up on pypi may imply it is general-use software more than it currently is. I feel like I would want to comb through it to make sure it is not explicitly tied to our particular infrastructure, and best of all has a way to deploy an infrastructure on AWS (e.g. using CloudFormation). These are also all generally good things worth trying to do, although I am not sure when they will get done.

cthoyt commented 3 years ago

ooo I thought pip install psycopg2-binary was pretty reliable at the moment. I think adjusting the README a bit to imply it's not general use is still fair game, but it would be great if you got a chance to take a look into this at some point! Thanks patrick :)

pagreene commented 3 years ago

They have (last I read) retired psycopg2-binary, and for a while you had to build it directly. I think they've since worked some magic so that the build is now part of pip install psycopg2. I haven't looked at it in a while though so my memory is fuzzy.

And yeah, I will keep this in mind to look into.