Skip to content
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

Python 3 and PyPy fixes and some other minor cleanups #1

Merged
merged 9 commits into from Jul 14, 2014

Conversation

mgedmin
Copy link

@mgedmin mgedmin commented Feb 28, 2013

No description provided.

@mgedmin
Copy link
Author

mgedmin commented Apr 11, 2013

Ping?

@benji-york
Copy link
Owner

On Thu, Apr 11, 2013 at 5:26 AM, Marius Gedminas
notifications@github.com wrote:

Ping?

I'm still alive. I will try my best to look at your branch in the next

48 hours.

Benji York

@benji-york
Copy link
Owner

I spent some time looking over the changes and I generally like what I see. I'm a little concerned about this output:

RefactoringTool: Refactored build/src/tests/api_tests.txt
--- build/src/tests/api_tests.txt (original)
+++ build/src/tests/api_tests.txt (refactored)
@@ -39,7 +39,7 @@
>>> dist.py_version == sys.version[:3]
True

  • print dist.platform

  • print(dist.platform)
    None

[snip several similar transformations]
RefactoringTool: Files that were modified:
RefactoringTool: build/src/tests/api_tests.txt

I can't find how how this is being invoked, or what it is even (I assume it is the 2to3 tool). I would rather make the code and tests work under both python 2 and 3 than have install-time transformations happening. Can you provide any insight on what is triggering this?

@mgedmin
Copy link
Author

mgedmin commented Apr 17, 2013

Where do you see this output?

There's no file named api_tests.txt in the Manuel source tree. I suspect it might be Distribute itself (it uses 2to3, sadly, and it has a file called api_tests.txt that looks similar to this diff).

@mgedmin
Copy link
Author

mgedmin commented Jun 4, 2013

I've rebased my changes on top of the current master.

Some clarification: nothing in manuel itself relies on 2to3. tox creates virtualenvs for each Python version (under .tox); virtualenv installs distribute when run under Python 3.x, distribute uses 2to3. To my knowledge that's the only place where 2to3 gets involved while testing manuel.

(I expect soon we'll have virtualenv using setuptools 0.7, which AFAIK supports Python 3 natively, without using 2to3.)

@cjw296 cjw296 merged commit e3c29ae into benji-york:master Jul 14, 2014
@cjw296
Copy link
Collaborator

cjw296 commented Jul 14, 2014

merged in 94303b4

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.

None yet

3 participants