清理工具

make-clean的Python项目详细描述


Travis CI Build StatusAppVeyor Build Status

如果想用github页面sumodule创建sphinx存储库,就应该 排除rm_build/html/.git

make-clean包提供用于保存.git文件的功能。

make.batfile clean切换到下面:

if "%1" == "clean" (
      .\path\to\make-clean.exe _build -i _build\html\.git _build\html\.gitignore
      goto end
)

用法

这个包有一个make clean命令。

> .\venv\Scripts\make-clean.exe -h
usage: make-clean-script.py [-h] [--clean-ignore CLEAN_IGNORE]
                            [-i [IGNORE [IGNORE ...]]]
                            TARGET_DIR [TARGET_DIR ...]

clean target dir without ignores

positional arguments:
  TARGET_DIR            dir to remove recursively

optional arguments:
  -h, --help            show this help message and exit
  --clean-ignore CLEAN_IGNORE
                        dir/file file to ignore from remove
  -i [IGNORE [IGNORE ...]], --ignores [IGNORE [IGNORE ...]]
                        dir/file to ignore from remove

测试

我用pytest

> C:\path\to\python\3.X.Y\python.exe -m venv --clear venv
> .\venv\Scripts\python.exe setup.py develop easy_install make-clean[test]
> .\venv\Scripts\python.exe -m pytest

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java为扫描器的输入生成字符序列   hibernate中的java实体合并   如何使变量在Java文件中成为全局变量   java JVM崩溃“异常访问冲突”   向MediaMetadataRetriever中的setDataSource()发送Uri时发生java IllegalArgumentException   java没有节约协议?   用户界面java gui帮助actionlistener   java索引越界异常,即使大小小于索引?   在C++中使用java的困惑   在普通java编码中插入图像   JDBC上的java缓存数据   在Java中,在字符串的特定位置替换子字符串   java在运行elasticsearch集群时遇到Perm Gen空间问题   java Soap故障跟踪   java拆分器。固定长度(int)。拆分(字符串)   java获取jar内部包的路径