建立长期支持的软件包
pkglts的Python项目详细描述
pkglts
构建具有长期支持的软件包
创建这个“包生成器”的基本原理是 提供三个核心功能,使python程序员尽可能简单:
- A way to add more functionality to an existing package.
- A way to keep the package structure up to date with currently known best practices.
- Remove repetitive tasks that can be automated from the list of things to do.
快速启动
创建虚拟开发环境:
$ virtualenv dvlpt
激活它:
$ (on windows)dvlpt\Scripts\activate $ (on linux)dvlpt/bin/activate
安装pkglts:
(dvlpt)$ pip install pkglts
为包创建目录:
(dvlpt)$ mkdir toto
在此目录中运行“manage”:
(dvlpt)$ cd toto (dvlpt)toto$ pmg init (dvlpt)toto$ pmg add base (dvlpt)toto$ pmg regenerate
这将为python包创建基本的最小值。添加更多选项 (有关更多选项,请参见add_option)。尤其是,因为在这个例子中 上面我们刚刚添加了'base'选项,它将创建一个'src'目录 你的密码在里面。
文件
更多文档可以在readthedocs_pkglts上找到。如果你只是想用这个包裹 你可以从一些tutorials开始。但是,如果核心功能是 不够,你想参与你可能感兴趣的发展 以及文档的developer部分。
历史记录
v2.1.0-(2017-12-06)-更好的依赖性
- handle pkg manager for dependencies