mirror of
https://github.com/jongracecox/anybadge.git
synced 2025-07-21 04:11:05 +02:00
- Add `--version` to cli - Add invoke tasks: - `package.build` - `package.install` - `test.cli` - Refactor invoke task implementation - Refactor `run_pypi_tests.sh` - Split into separate files to support running locally
19 lines
403 B
Python
19 lines
403 B
Python
import glob
|
|
import subprocess
|
|
from invoke import task
|
|
|
|
|
|
def delete_files(files: str):
|
|
for file in glob.glob(files):
|
|
print(f" Deleting {file}")
|
|
subprocess.run(["rm", "-rf", file])
|
|
|
|
|
|
@task
|
|
def clean(c):
|
|
"""Clean up the project area."""
|
|
print("Cleaning the project directory...")
|
|
delete_files("dist/*")
|
|
delete_files("tests/test_*.svg")
|
|
delete_files("test_files/*")
|