Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

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. The library also installs several command-line tools to work with Veracity’s distributed build tracking features.

Getting Started

Requirements

Dependencies

Installation

The package can be installed using pip:

pip install python-veracity

or directly from source:

python setup.py install

After installation, it is available under the name veracity:

>>> import veracity
>>> veracity.__version__

>>> from veracity import vv
>>> vv.version()
>>> vv.repos()

Scripting Interface

A sample script might look similar to the following:

#!/usr/bin/env python

from veracity import Repository, WorkingCopy, Item

# Clone a repo
repo = Repository('veracity', remote='http://public.veracity-scm.com/repos/veracity')

# Display Repository attributes
print repo.name
print repo.users
print repo.branches
print repo.tags

# Check out a working copy (from a Repository)
work = repo.checkout("~/v/veracity")
work.delete()

# Check out a working copy (by repo name)
work = WorkingCopy("~/v/veracity", repo='veracity')
work.update(branch='master')

# Change some files
item = Item('docs/GettingStarted.txt', work=work)
item.lock()

Build Tracking

This package also installs a set of command-line tools to work with Veracity’s Build Tracking feature: http://veracity-scm.com/qa/questions/123

Configuration

In your master branch, create a setup.cfg similar to the following:

[vv-tracking]

repositories = python-veracity
series = N, C
environments = W, M, L
virtualenv = True


[vv-poller]

N_branches = *
N_command = [ $( date "+%H" ) = 00 ]
N_command-nt = if %TIME:~0,2%==00 (exit /b 0) else (exit /b 1)
N_sleep = 60 * 30
N_start = Q

C_branches = master, develop, feature-*, release-*, hotfix-*
C_sleep = 60
C_start = Q


[vv-builder]

U_enter = Q
U_path = .
U_command = make depends
U_fail = UF

B_enter = U
B_path = .
B_command = make install
B_fail = BF

T_enter = B
T_path = .
T_command = make test
T_fail = TF

C_enter = T
C_path = .
C_command = make check
C_fail = CF
C_exit = D

The series, environments, and statuses must match what is defined in your repository’s build configuration page: http://SERVER.com/repos/REPO/build-setup

Poller

To run one iteration of a poller for your repository:

vv-poller <repository names>

Or, to run forever as a daemon:

vv-poller <repository names> --daemon

From within a working copy, the poller configuration can be tested using:

vv-poller --test

Builder

To run one iteration of a builder for your repository:

vv-builder <repository names> --env <environment alias>

Or, to run forever as a daemon:

vv-builder <repository names> --env <environment alias> --daemon

From within a working copy, the builder configuration can be tested using:

vv-builder --test

Unit and Integration Tests

To run the unit and integration tests for the veracity package:

python setup.py test

Metadata

Release files for python-veracity 0.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-veracity 0.0.10
File Size Uploaded Provenance Actions
python-veracity-0.0.10.zip 58.6 kB Without provenance Details for python-veracity-0.0.10.zip

Built distribution (wheel)

Table of built distributions (wheels) for python-veracity 0.0.10
File Interpreter ABI Platform Actions
python_veracity-0.0.10-py33-none-any.whl Python 3.3 none any Details for python_veracity-0.0.10-py33-none-any.whl

Total release size: 221.9 kB

Release files / python-veracity-0.0.10.zip

Download URL python-veracity-0.0.10.zip
Size 58.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b71f79f7813c9d77779f77566f1b693afda7b41714c9ee9a2134a0aa67c6ccc7
BLAKE2b-256 checksum
How to use checksums
5d9621d40d9d923356e65730207163bf52b5a61a773368f9992d1fc7b42e4ed0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / python_veracity-0.0.10-py33-none-any.whl

Download URL python_veracity-0.0.10-py33-none-any.whl
Size 163.2 kB
Tags Python 3.3
SHA-256 checksum
How to use checksums
af6fd729c43af23b89d11ccaa6f8422f2e9d2f24fb4fc0a6ec246e31a1298392
BLAKE2b-256 checksum
How to use checksums
4c1fbe6c260b49e3cb4ecbff9124ddb460e3ffe8e9ced5960707b53fd1e0e584
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for python-veracity 0.0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page