Saturday, April 23, 2011

Book Review: Porting to Python 3

Lennart Regebro sent me a copy of his Porting to Python 3 following
PyCon 2011, and now that work on my own book is nearly complete I was
finally able to sit down and study it. I have two major Python 3
porting projects ahead of me soon, and I hoped that Lennart's book
would guide those projects. I was not disappointed.

Quick Review

Inspired by Gene Ambaum and Bill Barnes' review short-cuts, here's my
review for the impatient reader:

Why I picked it up: I am preparing to port PyMOTW to Python 3 and
we are starting to study what it would take to make the switch at
work, too.

Why I finished it: At a computationally pleasing 128 pages, the
book gets right to the point, without a lot of fluff and filler.

I'd give it to: Developers with enough Python 2 code that porting
to version 3 is going to be a major project. Programmers who want to
support both 2 and 3 at the same time will also find helpful
information.

Read more...


Sunday, April 17, 2011

sphinxcontrib.spelling 1.0

What is sphinxcontrib.spelling?

sphinxcontrib.spelling is a spelling checker for Sphinx. It uses
PyEnchant to produce a report showing misspelled words.

What's New in 1.0?

This release is completely rewritten from the earlier 0.2 version. The
output includes more details about the location of unknown words in
the source files being processed, and the output is saved for
reference and review. It also includes more extensive documentation.

virtualenvwrapper 2.7.1

What is virtualenvwrapper

virtualenvwrapper is a set of extensions to Ian Bicking's virtualenv
tool. The extensions include wrappers for creating and deleting
virtual environments and otherwise managing your development workflow,
making it easier to work on more than one project at a time without
introducing conflicts in their dependencies.

What's New in 2.7.1

This release includes a fix for a minor initialization problem in 2.7
and updated installation instructions for first-time users.

Saturday, April 16, 2011

virtualenvwrapper.tmpenv 1.0

virtualenvwrapper.tmpenv is a plugin for virtualenvwrapper for
working with temporary virtual environments. After it is installed,
the mktmpenv command can be used to create a temporary virtualenv,
which is deleted automatically when it is deactivated.

Refer to the main documentation page for
installation and setup details.

Friday, April 15, 2011

virtualenvwrapper.project 1.3

virtualenvwrapper.project is a plugin for virtualenvwrapper to
extend its project-management features. Where virtualenvwrapper is
for managing virtualenv environments, project manages your
development source directories.

What's New in 1.3

  • Redo the packaging for the documentation.
  • Change the location where hooks are created for new projects to use
    VIRTUALENVWRAPPER_HOOK_DIR instead of WORKON_HOME. This
    makes 1.3 compatible with virtualenvwrapper 2.7.
  • Update the test suite and verify that all tests pass on OS X and
    Ubuntu 10.10.

Features

  1. Manages your development project work directories along with your
    virtualenv environments.
  2. Defines an API for creating templates to quickly create new
    environments consistently.
  3. Use workon command from virtualenvwrapper to switch between
    projects.
  4. User-configurable hooks for customizing new projects.

Refer to http://www.doughellmann.com/docs/virtualenvwrapper.project/
for installation and setup details.

Updated to fix broken links.

Wednesday, April 13, 2011

virtualenvwrapper 2.7

What is virtualenvwrapper

virtualenvwrapper is a set of extensions to Ian Bicking's virtualenv
tool. The extensions include wrappers for creating and deleting
virtual environments and otherwise managing your development workflow,
making it easier to work on more than one project at a time without
introducing conflicts in their dependencies.

What's New in 2.7

This release clears most of the bugs from the backlog and adds a few
new features.

  • Fix problem with space in WORKON_HOME path (#79).
  • Fix problem with argument processing in lsvirtualenv under zsh
    (#86). Thanks to Nat Williams for the bug report and patch.
  • If WORKON_HOME does not exist, create it. Patch from Carl
    Karsten. Test updates based on patches from Matt Austin
    and Hugo Lopes Tavares.
  • Merge in contributions from Paul McLanahan to fix the test harness
    to ensure that the test scripts are actually running under the
    expected shell.
  • Merge in new shell command toggleglobalsitepackages from Paul
    McLanahan. The new command changes the configuration of the active
    virtualenv to enable or disable the global site-packages
    directory.
  • Fixed some tests that were failing under ksh on Ubuntu 10.10.
  • Document the VIRTUALENVWRAPPER_VIRTUALENV variable.
  • Implement suggestion by Van Lindberg to have
    VIRTUALENVWRAPPER_HOOK_DIR and VIRTUALENVWRAPPER_LOG_DIR
    variables to control the locations of hooks and logs.
  • Enabled tab completion for showvirtualenv (#78).
  • Fixed a problem with running rmvirtualenv from within the
    environment being removed (#83).
  • Removed use of -e option in calls to grep for better portability
    (#85`).