Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make specific RDBMS packages optional rather than required installs #44

Open
emiliom opened this issue Apr 7, 2016 · 1 comment
Open

Comments

@emiliom
Copy link
Member

emiliom commented Apr 7, 2016

odm2api currently requires the Python packages for all the RDBMS that it supports. In the long run, we should work towards making each of the RDBMS packages optional (except for SQLite, but that's a non-issue); users of odm2api who are never going to use, say, postgresql and mysql, shouldn't have to install those dependencies, even if we make their installation trivial as auto-installed dependencies on the upcoming odm2api conda package.

This is a low-priority issue, for now. I'm just creating it for reference.

@valentinedwv
Copy link
Member

Done in the revised setup:
extras_require={
'mysql': ['pymysql'],
'postgis': ['psycopg2'],
'sqlite': ['pyspatialite >=3.0.0'], # need to look at: http://www.gaia-gis.it/spatialite-2.4.0-4/splite-python.html
'test': ['coverage'],
},

No DB dependencies in requirements, and requirements_tests has the DB drivers:
https://raw.githubusercontent.com/ODM2/ODM2PythonAPI/setup_clean/requirements_tests.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants