Python wrapper for Vearcity's command-line interface.
Project description
Introduction
This library provides a Python wrapper for Veracity’s command-line interface. It includes objects for repositories, working copies, and other commonly-used items.
Getting Started
Requirements
Python 2.7
sh (UNIX | https://pypi-hypernode.com/pypi/sh)
pbs (Windows | https://pypi-hypernode.com/pypi/pbs)
Installation
python-veracity can be installed with pip or easy_install:
pip install python-veracity
or directly from source:
python setup.py install
After installation, the package is available under the name veracity:
python >>> import veracity
Basic Usage
A sample script might look like this:
#!/usr/bin/env python from veracity import Repo, WorkingCopy # Clone a repo repo = Repo('veracity', clone="http://public.veracity-scm.com/repos/veracity") # Check out a working copy (from repo) wc = repo.checkout("~/v/veracity") # Check out a working copy (by repo) wc2 = WorkingCopy("~/v/veracity2", repo='veracity') wc2.update(branch='onveracity') # Duplicate a working copy wc3 = wc2.copy("~/v/veracity3")
Testing
The veracity package contains unit tests which can be run from source:
python setup.py test