-
Notifications
You must be signed in to change notification settings - Fork 119
Py3 compat, take II #173
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
Py3 compat, take II #173
Conversation
…ient into ethifus-py3_compatibility
setup.py
Outdated
| 'Environment :: Web Environment', | ||
| classifiers=[ | ||
| 'Programming Language :: Python', | ||
| 'Programming Language :: Python :: 3.4', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder whether we need to provide two versions for pip now, one for Python 2 and one for Python 3
|
Looks good, great work ! 👍 My only concern is about packaging, need to find out how other projects that support both Python 2 and Python 3 do it. |
|
I have no insights there unfortunately. However, pyhn has a package that is 2 and 3 compatible: https://pypi.python.org/pypi/pyhn/0.3.7, apparently it boils down to specify the supported python versions by a classifier (cf. http://www.diveintopython3.net/packaging.html, here a list https://pypi.python.org/pypi?:action=list_classifiers), i.e. adjusting setup.py. Currently it just says "Python", so it shows up with pip3: I suggest adding |
|
@blizzz sounds good, please add the classifiers 😄 |
|
Tests running with python3 fails: unittest module is not available in pip3, I have installed unittest2. |
|
@SergioBertolinSG works for me: The Travis tests with 3.5 also succeed. |
|
@blizzz yes that works, thanks. Tried with both python2 and python3, there is one failure but not related with this changes. Also, there is a warning .owncloud/test/test.py:472: DeprecationWarning: Please use assertEqual instead. 👍 |
done 🐍 |
|
Weird, now the unit tests have failures |
setup.py
Outdated
| 'Programming Language :: Python', | ||
| 'Programming Language :: Python :: 3.4', | ||
| 'Programming Language :: Python :: 2' | ||
| 'Programming Language :: Python :: 3' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you missed the commas
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😱
|
Now, still failing. This is strange, isn't it. |
|
Yeah, strange. Maybe Travis updated their Python version or changed the warning flags ? The error seems about a file that did not get closed properly. Maybe we're missing a fclose statement somewhere ? |
The last ones passing where also 2.7.10 and 3.5.0. Maybe some module got an update.
Maybe on 3. On 2.7 it's just |
|
Yes the error happens after the upgrade to requests-2.11.0, I tested this with requests-2.10.0 and it worked fine. |
|
Woohoo 👍 @SergioBertolinSG |
|
@blizzz wanna add this thing to the changelog with credits yourself ? Else I'll do it later at release time. |
|
the credits should go to @ethifus really |
|
Ok, added 7af7a5a |
|
thx 🎩 |
Rebase of #146, keep fingers crossed, if successful all kudos to @ethifus