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

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:

主站蜘蛛池模板: 疏附县| 遂平县| 辽中县| 姜堰市| 桦甸市| 玉门市| 平远县| 怀安县| 寻乌县| 嵩明县| 长岭县| 潮安县| 大兴区| 温州市| 镇宁| 昆山市| 东光县| 明光市| 广宁县| 九龙县| 合作市| 新闻| 新民市| 陇川县| 德钦县| 叙永县| 衡阳县| 金川县| 临湘市| 凤台县| 鹤壁市| 克东县| 临城县| 德惠市| 灵山县| 德清县| 定州市| 常德市| 昭通市| 南漳县| 香港 |