《Python 项目构建与代码管理实战指南》
1. Atomisator 项目构建环境搭建
在开发 Atomisator 项目时,zc.buildout 是一个非常有用的工具,它可以帮助我们构建基于 egg 的应用程序,创建独立的开发环境。下面将详细介绍如何使用 zc.buildout 来搭建 Atomisator 项目的构建环境。
1.1 创建构建模板
首先,我们需要创建一个构建模板,这包括输入版本信息、描述信息、作者信息等。以下是具体的操作步骤:
Enter version (Version) ['1.0']:
Enter description ['']: description is here.
Enter long_description ['']:
Enter author (Author name) ['']: Tarek
Enter author_email (Author email) ['']: tarek@ziade.org
...
Creating template recipe
Creating directory ./atomisator.recipe.here
同时,会生成一个 __init__.py 文件,其代码如下:
# -*- coding: utf-8 -*-
"""Recipe here"""
class Recipe(object):
"""zc.buildout recipe"""
超级会员免费看
订阅专栏 解锁全文
1047

被折叠的 条评论
为什么被折叠?



