splent-cli 1.4.0__tar.gz → 1.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {splent_cli-1.4.0/src/splent_cli.egg-info → splent_cli-1.4.1}/PKG-INFO +1 -1
- {splent_cli-1.4.0 → splent_cli-1.4.1}/pyproject.toml +1 -1
- splent_cli-1.4.1/src/splent_cli/commands/clear_cache.py +64 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/services/release.py +4 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1/src/splent_cli.egg-info}/PKG-INFO +1 -1
- splent_cli-1.4.0/src/splent_cli/commands/clear_cache.py +0 -75
- {splent_cli-1.4.0 → splent_cli-1.4.1}/LICENSE +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/README.md +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/setup.cfg +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/__init__.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/__main__.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/cli.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/__init__.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/cache/__init__.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/cache/cache_clear.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/cache/cache_orphans.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/cache/cache_outdated.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/cache/cache_prune.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/cache/cache_size.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/cache/cache_status.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/cache/cache_usage.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/cache/cache_versions.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/check/__init__.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/check/check_deps.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/check/check_docker.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/check/check_env.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/check/check_features.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/check/check_github.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/check/check_infra.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/check/check_product.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/check/check_pypi.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/check/check_pyproject.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/clear_log.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/clear_uploads.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/command_create.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/coverage.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/database/db_console.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/database/db_dump.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/database/db_migrate.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/database/db_reset.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/database/db_restore.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/database/db_rollback.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/database/db_seed.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/database/db_status.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/database/db_upgrade.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/doctor.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/env/env_list.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/env/env_set.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/env/env_show.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/export_puml.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_add.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_attach.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_clone.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_contract.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_create.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_delete.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_detach.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_diff.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_discard.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_drift.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_edit.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_env.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_fork.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_git.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_hook_add.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_hook_remove.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_hooks.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_inject_config.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_list.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_order.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_outdated.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_pin.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_pip_install.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_pull.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_release.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_remove.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_rename.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_search.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_status.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_sync_template.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_test.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_translate.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_upgrade.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_versions.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_xray.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature_compile.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/linter.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/locust.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/__init__.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_build.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_clean.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_commands.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_complete.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_config.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_configure.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_console.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_create.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_deploy.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_derive.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_deselect.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_down.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_drift.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_env.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_list.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_logs.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_missing.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_port.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_release.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_restart.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_routes.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_run.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_select.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_shell.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_signals.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_status.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_sync.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_sync_template.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_test.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_up.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_validate.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/release/__init__.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/release/release_core.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/selenium.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/spl/__init__.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/spl/spl_add_feature.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/spl/spl_configs.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/spl/spl_create.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/spl/spl_deps.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/spl/spl_features.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/spl/spl_fetch.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/spl/spl_fix.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/spl/spl_info.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/spl/spl_list.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/spl/spl_utils.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/tokens.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/uvl/uvl_utils.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/version.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/services/__init__.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/services/compose.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/services/context.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/services/preflight.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/utils/__init__.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/utils/cache_utils.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/utils/command_loader.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/utils/contract_freshness.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/utils/db_utils.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/utils/decorators.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/utils/dynamic_imports.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/utils/feature_installer.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/utils/feature_utils.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/utils/git_url.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/utils/integrity.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/utils/lifecycle.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/utils/manifest.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/utils/path_utils.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/utils/template_drift.py +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli.egg-info/SOURCES.txt +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli.egg-info/dependency_links.txt +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli.egg-info/entry_points.txt +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli.egg-info/requires.txt +0 -0
- {splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: splent_cli
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.1
|
|
4
4
|
Summary: SPLENT-CLI is a CLI to be able to work on your development more easily.
|
|
5
5
|
Author-email: DiversoLab <diversolab@us.es>
|
|
6
6
|
Project-URL: Homepage, https://github.com/diverso-lab/splent_cli
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import click
|
|
2
|
+
import shutil
|
|
3
|
+
import os
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
|
|
6
|
+
from splent_cli.utils.path_utils import PathUtils
|
|
7
|
+
from splent_cli.services import context
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def clean_build_artifacts(target_path: str | Path, *, quiet: bool = False):
|
|
11
|
+
"""Remove __pycache__, .pyc, .pytest_cache, build/, dist/, and *.egg-info
|
|
12
|
+
under *target_path*.
|
|
13
|
+
|
|
14
|
+
When *quiet* is True only errors are printed (used by the release pipeline).
|
|
15
|
+
"""
|
|
16
|
+
root = Path(target_path)
|
|
17
|
+
|
|
18
|
+
# dist/ and build/
|
|
19
|
+
for name in ("dist", "build"):
|
|
20
|
+
d = root / name
|
|
21
|
+
if d.exists():
|
|
22
|
+
shutil.rmtree(d, ignore_errors=True)
|
|
23
|
+
|
|
24
|
+
# *.egg-info
|
|
25
|
+
for d in root.glob("**/*.egg-info"):
|
|
26
|
+
shutil.rmtree(d, ignore_errors=True)
|
|
27
|
+
|
|
28
|
+
# .pytest_cache
|
|
29
|
+
for d in root.rglob(".pytest_cache"):
|
|
30
|
+
shutil.rmtree(d, ignore_errors=True)
|
|
31
|
+
|
|
32
|
+
# __pycache__
|
|
33
|
+
removed = 0
|
|
34
|
+
for d in root.rglob("__pycache__"):
|
|
35
|
+
try:
|
|
36
|
+
shutil.rmtree(d)
|
|
37
|
+
removed += 1
|
|
38
|
+
except Exception as e:
|
|
39
|
+
if not quiet:
|
|
40
|
+
click.secho(f" warn: could not remove {d}: {e}", fg="yellow")
|
|
41
|
+
|
|
42
|
+
# stray .pyc files
|
|
43
|
+
for f in root.rglob("*.pyc"):
|
|
44
|
+
try:
|
|
45
|
+
f.unlink()
|
|
46
|
+
except Exception:
|
|
47
|
+
pass
|
|
48
|
+
|
|
49
|
+
if not quiet:
|
|
50
|
+
click.secho(f" Cleared build artifacts ({removed} __pycache__ dirs removed).", fg="green")
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
@click.command(
|
|
54
|
+
"clear:pycache",
|
|
55
|
+
short_help="Clear __pycache__, .pytest_cache and build artifacts from the workspace.",
|
|
56
|
+
)
|
|
57
|
+
def clear_cache():
|
|
58
|
+
if not click.confirm(
|
|
59
|
+
"Are you sure you want to clear caches and build artifacts?"
|
|
60
|
+
):
|
|
61
|
+
click.secho(" Cancelled.", fg="yellow")
|
|
62
|
+
return
|
|
63
|
+
|
|
64
|
+
clean_build_artifacts(context.workspace())
|
|
@@ -393,6 +393,10 @@ def run_release_pipeline(
|
|
|
393
393
|
|
|
394
394
|
repo = get_repo_from_path(path)
|
|
395
395
|
create_github_release(repo, tag, os.getenv("GITHUB_TOKEN"))
|
|
396
|
+
|
|
397
|
+
from splent_cli.commands.clear_cache import clean_build_artifacts
|
|
398
|
+
clean_build_artifacts(path, quiet=True)
|
|
399
|
+
|
|
396
400
|
build_and_upload_pypi(path)
|
|
397
401
|
|
|
398
402
|
if post_pypi_hook:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: splent_cli
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.1
|
|
4
4
|
Summary: SPLENT-CLI is a CLI to be able to work on your development more easily.
|
|
5
5
|
Author-email: DiversoLab <diversolab@us.es>
|
|
6
6
|
Project-URL: Homepage, https://github.com/diverso-lab/splent_cli
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import click
|
|
2
|
-
import shutil
|
|
3
|
-
import os
|
|
4
|
-
|
|
5
|
-
from splent_cli.utils.path_utils import PathUtils
|
|
6
|
-
from splent_cli.services import context
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
@click.command(
|
|
10
|
-
"clear:pycache",
|
|
11
|
-
short_help="Clear __pycache__, .pytest_cache and build artifacts from the workspace.",
|
|
12
|
-
)
|
|
13
|
-
def clear_cache():
|
|
14
|
-
if click.confirm(
|
|
15
|
-
"Are you sure you want to clear the pytest cache and the build directory?"
|
|
16
|
-
):
|
|
17
|
-
project_root = context.workspace()
|
|
18
|
-
|
|
19
|
-
pytest_cache_dir = os.path.join(PathUtils.get_modules_dir(), ".pytest_cache")
|
|
20
|
-
|
|
21
|
-
build_dir = str(project_root / "build")
|
|
22
|
-
|
|
23
|
-
if os.path.exists(pytest_cache_dir):
|
|
24
|
-
try:
|
|
25
|
-
shutil.rmtree(pytest_cache_dir)
|
|
26
|
-
click.echo(click.style("Pytest cache cleared.", fg="green"))
|
|
27
|
-
except Exception as e:
|
|
28
|
-
click.echo(click.style(f"Failed to clear pytest cache: {e}", fg="red"))
|
|
29
|
-
else:
|
|
30
|
-
click.echo(
|
|
31
|
-
click.style("No pytest cache found. Nothing to clear.", fg="yellow")
|
|
32
|
-
)
|
|
33
|
-
|
|
34
|
-
if os.path.exists(build_dir):
|
|
35
|
-
try:
|
|
36
|
-
shutil.rmtree(build_dir)
|
|
37
|
-
click.echo(click.style("Build directory cleared.", fg="green"))
|
|
38
|
-
except Exception as e:
|
|
39
|
-
click.echo(
|
|
40
|
-
click.style(f"Failed to clear build directory: {e}", fg="red")
|
|
41
|
-
)
|
|
42
|
-
else:
|
|
43
|
-
click.echo(
|
|
44
|
-
click.style(
|
|
45
|
-
"No cache or build directory found. Nothing to clear.",
|
|
46
|
-
fg="yellow",
|
|
47
|
-
)
|
|
48
|
-
)
|
|
49
|
-
|
|
50
|
-
pycache_dirs = project_root.rglob("__pycache__")
|
|
51
|
-
for dir in pycache_dirs:
|
|
52
|
-
try:
|
|
53
|
-
shutil.rmtree(dir)
|
|
54
|
-
except Exception as e:
|
|
55
|
-
click.echo(
|
|
56
|
-
click.style(
|
|
57
|
-
f"Failed to clear __pycache__ directory {dir}: {e}",
|
|
58
|
-
fg="red",
|
|
59
|
-
)
|
|
60
|
-
)
|
|
61
|
-
click.echo(click.style("All __pycache__ directories cleared.", fg="green"))
|
|
62
|
-
|
|
63
|
-
pyc_files = project_root.rglob("*.pyc")
|
|
64
|
-
for file in pyc_files:
|
|
65
|
-
try:
|
|
66
|
-
file.unlink()
|
|
67
|
-
except Exception as e:
|
|
68
|
-
click.echo(
|
|
69
|
-
click.style(f"Failed to clear .pyc file {file}: {e}", fg="red")
|
|
70
|
-
)
|
|
71
|
-
|
|
72
|
-
click.echo(click.style("All cache cleared.", fg="green"))
|
|
73
|
-
|
|
74
|
-
else:
|
|
75
|
-
click.echo(click.style("Clear operation cancelled.", fg="yellow"))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_hook_remove.py
RENAMED
|
File without changes
|
|
File without changes
|
{splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_inject_config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_pip_install.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/feature/feature_sync_template.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{splent_cli-1.4.0 → splent_cli-1.4.1}/src/splent_cli/commands/product/product_sync_template.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|