From 8fbbbb15c2cb85e3649c0bf5f27a69af034bd8ac Mon Sep 17 00:00:00 2001 From: Kelsey Jordahl Date: Wed, 16 Apr 2014 19:18:51 -0400 Subject: [PATCH] DOC: Update contributing document for Python 3 --- CONTRIBUTING.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3b112a3..fbc790f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -36,9 +36,19 @@ is a great way to get started if you'd like to make a contribution. Style ----- +- GeoPandas supports python 2 (2.6+) and python 3 (3.2+) with a single + code base. Use modern python idioms when possible that are + compatibile with both major versions, and use the + [six](https://pythonhosted.org/six) library where helpful to smooth + over the differences. Use `from __future__ import` statements where + appropriate. Test code locally in both python 2 and python 3 when + possible (all supported versions will be automatically tested on + Travis CI). + - Follow PEP 8 when possible. - Imports should be grouped with standard library imports first, 3rd-party libraries next, and geopandas imports third. Within each grouping, imports should be alphabetized. Always use absolute - imports rather than relative imports. + imports when possible, and explicit relative imports for local + imports when necessary in tests.