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.
Files changed (84) hide show
  1. {codeshift-0.3.2 → codeshift-0.3.3}/PKG-INFO +1 -1
  2. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/cli/commands/upgrade_all.py +4 -1
  3. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/scanner/dependency_parser.py +1 -1
  4. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift.egg-info/PKG-INFO +1 -1
  5. {codeshift-0.3.2 → codeshift-0.3.3}/pyproject.toml +1 -1
  6. {codeshift-0.3.2 → codeshift-0.3.3}/LICENSE +0 -0
  7. {codeshift-0.3.2 → codeshift-0.3.3}/README.md +0 -0
  8. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/__init__.py +0 -0
  9. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/analyzer/__init__.py +0 -0
  10. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/analyzer/risk_assessor.py +0 -0
  11. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/__init__.py +0 -0
  12. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/auth.py +0 -0
  13. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/config.py +0 -0
  14. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/database.py +0 -0
  15. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/main.py +0 -0
  16. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/models/__init__.py +0 -0
  17. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/models/auth.py +0 -0
  18. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/models/billing.py +0 -0
  19. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/models/migrate.py +0 -0
  20. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/models/usage.py +0 -0
  21. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/routers/__init__.py +0 -0
  22. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/routers/auth.py +0 -0
  23. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/routers/billing.py +0 -0
  24. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/routers/migrate.py +0 -0
  25. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/routers/usage.py +0 -0
  26. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/api/routers/webhooks.py +0 -0
  27. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/cli/__init__.py +0 -0
  28. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/cli/commands/__init__.py +0 -0
  29. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/cli/commands/apply.py +0 -0
  30. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/cli/commands/auth.py +0 -0
  31. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/cli/commands/diff.py +0 -0
  32. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/cli/commands/scan.py +0 -0
  33. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/cli/commands/upgrade.py +0 -0
  34. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/cli/main.py +0 -0
  35. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/cli/quota.py +0 -0
  36. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge/__init__.py +0 -0
  37. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge/cache.py +0 -0
  38. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge/generator.py +0 -0
  39. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge/models.py +0 -0
  40. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge/parser.py +0 -0
  41. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge/sources.py +0 -0
  42. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge_base/__init__.py +0 -0
  43. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge_base/libraries/fastapi.yaml +0 -0
  44. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge_base/libraries/pandas.yaml +0 -0
  45. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge_base/libraries/pydantic.yaml +0 -0
  46. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge_base/libraries/requests.yaml +0 -0
  47. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge_base/libraries/sqlalchemy.yaml +0 -0
  48. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge_base/loader.py +0 -0
  49. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/knowledge_base/models.py +0 -0
  50. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/migrator/__init__.py +0 -0
  51. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/migrator/ast_transforms.py +0 -0
  52. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/migrator/engine.py +0 -0
  53. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/migrator/llm_migrator.py +0 -0
  54. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/migrator/transforms/__init__.py +0 -0
  55. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/migrator/transforms/fastapi_transformer.py +0 -0
  56. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/migrator/transforms/pandas_transformer.py +0 -0
  57. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/migrator/transforms/pydantic_v1_to_v2.py +0 -0
  58. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/migrator/transforms/requests_transformer.py +0 -0
  59. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/migrator/transforms/sqlalchemy_transformer.py +0 -0
  60. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/scanner/__init__.py +0 -0
  61. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/scanner/code_scanner.py +0 -0
  62. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/utils/__init__.py +0 -0
  63. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/utils/api_client.py +0 -0
  64. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/utils/cache.py +0 -0
  65. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/utils/config.py +0 -0
  66. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/utils/llm_client.py +0 -0
  67. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/validator/__init__.py +0 -0
  68. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/validator/syntax_checker.py +0 -0
  69. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift/validator/test_runner.py +0 -0
  70. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift.egg-info/SOURCES.txt +0 -0
  71. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift.egg-info/dependency_links.txt +0 -0
  72. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift.egg-info/entry_points.txt +0 -0
  73. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift.egg-info/requires.txt +0 -0
  74. {codeshift-0.3.2 → codeshift-0.3.3}/codeshift.egg-info/top_level.txt +0 -0
  75. {codeshift-0.3.2 → codeshift-0.3.3}/setup.cfg +0 -0
  76. {codeshift-0.3.2 → codeshift-0.3.3}/tests/test_code_scanner.py +0 -0
  77. {codeshift-0.3.2 → codeshift-0.3.3}/tests/test_fastapi_transforms.py +0 -0
  78. {codeshift-0.3.2 → codeshift-0.3.3}/tests/test_knowledge_base.py +0 -0
  79. {codeshift-0.3.2 → codeshift-0.3.3}/tests/test_pandas_transforms.py +0 -0
  80. {codeshift-0.3.2 → codeshift-0.3.3}/tests/test_pydantic_transforms.py +0 -0
  81. {codeshift-0.3.2 → codeshift-0.3.3}/tests/test_requests_transforms.py +0 -0
  82. {codeshift-0.3.2 → codeshift-0.3.3}/tests/test_risk_assessor.py +0 -0
  83. {codeshift-0.3.2 → codeshift-0.3.3}/tests/test_sqlalchemy_transforms.py +0 -0
  84. {codeshift-0.3.2 → codeshift-0.3.3}/tests/test_syntax_checker.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codeshift
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: AI-powered CLI tool that migrates Python code to handle breaking dependency changes
5
5
  Author: PyResolve Team
6
6
  License: MIT
@@ -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("\n[bold]Running migrations...[/]\n")
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'("{name})((?:[><=!~]+[^"]*)?)"'
373
+ pattern = rf'"({name})((?:[><=!~]+[^"]*)?)"'
374
374
  replacement = rf'"\1>={new_version}"'
375
375
  content = re.sub(pattern, replacement, content, flags=re.IGNORECASE)
376
376
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codeshift
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: AI-powered CLI tool that migrates Python code to handle breaking dependency changes
5
5
  Author: PyResolve Team
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "codeshift"
7
- version = "0.3.2"
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