Skip to content

Python3 support - #293

Merged
tdruez merged 21 commits into
developfrom
291-280-python3-support
Nov 8, 2017
Merged

Python3 support#293
tdruez merged 21 commits into
developfrom
291-280-python3-support

Conversation

@pombr

@pombr pombr commented Nov 6, 2017

Copy link
Copy Markdown

This PR covers the remaining bits for the Python 3 port #280 and fixes #291

 * also add Python to Travis test matrix
 * use the Python interepreter in the path by default on POSIX

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
 * we still have unicode and CSV issues but only a few

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
 * and fix tests accordingly

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
 * instead use a flag that is passed around as needed

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne
pombredanne force-pushed the 291-280-python3-support branch from 99c1ca3 to ea3b522 Compare November 6, 2017 13:11
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
 * Ensure CSV tests use sorted checks #280
 * use different expectations for Python 2 and 3

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
 * Use cvs and not backports.csv on Pyhton 3
 * Reference .ABOUT files consistently
 * Enable using -h as a help option shortcut
 * Improve the help for the main entry point and each
   command
 * cleanup the setup.py

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Do not subclass csv.DictReader on Python 3 #280

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Do not require backports.csv on Python3 #280

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Do not require backports.csv on Python3 #280

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>

Use proper subclass of csv.DictReader on Python 2 #280

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne

Copy link
Copy Markdown
Member

@tdruez @chinyeungli ready for your review!

@pombredanne pombredanne changed the title [WIP] python3 support Python3 support Nov 6, 2017
@pombredanne
pombredanne force-pushed the 291-280-python3-support branch from cd60a1e to 0059953 Compare November 6, 2017 16:20
@pombredanne

Copy link
Copy Markdown
Member

@tdruez This PR also incorporates all the changes you made in https://github.com/nexB/aboutcode-toolkit/compare/280-python3 and more. And it does not require nor forces the installation of unicodecsv on Python 3 thanks to this: https://github.com/nexB/aboutcode-toolkit/pull/293/files#diff-2eeaed663bd0d25b7e608891384b7298R87 ;)

@tdruez

tdruez commented Nov 7, 2017

Copy link
Copy Markdown
Contributor

@pombredanne the code looks good. configure now works fine with Python 3.6.

Almost ready for merge but first, I think we need to fix this one: https://github.com/nexB/aboutcode-toolkit/blob/291-280-python3-support/setup.py#L69

When installing aboutcode-toolkit as a library with pip, an about directory is create in the root one

pip install https://github.com/nexB/aboutcode-toolkit/archive/291-280-python3-support.zip

screen shot 2017-11-07 at 11 50 02 am

This is not needed.

chinyeungli and others added 2 commits November 8, 2017 14:11
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
 * and other setup/packaging improvements

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@tdruez
tdruez merged commit 3496dbc into develop Nov 8, 2017
@tdruez
tdruez deleted the 291-280-python3-support branch November 8, 2017 13:32
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

Successfully merging this pull request may close these issues.

Add support for python3 in the "configure" script

4 participants