Skip to content

Python 3.x compatibility #2

Closed
Closed
@michaelsilver

Description

@michaelsilver

Looks like the futurize script, available after running pip install future, might be a good place to start. Here's a good reference: http://python-future.org/compatible_idioms.html

You can set up travis to test across all python versions like this:

diff --git a/.travis.yml b/.travis.yml
index 17306a6..116b0a4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,13 @@
 language: python
 python:
+  - "2.6"
   - "2.7"
+  - "3.2"
+  - "3.3"
+  - "3.4"
+  - "3.5"
+  - "3.5-dev" # 3.5 development branch
+  - "nightly" # currently points to 3.6-dev
 install:
   - pip install codecov pep8
   - python setup.py install

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions