清理工具

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在活动中显示转换的文件   java如何在每小时开始时使用Quartz启动cron?   用于以编程方式删除所有注释的Java正则表达式   oracle EXP实用程序通过Java仅导出少数表   java如何计算太阳黑子的方向和速度?   java为给定时间安排作业   java Linux IntelliJ Chrome WebDriverManager“Chrome(或任何其他浏览器)无法启动”   从数据包头设置Java字节数组大小的socket   java docx4j:使用Eclipse导出时,文档中的所有样式都会消失   java无法在更新通知后取消通知   java将自定义对象绑定到JMS映射消息   java是泛型堆栈构造函数的BigO   java Netbeans API:如何保存当前项目中的一个文件或所有文件?   java使用Hibernate envers时,什么可能导致奇怪的属性解析错误?   foreach使用Collection时Java ConcurrentModificationException背后的原因。删除()   mongodb Java:从Json文档读取单个值