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 -i _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
Metadata
Release files for make-clean 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| make-clean-2.0.1.zip | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| make_clean-2.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 11.9 kB
Release files / make-clean-2.0.1.zip
| Download URL | make-clean-2.0.1.zip |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6abcfdb4d4dd4dcb0bc912ceeeb454c2f01c08f1fa4a8ebdcf7af9352f78ab62
|
|
BLAKE2b-256 checksum How to use checksums |
c1eb15a64bd09af6fa53fac32b230ab49a20587f603917b0af3eed69782f3b34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / make_clean-2.0.1-py2.py3-none-any.whl
| Download URL | make_clean-2.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
28fc990593df1d12f3fd01eddafb0028e0dc1f0b0e150d4d658b7e72138b2b20
|
|
BLAKE2b-256 checksum How to use checksums |
3815e3d3efeedb72c0164e63e8506d9ebf4bc282e33bc4204273057ef72b8ba7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |