A Cleanup Utility
Project description
If one’d like to make sphinx repository with github-pages sumodule, one shoud exclude rm _build/html/.git.
make-clean package provide to keep .git file with it.
Switch make.bat file clean to below:
if "%1" == "clean" ( .\path\to\make-clean.exe _build --excludes _build\html\.git _build\html\.gitignore goto end )
Usage
This package has a make-clean command.
> .\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
Test
I use 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
make-clean-2.0.0.zip
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for make_clean-2.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bac6bc32d3c8cdd8cb477c13d037968f4003f6a05f50446c1f10deeb00de8f0 |
|
MD5 | 7ce4cfea4e86eb3652ee7f15468ffbef |
|
BLAKE2b-256 | 46f0a9a7b98a4cf1ecc1b2947943cd092a062da91a40df2dfdaff123cd0a6dd3 |