codeshift 0.2.1__tar.gz → 0.3.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.
Files changed (85) hide show
  1. {codeshift-0.2.1 → codeshift-0.3.1}/PKG-INFO +1 -1
  2. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift.egg-info/PKG-INFO +1 -1
  3. codeshift-0.3.1/pyproject.toml +73 -0
  4. codeshift-0.2.1/pyproject.toml +0 -120
  5. {codeshift-0.2.1 → codeshift-0.3.1}/LICENSE +0 -0
  6. {codeshift-0.2.1 → codeshift-0.3.1}/README.md +0 -0
  7. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/__init__.py +0 -0
  8. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/analyzer/__init__.py +0 -0
  9. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/analyzer/risk_assessor.py +0 -0
  10. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/api/__init__.py +0 -0
  11. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/api/auth.py +0 -0
  12. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/api/config.py +0 -0
  13. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/api/database.py +0 -0
  14. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/api/main.py +0 -0
  15. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/api/models/__init__.py +0 -0
  16. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/api/models/auth.py +0 -0
  17. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/api/models/billing.py +0 -0
  18. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/api/models/migrate.py +0 -0
  19. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/api/models/usage.py +0 -0
  20. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/api/routers/__init__.py +0 -0
  21. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/api/routers/auth.py +0 -0
  22. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/api/routers/billing.py +0 -0
  23. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/api/routers/migrate.py +0 -0
  24. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/api/routers/usage.py +0 -0
  25. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/api/routers/webhooks.py +0 -0
  26. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/cli/__init__.py +0 -0
  27. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/cli/commands/__init__.py +0 -0
  28. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/cli/commands/apply.py +0 -0
  29. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/cli/commands/auth.py +0 -0
  30. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/cli/commands/diff.py +0 -0
  31. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/cli/commands/scan.py +0 -0
  32. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/cli/commands/upgrade.py +0 -0
  33. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/cli/commands/upgrade_all.py +0 -0
  34. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/cli/main.py +0 -0
  35. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/cli/quota.py +0 -0
  36. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/knowledge/__init__.py +0 -0
  37. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/knowledge/cache.py +0 -0
  38. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/knowledge/generator.py +0 -0
  39. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/knowledge/models.py +0 -0
  40. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/knowledge/parser.py +0 -0
  41. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/knowledge/sources.py +0 -0
  42. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/knowledge_base/__init__.py +0 -0
  43. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/knowledge_base/libraries/fastapi.yaml +0 -0
  44. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/knowledge_base/libraries/pandas.yaml +0 -0
  45. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/knowledge_base/libraries/pydantic.yaml +0 -0
  46. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/knowledge_base/libraries/requests.yaml +0 -0
  47. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/knowledge_base/libraries/sqlalchemy.yaml +0 -0
  48. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/knowledge_base/loader.py +0 -0
  49. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/knowledge_base/models.py +0 -0
  50. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/migrator/__init__.py +0 -0
  51. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/migrator/ast_transforms.py +0 -0
  52. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/migrator/engine.py +0 -0
  53. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/migrator/llm_migrator.py +0 -0
  54. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/migrator/transforms/__init__.py +0 -0
  55. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/migrator/transforms/fastapi_transformer.py +0 -0
  56. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/migrator/transforms/pandas_transformer.py +0 -0
  57. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/migrator/transforms/pydantic_v1_to_v2.py +0 -0
  58. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/migrator/transforms/requests_transformer.py +0 -0
  59. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/migrator/transforms/sqlalchemy_transformer.py +0 -0
  60. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/scanner/__init__.py +0 -0
  61. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/scanner/code_scanner.py +0 -0
  62. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/scanner/dependency_parser.py +0 -0
  63. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/utils/__init__.py +0 -0
  64. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/utils/api_client.py +0 -0
  65. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/utils/cache.py +0 -0
  66. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/utils/config.py +0 -0
  67. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/utils/llm_client.py +0 -0
  68. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/validator/__init__.py +0 -0
  69. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/validator/syntax_checker.py +0 -0
  70. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift/validator/test_runner.py +0 -0
  71. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift.egg-info/SOURCES.txt +0 -0
  72. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift.egg-info/dependency_links.txt +0 -0
  73. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift.egg-info/entry_points.txt +0 -0
  74. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift.egg-info/requires.txt +0 -0
  75. {codeshift-0.2.1 → codeshift-0.3.1}/codeshift.egg-info/top_level.txt +0 -0
  76. {codeshift-0.2.1 → codeshift-0.3.1}/setup.cfg +0 -0
  77. {codeshift-0.2.1 → codeshift-0.3.1}/tests/test_code_scanner.py +0 -0
  78. {codeshift-0.2.1 → codeshift-0.3.1}/tests/test_fastapi_transforms.py +0 -0
  79. {codeshift-0.2.1 → codeshift-0.3.1}/tests/test_knowledge_base.py +0 -0
  80. {codeshift-0.2.1 → codeshift-0.3.1}/tests/test_pandas_transforms.py +0 -0
  81. {codeshift-0.2.1 → codeshift-0.3.1}/tests/test_pydantic_transforms.py +0 -0
  82. {codeshift-0.2.1 → codeshift-0.3.1}/tests/test_requests_transforms.py +0 -0
  83. {codeshift-0.2.1 → codeshift-0.3.1}/tests/test_risk_assessor.py +0 -0
  84. {codeshift-0.2.1 → codeshift-0.3.1}/tests/test_sqlalchemy_transforms.py +0 -0
  85. {codeshift-0.2.1 → codeshift-0.3.1}/tests/test_syntax_checker.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codeshift
3
- Version: 0.2.1
3
+ Version: 0.3.1
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: codeshift
3
- Version: 0.2.1
3
+ Version: 0.3.1
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
@@ -0,0 +1,73 @@
1
+ [build-system]
2
+ requires = [ "setuptools>=61.0", "wheel",]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "codeshift"
7
+ version = "0.3.1"
8
+ description = "AI-powered CLI tool that migrates Python code to handle breaking dependency changes"
9
+ readme = "README.md"
10
+ requires-python = ">=3.10"
11
+ keywords = [ "migration", "dependencies", "ast", "refactoring", "pydantic",]
12
+ classifiers = [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Topic :: Software Development :: Libraries :: Python Modules",]
13
+ dependencies = [ "click>=8.0", "libcst>=1.0", "anthropic>=0.20", "pyyaml>=6.0", "rich>=13.0", "toml>=0.10", "packaging>=23.0", "httpx>=0.25", "pytest>=8.4.2", "nox>=2025.11.12", "black>=24.10.0", "mypy>=1.19.1", "supabase>=2.27.2", "pre-commit>=4.5.1",]
14
+ [[project.authors]]
15
+ name = "PyResolve Team"
16
+
17
+ [dependency-groups]
18
+ dev = [ "types-pyyaml>=6.0.12.20250915", "types-toml>=0.10.8.20240310",]
19
+
20
+ [project.license]
21
+ text = "MIT"
22
+
23
+ [project.optional-dependencies]
24
+ api = [ "fastapi>=0.109.0", "uvicorn>=0.27.0", "supabase>=2.3.0", "stripe>=7.0.0", "pydantic-settings>=2.1.0", "email-validator>=2.0.0",]
25
+ dev = [ "pytest>=7.0", "pytest-cov>=4.0", "black>=24.0,<25.0", "ruff>=0.1.0", "mypy>=1.0", "nox>=2024.0", "pre-commit>=3.6.0", "types-toml>=0.10", "types-PyYAML>=6.0",]
26
+ all = [ "codeshift[api,dev]",]
27
+
28
+ [project.scripts]
29
+ codeshift = "codeshift.cli.main:cli"
30
+
31
+ [project.urls]
32
+ Homepage = "https://github.com/youssefragab/PyResolve"
33
+ Repository = "https://github.com/youssefragab/PyResolve"
34
+ Issues = "https://github.com/youssefragab/PyResolve/issues"
35
+
36
+ [tool.black]
37
+ line-length = 100
38
+ target-version = [ "py310", "py311", "py312",]
39
+
40
+ [tool.ruff]
41
+ line-length = 100
42
+ target-version = "py310"
43
+
44
+ [tool.mypy]
45
+ python_version = "3.10"
46
+ warn_return_any = true
47
+ warn_unused_ignores = true
48
+ disallow_untyped_defs = true
49
+ [[tool.mypy.overrides]]
50
+ module = "supabase.*"
51
+ ignore_missing_imports = true
52
+ ignore_errors = true
53
+
54
+ [tool.setuptools.package-data]
55
+ "codeshift.knowledge_base" = [ "libraries/*.yaml",]
56
+
57
+ [tool.pytest.ini_options]
58
+ testpaths = [ "tests",]
59
+ python_files = [ "test_*.py",]
60
+ python_functions = [ "test_*",]
61
+ addopts = "-v --tb=short"
62
+
63
+ [tool.ruff.lint]
64
+ select = [ "E", "F", "W", "I", "UP", "B", "C4",]
65
+ ignore = [ "E501",]
66
+
67
+ [tool.setuptools.packages.find]
68
+ where = [ ".",]
69
+ include = [ "codeshift*",]
70
+
71
+ [tool.ruff.lint.isort]
72
+ known-first-party = [ "codeshift",]
73
+ section-order = [ "future", "standard-library", "third-party", "first-party", "local-folder",]
@@ -1,120 +0,0 @@
1
- [build-system]
2
- requires = ["setuptools>=61.0", "wheel"]
3
- build-backend = "setuptools.build_meta"
4
-
5
- [project]
6
- name = "codeshift"
7
- version = "0.2.1"
8
- description = "AI-powered CLI tool that migrates Python code to handle breaking dependency changes"
9
- readme = "README.md"
10
- license = {text = "MIT"}
11
- requires-python = ">=3.10"
12
- authors = [
13
- {name = "PyResolve Team"}
14
- ]
15
- keywords = ["migration", "dependencies", "ast", "refactoring", "pydantic"]
16
- classifiers = [
17
- "Development Status :: 3 - Alpha",
18
- "Intended Audience :: Developers",
19
- "License :: OSI Approved :: MIT License",
20
- "Programming Language :: Python :: 3",
21
- "Programming Language :: Python :: 3.10",
22
- "Programming Language :: Python :: 3.11",
23
- "Programming Language :: Python :: 3.12",
24
- "Topic :: Software Development :: Libraries :: Python Modules",
25
- ]
26
-
27
- dependencies = [
28
- "click>=8.0",
29
- "libcst>=1.0",
30
- "anthropic>=0.20",
31
- "pyyaml>=6.0",
32
- "rich>=13.0",
33
- "toml>=0.10",
34
- "packaging>=23.0",
35
- "httpx>=0.25",
36
- "pytest>=8.4.2",
37
- "nox>=2025.11.12",
38
- "black>=24.10.0",
39
- "mypy>=1.19.1",
40
- "supabase>=2.27.2",
41
- "pre-commit>=4.5.1",
42
- ]
43
-
44
- [project.optional-dependencies]
45
- api = [
46
- "fastapi>=0.109.0",
47
- "uvicorn>=0.27.0",
48
- "supabase>=2.3.0",
49
- "stripe>=7.0.0",
50
- "pydantic-settings>=2.1.0",
51
- "email-validator>=2.0.0",
52
- ]
53
- dev = [
54
- "pytest>=7.0",
55
- "pytest-cov>=4.0",
56
- "black>=24.0,<25.0",
57
- "ruff>=0.1.0",
58
- "mypy>=1.0",
59
- "nox>=2024.0",
60
- "pre-commit>=3.6.0",
61
- "types-toml>=0.10",
62
- "types-PyYAML>=6.0",
63
- ]
64
- all = [
65
- "codeshift[api,dev]",
66
- ]
67
-
68
- [project.scripts]
69
- codeshift = "codeshift.cli.main:cli"
70
-
71
- [project.urls]
72
- Homepage = "https://github.com/youssefragab/PyResolve"
73
- Repository = "https://github.com/youssefragab/PyResolve"
74
- Issues = "https://github.com/youssefragab/PyResolve/issues"
75
-
76
- [tool.setuptools.packages.find]
77
- where = ["."]
78
- include = ["codeshift*"]
79
-
80
- [tool.setuptools.package-data]
81
- "codeshift.knowledge_base" = ["libraries/*.yaml"]
82
-
83
- [tool.pytest.ini_options]
84
- testpaths = ["tests"]
85
- python_files = ["test_*.py"]
86
- python_functions = ["test_*"]
87
- addopts = "-v --tb=short"
88
-
89
- [tool.black]
90
- line-length = 100
91
- target-version = ["py310", "py311", "py312"]
92
-
93
- [tool.ruff]
94
- line-length = 100
95
- target-version = "py310"
96
-
97
- [tool.ruff.lint]
98
- select = ["E", "F", "W", "I", "UP", "B", "C4"]
99
- ignore = ["E501"]
100
-
101
- [tool.ruff.lint.isort]
102
- known-first-party = ["codeshift"]
103
- section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
104
-
105
- [tool.mypy]
106
- python_version = "3.10"
107
- warn_return_any = true
108
- warn_unused_ignores = true
109
- disallow_untyped_defs = true
110
-
111
- [[tool.mypy.overrides]]
112
- module = "supabase.*"
113
- ignore_missing_imports = true
114
- ignore_errors = true
115
-
116
- [dependency-groups]
117
- dev = [
118
- "types-pyyaml>=6.0.12.20250915",
119
- "types-toml>=0.10.8.20240310",
120
- ]
File without changes
File without changes
File without changes