Sunday, May 20, 2012

virtualenvwrapper 3.4


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

Installing

Visit the virtualenvwrapper project page for download links and
installation instructions.


Monday, May 14, 2012

cliff -- Command Line Interface Formulation Framework -- version 0.7


cliff is a framework for building command line programs. It uses
setuptools entry points to provide subcommands, output formatters, and
other extensions.

What's New In This Release?

  • Clean up interactive mode flag settting.
  • Add support for Python 2.6, contributed by heavenshell.
  • Fix multi-word commands in interactive mode.

Documentation

Documentation for cliff is hosted on readthedocs.org

Installation

Use pip:


$ pip install cliff

See the installation guide for more details.


Saturday, May 12, 2012

virtualenvwrapper 3.3


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

  • Clean up file permissions and remove shebangs from scripts not
    intended to be executed on the command line. (contributed by
    ralphbean)
  • Worked on some brittle tests.
  • Received updates to Japanese translation of the documentation from
    t2y.
  • Fix the test script and runner so the user's $WORKON_HOME is
    not erased if they do not have some test shells installed.
    (big thanks to agriffis).
  • If the hook loader is told to list plugins but is not given a hook
    name, it prints the list of core hooks.
  • Merge several fixes for path and variable handling for MSYS users
    from bwanamarko. Includes a fix for issue 138.
  • Change mkvirtualenv so it catches both -h and
    --help.
  • Fix some issues with the way temporary files are used for hook
    scripts. (contributed by agriffis)
  • Allow relative path to requirements file with
    mkvirtualenv and -r option. (barberj)
  • Make whitespace consistent. (agriffis)

Installing

Visit the virtualenvwrapper project page for download links and
installation instructions.


Monday, May 7, 2012

Determining the Name of a Process from Python


A couple of weeks ago at the OpenStack Folsom Summit, Mark McClain
pointed out an interesting code snippet he had discovered in the Nova
sources:


# nova/utils.py: 339
script_dir = os.path.dirname(inspect.stack()[-1][1])

The code is part of the logic to find a configuration file that lives
in a directory relative to where the application startup script is. It
looks at the call stack to find the main program, and picks the
filename out of the stack details.

The code seems to be taken from a response to a StackOverflow
question, and when I saw it I thought it looked like a case of someone
going to more trouble than was needed to get the information. Mark had
a similar reaction, and asked if I knew of a simpler way to determine
the program name. I did, and spent some time investigating the
different methods to see which was "best."

Read more


cliff -- Command Line Interface Formulation Framework -- version 0.5


cliff is a framework for building command line programs. It uses
setuptools entry points to provide subcommands, output formatters, and
other extensions.

What's New In This Release?

  • Asking for help about a command by prefix lists all matching
    commands.
  • Add formatters for HTML, JSON, and YAML.

Documentation

Documentation for cliff is hosted on readthedocs.org

Installation

Use pip:


$ pip install cliff

See the installation guide for more details.