官术网_书友最值得收藏!

Checking out code from a version controlsystem

Developing without a Version Control System (VCS) is strongly discouraged: you may not want to use VCS while simply following the recipes in this book. However, any project, large or small, should use a VCS wherever possible. In the next chapter, we will start developing a package, so we’ll adjust our buildout with a handy extension to support the development of products: mr.developer.

How to do it…

Edit buildout.cfg and add the following lines:

[buildout]
...
extensions = mr.developer 
sources = sources 
    
[sources] 
# repository information here
# format <name> = <kind> <url>
# my.package = svn http://example.com/svn/my.package/trunk

How it works…

By adding the mr.developer extension, we can define a new [sources] section with settings to automatically checkout our projects—at buildout time—from whatever version control system we use. This will facilitate the repetitive task of updating every package we develop.

Supported kinds of repositories are:

More information about mr.developer is available at http://pypi.python.org/pypi/mr.developer.

There’s more…

If you are interested in any of the above VCS, read more about them at:

主站蜘蛛池模板: 慈溪市| 黄山市| 镇赉县| 清远市| 拉萨市| 三原县| 新竹市| 裕民县| 旺苍县| 清流县| 台北市| 准格尔旗| 长顺县| 临朐县| 灵丘县| 威信县| 杭锦后旗| 临颍县| 古交市| 云浮市| 肃南| 丹阳市| 毕节市| 综艺| 平原县| 隆子县| 陆丰市| 桐庐县| 宣汉县| 宜宾市| 苗栗县| 呼图壁县| 泸州市| 治多县| 高尔夫| 中西区| 崇礼县| 石狮市| 宣城市| 金山区| 龙泉市|