Please refer to the Git site for directions on how to install a current version of Git on your system. Note that we do not recommend using a version less than 1.5 for working with Git. Versions earlier than that seemed overly complex to use.
The best way to use a version control system (and especially a distributed version control system like Git) is a subject that could span several books.
Instead of going through all of the detail of the many ways to use Git, we refer you to the Git documentation site for a long list of tutorials, online documentation, and books (both paper and ebook) for you to read that will teach you the many options you can use with Git.
A virtualenv is extremely recommended for development work.
Make a new blank virtualenv and activate it. This way, you will have all of your work isolated, preventing conflicts with anything else on which you might be working.
Do not do any easy_install’s of any sort. We will cover that in the next step.
On the TurboGears2 project pages, there are a bunch of repositories related to the turbogears project. The most important are:
The best way to prepare your development environment is to take the following steps:
python setup.py tgdevelop
and python setup.py tgdeps
python setup.py tgdevelop
and python setup.py tgdeps
book
directory for your TG2.x Docs clone, and
run python setup.py tgdevelop
and python setup.py tgdeps
After you’ve done all this, you have a working copy of the code sitting in your system. You can explore the code and begin working through any of the tickets you wish, or even on your own new features that have not yet been submitted.
Note that, for all repositories, work is to be done off of the
development
branch. Either work directly on that branch, or do the
work on a branch made from the development
branch. The master
branch is reserved for released code.
When working on your feature or ticket, make certain to add the test cases. Without them, the code will not be accepted.