Giter Club home page Giter Club logo

vcstools's Introduction

vcstools

The vcstools module provides a Python API for interacting with different version control systems (VCS/SCMs) It is used in tools like wstool and rosinstall, which are frequently used in ROS.

This should not be confused with vcstool (no trailing s), which provides the vcs command line tool and is otherwise unrelated to this repository, see: https://github.com/dirk-thomas/vcstool

See http://www.ros.org/doc/independent/api/vcstools/html/

Installing

See documentation

Developer Environment

When testing or doing development on vcstools, use a virtualenv:

$ virtualenv ~/vcstools_venv
$ source ~/vcstools_venv/bin/activate
$ pip install --editable /path/to/vcstools_source

At this point in any shell where you run source ~/vcstools_venv/bin/activate, you can use vcstools and evny edits to files in the vcstools source will take effect immediately. This is the effect of pip install --editable, see pip install --help.

To setup a virtualenv for Python3 simply do this (from a clean terminal):

$ virtualenv --python=python3 ~/vcstools_venv_py3
$ source ~/vcstools_venv_py3

When you're done developing, you can exit any shells where you did source .../bin/activate and delete the virtualenv folder, e.g. ~/vcstools_venv.

Testing

Use the python library nose to test:

$ python setup.py test

To test with coverage, make sure to have python-coverage installed and run:

$ python setup.py test -n  # this installs test dependencies only
$ nosetests --with-coverage --cover-package vcstools

To run python3 compatibility tests, run:

$ python3 setup.py test

Test Status

https://travis-ci.org/vcstools/vcstools.svg?branch=master

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.