Conversation
…me name as the module.
|
Python 3 support is definitely on the wanted features list. I'd probably prefer to support all supported Python versions directly from the same source instead of merging this as a separate branch. I'll be honest, the main reason is I know I'd forget to merge across branches from time to time if they were maintained separately ;) You've proven Py3k support is within reach, and this definitely serves as a good starting point. Thanks, James |
|
Sure. Though I guess the question is which to make main and which to convert to? Personally I vote for py3 and 3to2 it for people, or as a package ion pypi premade. |
|
But as that's a different issue, I'll close this, and instead work out some way to automate the 3to2 and reopen perhaps, or open a new one. |
|
Had a little spare time tonight so I threw together a I opted for Update: It isn't merged to |
|
Is python-github2 packaged in debian or gentoo? Wondering because if it isn't then the user is already using pip/easy_install which does have 3to2, so I think that'd be a moot point in not working from a python 3 base. Also if the project has no deps that require python 2, it's a perfect candidate to move to the main line python rather than stick with 2.7. |
|
No, That said my point wasn't just about whether you can install the package, it is also about how robust it is. I may not have made it clear, but the simple fact there aren't a whole heap of packages with build deps on I'll also note that If a |
|
I agree with JNRowe. |
|
That there aren't a lot of packages using python 3 being a reason to not use 3 is a chicken before the egg issue. It will only apply as long as everyone applies it to their modules. That being said I don't have an issue keeping a python 3 branch up to date, as I'm going to be using this primarily in a python 3 project. On the tox run, I'm pretty sure I can get it to pass (python 3.1). The tests need to be fixed, as well as the sphinx build. The tests I don't think are responding how they should for the newest version, as in py3 the responses need to be decoded. How were the two files in tests/data/ made? I was going to see if I needed to default encode them first in the mock to act more how the urllib in 3 does. |
|
Okay, I think we're talking in circles for some reason and I'm not sure why. I'm going to fire some bullet points out, and see if we are in agreement about this.
The It isn't clear whether a These points made and it makes basically no difference whether it is To your specific points:
The
Set a cache using
After running I don't understand the Sphinx build point. Fixing it to work with a Python 3 only system would require a version of Sphinx compatible with Python 3, and the latest release isn't. Or was there another problem you're referring to? |
|
As there haven't been any alternatives proposed, or problems reported, I'm planning on merging the |
|
I've merged the If a working alternative is proposed later there are no real barriers to switching to it then. A new release with these changes will be cut before the middle of next week. Thanks, James |
|
Python 3 support via I'm pretending early Monday morning is the middle of this week ;) Thanks, James |
This is my just running 2to3 over the library, and fixing one or two things with json. Don't know if you want or need it. I'm using it for some blogofile stuff, which just bumped to python 3 for all main development, and wanted to keep using your work with my site.