codeshift 0.3.2__tar.gz → 0.3.3__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.
- {codeshift-0.3.2 → codeshift-0.3.3}/PKG-INFO +1 -1
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/cli/commands/upgrade_all.py +4 -1
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/scanner/dependency_parser.py +1 -1
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift.egg-info/PKG-INFO +1 -1
- {codeshift-0.3.2 → codeshift-0.3.3}/pyproject.toml +1 -1
- {codeshift-0.3.2 → codeshift-0.3.3}/LICENSE +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/README.md +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/__init__.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/analyzer/__init__.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/analyzer/risk_assessor.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/__init__.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/auth.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/config.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/database.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/main.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/models/__init__.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/models/auth.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/models/billing.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/models/migrate.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/models/usage.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/routers/__init__.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/routers/auth.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/routers/billing.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/routers/migrate.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/routers/usage.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/routers/webhooks.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/cli/__init__.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/cli/commands/__init__.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/cli/commands/apply.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/cli/commands/auth.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/cli/commands/diff.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/cli/commands/scan.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/cli/commands/upgrade.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/cli/main.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/cli/quota.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge/__init__.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge/cache.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge/generator.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge/models.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge/parser.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge/sources.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge_base/__init__.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge_base/libraries/fastapi.yaml +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge_base/libraries/pandas.yaml +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge_base/libraries/pydantic.yaml +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge_base/libraries/requests.yaml +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge_base/libraries/sqlalchemy.yaml +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge_base/loader.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge_base/models.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/migrator/__init__.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/migrator/ast_transforms.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/migrator/engine.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/migrator/llm_migrator.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/migrator/transforms/__init__.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/migrator/transforms/fastapi_transformer.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/migrator/transforms/pandas_transformer.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/migrator/transforms/pydantic_v1_to_v2.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/migrator/transforms/requests_transformer.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/migrator/transforms/sqlalchemy_transformer.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/scanner/__init__.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/scanner/code_scanner.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/utils/__init__.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/utils/api_client.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/utils/cache.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/utils/config.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/utils/llm_client.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/validator/__init__.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/validator/syntax_checker.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/validator/test_runner.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift.egg-info/SOURCES.txt +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift.egg-info/dependency_links.txt +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift.egg-info/entry_points.txt +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift.egg-info/requires.txt +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/codeshift.egg-info/top_level.txt +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/setup.cfg +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/tests/test_code_scanner.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/tests/test_fastapi_transforms.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/tests/test_knowledge_base.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/tests/test_pandas_transforms.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/tests/test_pydantic_transforms.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/tests/test_requests_transforms.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/tests/test_risk_assessor.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/tests/test_sqlalchemy_transforms.py +0 -0
- {codeshift-0.3.2 → codeshift-0.3.3}/tests/test_syntax_checker.py +0 -0
|
@@ -257,6 +257,7 @@ def upgrade_all(
|
|
|
257
257
|
BarColumn(),
|
|
258
258
|
TaskProgressColumn(),
|
|
259
259
|
console=console,
|
|
260
|
+
transient=True,
|
|
260
261
|
) as progress:
|
|
261
262
|
task = progress.add_task("Checking for updates...", total=len(dependencies))
|
|
262
263
|
|
|
@@ -347,9 +348,10 @@ def upgrade_all(
|
|
|
347
348
|
table.add_row(str(pkg["name"]), str(pkg["current"]), str(pkg["latest"]), type_str, tier_str)
|
|
348
349
|
|
|
349
350
|
console.print(table)
|
|
351
|
+
console.print() # Ensure table is fully rendered before progress bar
|
|
350
352
|
|
|
351
353
|
# Run upgrades for each package
|
|
352
|
-
console.print("
|
|
354
|
+
console.print("[bold]Running migrations...[/]\n")
|
|
353
355
|
|
|
354
356
|
all_results: dict[str, list[dict]] = {}
|
|
355
357
|
migration_summary: list[dict] = []
|
|
@@ -360,6 +362,7 @@ def upgrade_all(
|
|
|
360
362
|
BarColumn(),
|
|
361
363
|
TaskProgressColumn(),
|
|
362
364
|
console=console,
|
|
365
|
+
transient=True,
|
|
363
366
|
) as progress:
|
|
364
367
|
task = progress.add_task("Upgrading packages...", total=len(upgradeable))
|
|
365
368
|
|
|
@@ -370,7 +370,7 @@ class DependencyParser:
|
|
|
370
370
|
|
|
371
371
|
# Pattern for standard dependencies: "pydantic>=1.0,<2.0" or "pydantic==1.10.0"
|
|
372
372
|
# Match the package name followed by version specifiers
|
|
373
|
-
pattern = rf'(
|
|
373
|
+
pattern = rf'"({name})((?:[><=!~]+[^"]*)?)"'
|
|
374
374
|
replacement = rf'"\1>={new_version}"'
|
|
375
375
|
content = re.sub(pattern, replacement, content, flags=re.IGNORECASE)
|
|
376
376
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "codeshift"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.3"
|
|
8
8
|
description = "AI-powered CLI tool that migrates Python code to handle breaking dependency changes"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
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
|
|
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
|