openrewrite-migrate-python 0.9.2__py3-none-any.whl → 0.9.4__py3-none-any.whl
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.
- openrewrite_migrate_python/migrate/upgrade_to_python310.py +3 -0
- openrewrite_migrate_python/migrate/upgrade_to_python311.py +3 -0
- openrewrite_migrate_python/migrate/upgrade_to_python312.py +3 -0
- openrewrite_migrate_python/migrate/upgrade_to_python313.py +3 -0
- openrewrite_migrate_python/migrate/upgrade_to_python314.py +3 -0
- openrewrite_migrate_python/migrate/upgrade_to_python38.py +3 -0
- openrewrite_migrate_python/migrate/upgrade_to_python39.py +3 -0
- {openrewrite_migrate_python-0.9.2.dist-info → openrewrite_migrate_python-0.9.4.dist-info}/METADATA +1 -1
- {openrewrite_migrate_python-0.9.2.dist-info → openrewrite_migrate_python-0.9.4.dist-info}/RECORD +12 -12
- {openrewrite_migrate_python-0.9.2.dist-info → openrewrite_migrate_python-0.9.4.dist-info}/WHEEL +1 -1
- {openrewrite_migrate_python-0.9.2.dist-info → openrewrite_migrate_python-0.9.4.dist-info}/entry_points.txt +0 -0
- {openrewrite_migrate_python-0.9.2.dist-info → openrewrite_migrate_python-0.9.4.dist-info}/top_level.txt +0 -0
|
@@ -6,6 +6,7 @@ from rewrite import Recipe
|
|
|
6
6
|
from rewrite.category import CategoryDescriptor
|
|
7
7
|
from rewrite.decorators import categorize
|
|
8
8
|
from rewrite.marketplace import Python
|
|
9
|
+
from rewrite.rpc import RpcRecipe
|
|
9
10
|
|
|
10
11
|
# Define category path: Python > Migrate
|
|
11
12
|
_Migrate = [*Python, CategoryDescriptor(display_name="Migrate")]
|
|
@@ -88,4 +89,6 @@ class UpgradeToPython310(Recipe):
|
|
|
88
89
|
ReplaceThreadSetName(),
|
|
89
90
|
ReplaceThreadIsDaemon(),
|
|
90
91
|
ReplaceThreadSetDaemon(),
|
|
92
|
+
# Update project metadata, packaging, and Dockerfiles to the target version
|
|
93
|
+
RpcRecipe("org.openrewrite.python.migrate.UpgradePythonVersionTo310"),
|
|
91
94
|
]
|
|
@@ -6,6 +6,7 @@ from rewrite import Recipe
|
|
|
6
6
|
from rewrite.category import CategoryDescriptor
|
|
7
7
|
from rewrite.decorators import categorize
|
|
8
8
|
from rewrite.marketplace import Python
|
|
9
|
+
from rewrite.rpc import RpcRecipe
|
|
9
10
|
from rewrite.python.recipes import ChangeImport
|
|
10
11
|
|
|
11
12
|
# Define category path: Python > Migrate
|
|
@@ -89,4 +90,6 @@ class UpgradeToPython311(Recipe):
|
|
|
89
90
|
FindLocaleGetdefaultlocale(),
|
|
90
91
|
# re.template() -> re.compile(), re.TEMPLATE deprecated in 3.11
|
|
91
92
|
ReplaceReTemplate(),
|
|
93
|
+
# Update project metadata, packaging, and Dockerfiles to the target version
|
|
94
|
+
RpcRecipe("org.openrewrite.python.migrate.UpgradePythonVersionTo311"),
|
|
92
95
|
]
|
|
@@ -6,6 +6,7 @@ from rewrite import Recipe
|
|
|
6
6
|
from rewrite.category import CategoryDescriptor
|
|
7
7
|
from rewrite.decorators import categorize
|
|
8
8
|
from rewrite.marketplace import Python
|
|
9
|
+
from rewrite.rpc import RpcRecipe
|
|
9
10
|
from rewrite.python.recipes import ChangeImport
|
|
10
11
|
|
|
11
12
|
# Define category path: Python > Migrate
|
|
@@ -98,4 +99,6 @@ class UpgradeToPython312(Recipe):
|
|
|
98
99
|
FindShutilRmtreeOnerror(),
|
|
99
100
|
# sys.last_type/last_value/last_traceback -> sys.last_exc
|
|
100
101
|
ReplaceSysLastExcInfo(),
|
|
102
|
+
# Update project metadata, packaging, and Dockerfiles to the target version
|
|
103
|
+
RpcRecipe("org.openrewrite.python.migrate.UpgradePythonVersionTo312"),
|
|
101
104
|
]
|
|
@@ -6,6 +6,7 @@ from rewrite import Recipe
|
|
|
6
6
|
from rewrite.category import CategoryDescriptor
|
|
7
7
|
from rewrite.decorators import categorize
|
|
8
8
|
from rewrite.marketplace import Python
|
|
9
|
+
from rewrite.rpc import RpcRecipe
|
|
9
10
|
|
|
10
11
|
# Define category path: Python > Migrate
|
|
11
12
|
_Migrate = [*Python, CategoryDescriptor(display_name="Migrate")]
|
|
@@ -106,4 +107,6 @@ class UpgradeToPython313(Recipe):
|
|
|
106
107
|
FindTelnetlibModule(),
|
|
107
108
|
FindUuModule(),
|
|
108
109
|
FindXdrlibModule(),
|
|
110
|
+
# Update project metadata, packaging, and Dockerfiles to the target version
|
|
111
|
+
RpcRecipe("org.openrewrite.python.migrate.UpgradePythonVersionTo313"),
|
|
109
112
|
]
|
|
@@ -6,6 +6,7 @@ from rewrite import Recipe
|
|
|
6
6
|
from rewrite.category import CategoryDescriptor
|
|
7
7
|
from rewrite.decorators import categorize
|
|
8
8
|
from rewrite.marketplace import Python
|
|
9
|
+
from rewrite.rpc import RpcRecipe
|
|
9
10
|
|
|
10
11
|
# Define category path: Python > Migrate
|
|
11
12
|
_Migrate = [*Python, CategoryDescriptor(display_name="Migrate")]
|
|
@@ -84,4 +85,6 @@ class UpgradeToPython314(Recipe):
|
|
|
84
85
|
# urllib.parse split functions removed
|
|
85
86
|
FindUrllibParseSplitFunctions(),
|
|
86
87
|
FindUrllibParseToBytes(),
|
|
88
|
+
# Update project metadata, packaging, and Dockerfiles to the target version
|
|
89
|
+
RpcRecipe("org.openrewrite.python.migrate.UpgradePythonVersionTo314"),
|
|
87
90
|
]
|
|
@@ -6,6 +6,7 @@ from rewrite import Recipe
|
|
|
6
6
|
from rewrite.category import CategoryDescriptor
|
|
7
7
|
from rewrite.decorators import categorize
|
|
8
8
|
from rewrite.marketplace import Python
|
|
9
|
+
from rewrite.rpc import RpcRecipe
|
|
9
10
|
from rewrite.python.recipes import ChangeImport
|
|
10
11
|
|
|
11
12
|
# Define category path: Python > Migrate
|
|
@@ -92,4 +93,6 @@ class UpgradeToPython38(Recipe):
|
|
|
92
93
|
FindFunctoolsCmpToKey(),
|
|
93
94
|
# Remove obsolete __future__ imports
|
|
94
95
|
RemoveFutureImports(),
|
|
96
|
+
# Update project metadata, packaging, and Dockerfiles to the target version
|
|
97
|
+
RpcRecipe("org.openrewrite.python.migrate.UpgradePythonVersionTo38"),
|
|
95
98
|
]
|
|
@@ -6,6 +6,7 @@ from rewrite import Recipe
|
|
|
6
6
|
from rewrite.category import CategoryDescriptor
|
|
7
7
|
from rewrite.decorators import categorize
|
|
8
8
|
from rewrite.marketplace import Python
|
|
9
|
+
from rewrite.rpc import RpcRecipe
|
|
9
10
|
from rewrite.python.recipes import ChangeImport
|
|
10
11
|
|
|
11
12
|
# Define category path: Python > Migrate
|
|
@@ -122,4 +123,6 @@ class UpgradeToPython39(Recipe):
|
|
|
122
123
|
ReplaceThreadIsAlive(),
|
|
123
124
|
# HTMLParser.unescape() -> html.unescape() (removed in 3.9)
|
|
124
125
|
ReplaceHtmlParserUnescape(),
|
|
126
|
+
# Update project metadata, packaging, and Dockerfiles to the target version
|
|
127
|
+
RpcRecipe("org.openrewrite.python.migrate.UpgradePythonVersionTo39"),
|
|
125
128
|
]
|
{openrewrite_migrate_python-0.9.2.dist-info → openrewrite_migrate_python-0.9.4.dist-info}/RECORD
RENAMED
|
@@ -68,19 +68,19 @@ openrewrite_migrate_python/migrate/unittest_deprecations.py,sha256=iQHg6uB6ZGatY
|
|
|
68
68
|
openrewrite_migrate_python/migrate/upgrade_to_langchain02.py,sha256=Zifezmcewzy9JBLX2akyw7eJWI0Ztzra-Kd6kmPXTMc,1816
|
|
69
69
|
openrewrite_migrate_python/migrate/upgrade_to_langchain1.py,sha256=wMiPGM6EmL-3fc0NrxM_InErvFtXYrZFJAQgi3gKa1o,2140
|
|
70
70
|
openrewrite_migrate_python/migrate/upgrade_to_pydantic.py,sha256=Nzjdj-Lc6nuwz6mBBQo9jZUT3qEhbWdes26cwFdPVjY,9288
|
|
71
|
-
openrewrite_migrate_python/migrate/upgrade_to_python310.py,sha256=
|
|
72
|
-
openrewrite_migrate_python/migrate/upgrade_to_python311.py,sha256=
|
|
73
|
-
openrewrite_migrate_python/migrate/upgrade_to_python312.py,sha256=
|
|
74
|
-
openrewrite_migrate_python/migrate/upgrade_to_python313.py,sha256=
|
|
75
|
-
openrewrite_migrate_python/migrate/upgrade_to_python314.py,sha256=
|
|
76
|
-
openrewrite_migrate_python/migrate/upgrade_to_python38.py,sha256=
|
|
77
|
-
openrewrite_migrate_python/migrate/upgrade_to_python39.py,sha256=
|
|
71
|
+
openrewrite_migrate_python/migrate/upgrade_to_python310.py,sha256=shRV1LK2dQOS6ytCQ_bju0ynUDhHeaudqL6YfSL62Sg,3585
|
|
72
|
+
openrewrite_migrate_python/migrate/upgrade_to_python311.py,sha256=lID41ycaPrQp6jCUg33uR_4QTz9uFEvt8elgENbtZ8w,4154
|
|
73
|
+
openrewrite_migrate_python/migrate/upgrade_to_python312.py,sha256=mNYa6MUUm-4ojN0QLUad7WjnSrTER12NqPb6Wmykotw,4533
|
|
74
|
+
openrewrite_migrate_python/migrate/upgrade_to_python313.py,sha256=D9A8yUMVoOWG73ZIwFOiNaegvwGKJ-7DIvTIEinuvRs,4047
|
|
75
|
+
openrewrite_migrate_python/migrate/upgrade_to_python314.py,sha256=oCG031Dmb_oaNJVHdxPPFhOqNbjIlE1isLsXZRSNk4s,3377
|
|
76
|
+
openrewrite_migrate_python/migrate/upgrade_to_python38.py,sha256=o7J5Vk7HOYZitu7GeE886sJ8fTIIHH2lo8Z0PvcbDGo,4372
|
|
77
|
+
openrewrite_migrate_python/migrate/upgrade_to_python39.py,sha256=iXiwEPqHdbkVsqMYuAeZ7kAdjYnuj35K3-qYdVkiZzc,7969
|
|
78
78
|
openrewrite_migrate_python/migrate/urllib_deprecations.py,sha256=O67nqNeivrprYwf4QucXhNAYhPKPFTFoFBklNM8QsEA,7302
|
|
79
79
|
openrewrite_migrate_python/migrate/uu_migrations.py,sha256=p4c83AxvBY2EGW_JNOCOpgafHYrCJQhHe_wIjgMdcSk,4242
|
|
80
80
|
openrewrite_migrate_python/migrate/xdrlib_migrations.py,sha256=UhFFzz2CRlHn4eZqh7F33HgIqBcy74LV9Nrg3XfWj8I,4273
|
|
81
81
|
openrewrite_migrate_python/migrate/xml_deprecations.py,sha256=k6yd5rqsJoMp3GGwkaVoBr0BQ6BYS8-tI2EMjdk7bMM,6741
|
|
82
|
-
openrewrite_migrate_python-0.9.
|
|
83
|
-
openrewrite_migrate_python-0.9.
|
|
84
|
-
openrewrite_migrate_python-0.9.
|
|
85
|
-
openrewrite_migrate_python-0.9.
|
|
86
|
-
openrewrite_migrate_python-0.9.
|
|
82
|
+
openrewrite_migrate_python-0.9.4.dist-info/METADATA,sha256=cvUU-j4822PYIAf9tZdCHSD8PFuNxPIvK27KDjMKXjk,1509
|
|
83
|
+
openrewrite_migrate_python-0.9.4.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
|
|
84
|
+
openrewrite_migrate_python-0.9.4.dist-info/entry_points.txt,sha256=SuygzlMJiKIW19FYJVxx0hhRyzW6HTDCweY7584XpXw,138
|
|
85
|
+
openrewrite_migrate_python-0.9.4.dist-info/top_level.txt,sha256=y8dKeC9kb5GUzFraB-OhJGxjPemM3GaPdrAygz2RP0U,59
|
|
86
|
+
openrewrite_migrate_python-0.9.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|