From 1075570800f1c60ab3ff7ce3ace9c7f96d5d7ae1 Mon Sep 17 00:00:00 2001 From: Christian Zangl Date: Fri, 22 Dec 2023 20:55:56 +0100 Subject: [PATCH] fix namespace conflict, see #9 --- README.md | 5 ++++- {cli => chkbit_cli}/cli.py | 0 {cli => chkbit_cli}/main.py | 2 +- {cli => chkbit_cli}/progress.py | 0 {cli => chkbit_cli}/rate_calc.py | 0 {cli => chkbit_cli}/sparklines.py | 0 pyproject.toml | 4 ++-- 7 files changed, 7 insertions(+), 4 deletions(-) rename {cli => chkbit_cli}/cli.py (100%) rename {cli => chkbit_cli}/main.py (99%) rename {cli => chkbit_cli}/progress.py (100%) rename {cli => chkbit_cli}/rate_calc.py (100%) rename {cli => chkbit_cli}/sparklines.py (100%) diff --git a/README.md b/README.md index a09dd3d..93cc96c 100644 --- a/README.md +++ b/README.md @@ -155,6 +155,7 @@ $ chkbit -u . new ./test Processed 1 file. +- 0:00:00 elapsed - 192.31 files/second - 0.00 MB/second - 1 directory was updated @@ -171,6 +172,7 @@ $ chkbit -u . upd ./test Processed 1 file. +- 0:00:00 elapsed - 191.61 files/second - 0.00 MB/second - 1 directory was updated @@ -187,6 +189,7 @@ $ chkbit -u . DMG ./test Processed 1 file. +- 0:00:00 elapsed - 173.93 files/second - 0.00 MB/second chkbit detected damage in these files: @@ -205,7 +208,7 @@ With pipenv (install with `pipx install pipenv`): pipenv install # run chkbit -pipenv run python3 -m cli.main +pipenv run python3 -m chkbit_cli.main ``` To build a source distribution package from pyproject.toml diff --git a/cli/cli.py b/chkbit_cli/cli.py similarity index 100% rename from cli/cli.py rename to chkbit_cli/cli.py diff --git a/cli/main.py b/chkbit_cli/main.py similarity index 99% rename from cli/main.py rename to chkbit_cli/main.py index 3ccd0e8..1e7b0bc 100644 --- a/cli/main.py +++ b/chkbit_cli/main.py @@ -7,7 +7,7 @@ import threading import time from datetime import datetime, timedelta from chkbit import Context, Status, IndexThread -from cli import CLI, Progress, RateCalc, sparkify +from chkbit_cli import CLI, Progress, RateCalc, sparkify STATUS_CODES = """ diff --git a/cli/progress.py b/chkbit_cli/progress.py similarity index 100% rename from cli/progress.py rename to chkbit_cli/progress.py diff --git a/cli/rate_calc.py b/chkbit_cli/rate_calc.py similarity index 100% rename from cli/rate_calc.py rename to chkbit_cli/rate_calc.py diff --git a/cli/sparklines.py b/chkbit_cli/sparklines.py similarity index 100% rename from cli/sparklines.py rename to chkbit_cli/sparklines.py diff --git a/pyproject.toml b/pyproject.toml index 2d7d679..867b185 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ license = {file = "LICENSE"} Homepage = "https://github.com/laktak/chkbit-py" [project.scripts] -chkbit = "cli.main:main" +chkbit = "chkbit_cli.main:main" [tool.setuptools.packages.find] -include = ["chkbit","cli"] +include = ["chkbit","chkbit_cli"]