RDCEP / EDE

MIT License
2 stars 1 forks source link

always derive from object + deciding on python version #2

Closed ghost closed 8 years ago

ghost commented 8 years ago

in 2.x one should always derive from object otherwise old-style classes are created which leads to some issues. in 3.x this is no longer needed.

which python version do you think we should be using? almost all deps in requirements.txt are covered by either the conda or the pip repo:

Flask flask-0.10.1-py35_1.tar.bz2 Flask-Cache https://pypi.python.org/pypi/Flask-Cache/0.13.1 flask_sqlalchemy https://pypi.python.org/pypi/Flask-SQLAlchemy/2.1 gunicorn gunicorn-19.1.0-py35_0.tar.bz2 psycopg2 psycopg2-2.6.1-py35_0.tar.bz2 geoalchemy2 https://pypi.python.org/pypi/GeoAlchemy2/ celery https://pypi.python.org/pypi/celery/3.1.20 boto boto3-1.2.3-py35_0.tar.bz2 shapely shapely-1.5.9-py34_0.tar.bz2 requests requests-2.9.1-py35_0.tar.bz2 raven https://pypi.python.org/pypi/raven/5.10.2 blinker https://pypi.python.org/pypi/blinker/1.4 Flask-WTF flask-wtf-0.11-py35_0.tar.bz2 Flask-Login flask-login-0.2.11-py35_0.tar.bz2 flask-bcrypt xxx csvkit csvkit-0.9.1-py35_0.tar.bz2 redis https://pypi.python.org/pypi/redis pytz pytz-2015.7-py35_0.tar.bz2 datetime_truncate xxx pyshp https://pypi.python.org/pypi/pyshp Flask-Mail xxx lxml lxml-3.5.0-py35_0.tar.bz2 netcdf4 netcdf4-1.2.2-np110py35_0.tar.bz2 gdal gdal-2.0.0-py35_1.tar.bz2

if there's a link it means it's covered by pip, otherwise by conda. moreover, all deps covered by conda are available for the latest python 3.5. the deps covered by pip are available as it seems for python >= 3 and most of them for >= 3.4. the deps marked in xxx do not seem to be available for conda but for pip, yet not in the latest python 3.5 version.

so it looks like we would be in quite good shape if we use python 3.5. @njmattes @ricardobarroslourenco what do you think?