This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

v2 provides for auto-versioning in an intuitive way.


from v2 import v2

      # ...
      # ...
      setup_requires=[..., 'v2', ...],
      install_requires=[..., 'v2', ...],   # Necessary only when using
                                           # from your package root as
                                           # shown below.

From within your package root:

from v2 import v2

__version__ = v2.from_pkg().from_git().from_default().version

From within your Sphinx

sys.path.insert(0, os.path.abspath('../..'))

from v2 import v2

# ...

version = v2.from_file('../../VERSION').from_git().version

By default, v2 looks for and writes to VERSION in the project root. It is also generally necessary to bundle v2 with your package. (Sadly.) Consequently, a two-line is necessary:

include VERSION

When you pip install v2, it makes available the v2 command line tool, which provides the module and the for you.

:;  v2
18:48:51.284 Writing local copy of v2 to
18:48:51.285 Appending and VERSION to


v2 allows you to control the order in which versions are found, simply by call from_file, from_git and from_pkg in the desired order. The first one found is used; remaining searches are skipped. To obtain the version value we use .version (it’s always a string).

Writing the Version

The v2 module’s default interface object uses VERSION as the path to its version file. With .from_file it reads from this file, if present; with .imprint it writes to this file.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
v2-1.0.6.tar.gz (3.7 kB) Copy SHA256 Checksum SHA256 Source May 29, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting