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

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:

主站蜘蛛池模板: 丰都县| 宜兴市| 尼勒克县| 武义县| 仁布县| 寿宁县| 拜泉县| 布尔津县| 忻城县| 修水县| 化州市| 丰都县| 营山县| 长顺县| 西华县| 马龙县| 成安县| 成安县| 陈巴尔虎旗| 万州区| 平定县| 舒兰市| 卢湾区| 于田县| 泰兴市| 庆元县| 县级市| 凉城县| 贵溪市| 顺平县| 长沙市| 柘荣县| 通州区| 湘西| 额尔古纳市| 沈丘县| 乌兰察布市| 江孜县| 双城市| 从化市| 吉隆县|