Python 3 support using six

#14 Merged at f2a5bc1
Repository
Deleted repository
Branch
default (8899ba6f1f35)
Repository
ianb
Branch
default
Author
  1. Victor Stinner
Reviewers
Description

My changes drop support of Python 2.5 and older, Python 2.6 or later is now required. The unit test using Cheetah fail since Cheetah cannot be installed with Python 3.

Comments (9)

  1. Victor Stinner author

    Victor Stinner: Did Ian Bicking give you access to this repo as well?

    No. I'm cannot push to this repository. Please don't commit to my fork. I only forked the repo to send pull requests.

  2. Marc Abramowitz

    This looks pretty good, though I noticed that paster create doesn't work so we need a bit of work in paste/script/create_distro.py:

    $ .tox/py34/bin/paster create --template=paste_deploy helloworld version=0.1 description="Dummy app" long_description="Just a test" keywords="" author="me" author_email="nobody@nowhere.com" url="http://localhost" license_name="Crap License" zip_safe=False
    Selected and implied templates:
      PasteScript#basic_package  A basic setuptools-enabled package
      PasteDeploy#paste_deploy   A web application deployed through paste.deploy
    
    Traceback (most recent call last):
      File ".tox/py34/bin/paster", line 9, in <module>
        load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
      File "/Users/marca/dev/hg-repos/paste/haypo/pastescript/.tox/py34/lib/python3.4/site-packages/paste/script/command.py", line 105, in run
        invoke(command, command_name, options, args[1:])
      File "/Users/marca/dev/hg-repos/paste/haypo/pastescript/.tox/py34/lib/python3.4/site-packages/paste/script/command.py", line 144, in invoke
        exit_code = runner.run(args)
      File "/Users/marca/dev/hg-repos/paste/haypo/pastescript/.tox/py34/lib/python3.4/site-packages/paste/script/command.py", line 239, in run
        result = self.command()
      File "/Users/marca/dev/hg-repos/paste/haypo/pastescript/.tox/py34/lib/python3.4/site-packages/paste/script/create_distro.py", line 107, in command
        self.display_vars(vars)
      File "/Users/marca/dev/hg-repos/paste/haypo/pastescript/.tox/py34/lib/python3.4/site-packages/paste/script/create_distro.py", line 290, in display_vars
        vars.sort()
    AttributeError: 'dict_items' object has no attribute 'sort'
    
  3. Marc Abramowitz

    Booyah!

    $ tox
    ...
      py26: commands succeeded
      py27: commands succeeded
      py33: commands succeeded
      py34: commands succeeded
      pypy: commands succeeded
      congratulations :)