alembic 1.13.1__py3-none-any.whl → 1.13.3__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.
- alembic/__init__.py +1 -1
- alembic/autogenerate/api.py +3 -3
- alembic/autogenerate/compare.py +1 -1
- alembic/autogenerate/render.py +36 -15
- alembic/command.py +24 -15
- alembic/config.py +5 -10
- alembic/ddl/_autogen.py +15 -11
- alembic/ddl/base.py +5 -4
- alembic/ddl/impl.py +26 -21
- alembic/ddl/mysql.py +49 -31
- alembic/ddl/oracle.py +5 -3
- alembic/ddl/postgresql.py +2 -1
- alembic/op.pyi +19 -2
- alembic/operations/base.py +24 -10
- alembic/operations/ops.py +21 -7
- alembic/operations/schemaobj.py +6 -4
- alembic/operations/toimpl.py +14 -2
- alembic/runtime/environment.py +5 -7
- alembic/runtime/migration.py +9 -9
- alembic/script/base.py +17 -11
- alembic/script/revision.py +25 -18
- alembic/templates/async/alembic.ini.mako +4 -3
- alembic/templates/generic/alembic.ini.mako +3 -2
- alembic/templates/multidb/alembic.ini.mako +3 -2
- alembic/testing/assertions.py +13 -4
- alembic/testing/fixtures.py +20 -8
- alembic/testing/suite/test_autogen_computed.py +1 -0
- alembic/testing/suite/test_environment.py +3 -3
- alembic/util/langhelpers.py +3 -6
- alembic/util/messaging.py +9 -3
- alembic/util/sqla_compat.py +3 -5
- {alembic-1.13.1.dist-info → alembic-1.13.3.dist-info}/LICENSE +2 -2
- {alembic-1.13.1.dist-info → alembic-1.13.3.dist-info}/METADATA +1 -1
- {alembic-1.13.1.dist-info → alembic-1.13.3.dist-info}/RECORD +37 -37
- {alembic-1.13.1.dist-info → alembic-1.13.3.dist-info}/WHEEL +1 -1
- {alembic-1.13.1.dist-info → alembic-1.13.3.dist-info}/entry_points.txt +0 -0
- {alembic-1.13.1.dist-info → alembic-1.13.3.dist-info}/top_level.txt +0 -0
@@ -24,9 +24,9 @@ class MigrationTransactionTest(TestBase):
|
|
24
24
|
self.context = MigrationContext.configure(
|
25
25
|
dialect=conn.dialect, opts=opts
|
26
26
|
)
|
27
|
-
self.context.output_buffer = (
|
28
|
-
|
29
|
-
)
|
27
|
+
self.context.output_buffer = self.context.impl.output_buffer = (
|
28
|
+
io.StringIO()
|
29
|
+
)
|
30
30
|
else:
|
31
31
|
self.context = MigrationContext.configure(
|
32
32
|
connection=conn, opts=opts
|
alembic/util/langhelpers.py
CHANGED
@@ -234,20 +234,17 @@ def rev_id() -> str:
|
|
234
234
|
|
235
235
|
|
236
236
|
@overload
|
237
|
-
def to_tuple(x: Any, default: Tuple[Any, ...]) -> Tuple[Any, ...]:
|
238
|
-
...
|
237
|
+
def to_tuple(x: Any, default: Tuple[Any, ...]) -> Tuple[Any, ...]: ...
|
239
238
|
|
240
239
|
|
241
240
|
@overload
|
242
|
-
def to_tuple(x: None, default: Optional[_T] = ...) -> _T:
|
243
|
-
...
|
241
|
+
def to_tuple(x: None, default: Optional[_T] = ...) -> _T: ...
|
244
242
|
|
245
243
|
|
246
244
|
@overload
|
247
245
|
def to_tuple(
|
248
246
|
x: Any, default: Optional[Tuple[Any, ...]] = None
|
249
|
-
) -> Tuple[Any, ...]:
|
250
|
-
...
|
247
|
+
) -> Tuple[Any, ...]: ...
|
251
248
|
|
252
249
|
|
253
250
|
def to_tuple(
|
alembic/util/messaging.py
CHANGED
@@ -95,11 +95,17 @@ def msg(
|
|
95
95
|
write_outstream(sys.stdout, "\n")
|
96
96
|
else:
|
97
97
|
# left indent output lines
|
98
|
-
|
98
|
+
indent = " "
|
99
|
+
lines = textwrap.wrap(
|
100
|
+
msg,
|
101
|
+
TERMWIDTH,
|
102
|
+
initial_indent=indent,
|
103
|
+
subsequent_indent=indent,
|
104
|
+
)
|
99
105
|
if len(lines) > 1:
|
100
106
|
for line in lines[0:-1]:
|
101
|
-
write_outstream(sys.stdout,
|
102
|
-
write_outstream(sys.stdout,
|
107
|
+
write_outstream(sys.stdout, line, "\n")
|
108
|
+
write_outstream(sys.stdout, lines[-1], ("\n" if newline else ""))
|
103
109
|
if flush:
|
104
110
|
sys.stdout.flush()
|
105
111
|
|
alembic/util/sqla_compat.py
CHANGED
@@ -59,8 +59,7 @@ _CE = TypeVar("_CE", bound=Union["ColumnElement[Any]", "SchemaItem"])
|
|
59
59
|
|
60
60
|
|
61
61
|
class _CompilerProtocol(Protocol):
|
62
|
-
def __call__(self, element: Any, compiler: Any, **kw: Any) -> str:
|
63
|
-
...
|
62
|
+
def __call__(self, element: Any, compiler: Any, **kw: Any) -> str: ...
|
64
63
|
|
65
64
|
|
66
65
|
def _safe_int(value: str) -> Union[int, str]:
|
@@ -95,8 +94,7 @@ if TYPE_CHECKING:
|
|
95
94
|
|
96
95
|
def compiles(
|
97
96
|
element: Type[ClauseElement], *dialects: str
|
98
|
-
) -> Callable[[_CompilerProtocol], _CompilerProtocol]:
|
99
|
-
...
|
97
|
+
) -> Callable[[_CompilerProtocol], _CompilerProtocol]: ...
|
100
98
|
|
101
99
|
else:
|
102
100
|
from sqlalchemy.ext.compiler import compiles
|
@@ -529,7 +527,7 @@ class _textual_index_element(sql.ColumnElement):
|
|
529
527
|
self.fake_column = schema.Column(self.text.text, sqltypes.NULLTYPE)
|
530
528
|
table.append_column(self.fake_column)
|
531
529
|
|
532
|
-
def get_children(self):
|
530
|
+
def get_children(self, **kw):
|
533
531
|
return [self.fake_column]
|
534
532
|
|
535
533
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright 2009-
|
1
|
+
Copyright 2009-2024 Michael Bayer.
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
4
|
this software and associated documentation files (the "Software"), to deal in
|
@@ -16,4 +16,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
16
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
17
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
18
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
-
SOFTWARE.
|
19
|
+
SOFTWARE.
|
@@ -1,57 +1,57 @@
|
|
1
|
-
alembic/__init__.py,sha256=
|
1
|
+
alembic/__init__.py,sha256=IZLF4dqHa7mXm10zXXAxFsXBP7yE27ZxghGv3BhN-Jw,63
|
2
2
|
alembic/__main__.py,sha256=373m7-TBh72JqrSMYviGrxCHZo-cnweM8AGF8A22PmY,78
|
3
|
-
alembic/command.py,sha256=
|
4
|
-
alembic/config.py,sha256=
|
3
|
+
alembic/command.py,sha256=2tkKrIoEgPfXrGgvMRGrUXH4l-7z466DOxd7Q2XOfL8,22169
|
4
|
+
alembic/config.py,sha256=BZ7mwFRk2gq8GFNxxy9qvMUFx43YbDbQTC99OnjqiKY,22216
|
5
5
|
alembic/context.py,sha256=hK1AJOQXJ29Bhn276GYcosxeG7pC5aZRT5E8c4bMJ4Q,195
|
6
6
|
alembic/context.pyi,sha256=hUHbSnbSeEEMVkk0gDSXOq4_9edSjYzsjmmf-mL9Iao,31737
|
7
7
|
alembic/environment.py,sha256=MM5lPayGT04H3aeng1H7GQ8HEAs3VGX5yy6mDLCPLT4,43
|
8
8
|
alembic/migration.py,sha256=MV6Fju6rZtn2fTREKzXrCZM6aIBGII4OMZFix0X-GLs,41
|
9
9
|
alembic/op.py,sha256=flHtcsVqOD-ZgZKK2pv-CJ5Cwh-KJ7puMUNXzishxLw,167
|
10
|
-
alembic/op.pyi,sha256=
|
10
|
+
alembic/op.pyi,sha256=QZ1ERetxIrpZNTyg48Btn5OJhhpMId-_MLMP36RauOw,50168
|
11
11
|
alembic/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
12
|
alembic/autogenerate/__init__.py,sha256=ntmUTXhjLm4_zmqIwyVaECdpPDn6_u1yM9vYk6-553E,543
|
13
|
-
alembic/autogenerate/api.py,sha256=
|
14
|
-
alembic/autogenerate/compare.py,sha256=
|
15
|
-
alembic/autogenerate/render.py,sha256=
|
13
|
+
alembic/autogenerate/api.py,sha256=Bh-37G0PSFeT9WSfEQ-3TZoainXGLL2nsl4okv_xYc0,22173
|
14
|
+
alembic/autogenerate/compare.py,sha256=cdUBH6qsedaJsnToSOu4MfcJaI4bjUJ4VWqtBlqsSr8,44944
|
15
|
+
alembic/autogenerate/render.py,sha256=YB3C90rq7XDhjTia9GAnK6yfnVVzCROziZrbArmG9SE,35481
|
16
16
|
alembic/autogenerate/rewriter.py,sha256=uZWRkTYJoncoEJ5WY1QBRiozjyChqZDJPy4LtcRibjM,7846
|
17
17
|
alembic/ddl/__init__.py,sha256=Df8fy4Vn_abP8B7q3x8gyFwEwnLw6hs2Ljt_bV3EZWE,152
|
18
|
-
alembic/ddl/_autogen.py,sha256=
|
19
|
-
alembic/ddl/base.py,sha256=
|
20
|
-
alembic/ddl/impl.py,sha256=
|
18
|
+
alembic/ddl/_autogen.py,sha256=Blv2RrHNyF4cE6znCQXNXG5T9aO-YmiwD4Fz-qfoaWA,9275
|
19
|
+
alembic/ddl/base.py,sha256=fzGvWyvpSluIOKDQ7Ajc-i_jlDpH4j-JZFOOPxxYS-s,9986
|
20
|
+
alembic/ddl/impl.py,sha256=VggQMr6aqeVw12Cj4EqJpiETMhbrwIiG22HEJtPcR4s,29067
|
21
21
|
alembic/ddl/mssql.py,sha256=ydvgBSaftKYjaBaMyqius66Ta4CICQSj79Og3Ed2atY,14219
|
22
|
-
alembic/ddl/mysql.py,sha256=
|
23
|
-
alembic/ddl/oracle.py,sha256=
|
24
|
-
alembic/ddl/postgresql.py,sha256=
|
22
|
+
alembic/ddl/mysql.py,sha256=kXOGYmpnL_9WL3ijXNsG4aAwy3m1HWJOoLZSePzmJF0,17316
|
23
|
+
alembic/ddl/oracle.py,sha256=669YlkcZihlXFbnXhH2krdrvDry8q5pcUGfoqkg_R6Y,6243
|
24
|
+
alembic/ddl/postgresql.py,sha256=GNCnx-N8UsCIstfW49J8ivYcKgRB8KFNPRgNtORC_AM,29883
|
25
25
|
alembic/ddl/sqlite.py,sha256=wLXhb8bJWRspKQTb-iVfepR4LXYgOuEbUWKX5qwDhIQ,7570
|
26
26
|
alembic/operations/__init__.py,sha256=e0KQSZAgLpTWvyvreB7DWg7RJV_MWSOPVDgCqsd2FzY,318
|
27
|
-
alembic/operations/base.py,sha256=
|
27
|
+
alembic/operations/base.py,sha256=JRaOtPqyqfaPjzGHxuP9VMcO1KsJNmbbLOvwG82qxGA,74474
|
28
28
|
alembic/operations/batch.py,sha256=YqtD4hJ3_RkFxvI7zbmBwxcLEyLHYyWQpsz4l5L85yI,26943
|
29
|
-
alembic/operations/ops.py,sha256=
|
30
|
-
alembic/operations/schemaobj.py,sha256=
|
31
|
-
alembic/operations/toimpl.py,sha256=
|
29
|
+
alembic/operations/ops.py,sha256=guIpLQzlqgkdP2LGDW8vWg_DXeAouEldiVZDgRas7YI,94953
|
30
|
+
alembic/operations/schemaobj.py,sha256=Wp-bBe4a8lXPTvIHJttBY0ejtpVR5Jvtb2kI-U2PztQ,9468
|
31
|
+
alembic/operations/toimpl.py,sha256=Fx-UKcq6S8pVtsEwPFjTKtEcAVKjfptn-BfpE1k3_ck,7517
|
32
32
|
alembic/runtime/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
33
|
-
alembic/runtime/environment.py,sha256=
|
34
|
-
alembic/runtime/migration.py,sha256=
|
33
|
+
alembic/runtime/environment.py,sha256=SkYB_am1h3FSG8IsExAQxGP_7WwzOVigqjlO747Aokc,41497
|
34
|
+
alembic/runtime/migration.py,sha256=sku7-2_TralZQnNeoDaEFlydTStL-SJechbr9K8AHJs,50093
|
35
35
|
alembic/script/__init__.py,sha256=lSj06O391Iy5avWAiq8SPs6N8RBgxkSPjP8wpXcNDGg,100
|
36
|
-
alembic/script/base.py,sha256=
|
37
|
-
alembic/script/revision.py,sha256=
|
36
|
+
alembic/script/base.py,sha256=XLNpdsLnBBSz4ZKMFUArFUdtL1HcjtuUDHNbA-5VlZA,37809
|
37
|
+
alembic/script/revision.py,sha256=NTu-eu5Y78u4NoVXpT0alpD2oL40SGATA2sEMEf1el4,62306
|
38
38
|
alembic/script/write_hooks.py,sha256=NGB6NGgfdf7HK6XNNpSKqUCfzxazj-NRUePgFx7MJSM,5036
|
39
39
|
alembic/templates/async/README,sha256=ISVtAOvqvKk_5ThM5ioJE-lMkvf9IbknFUFVU_vPma4,58
|
40
|
-
alembic/templates/async/alembic.ini.mako,sha256=
|
40
|
+
alembic/templates/async/alembic.ini.mako,sha256=7VfUJqH9tEsydKOOmpnGFTsERHWhs7ghORuASnJb_Co,3632
|
41
41
|
alembic/templates/async/env.py,sha256=zbOCf3Y7w2lg92hxSwmG1MM_7y56i_oRH4AKp0pQBYo,2389
|
42
42
|
alembic/templates/async/script.py.mako,sha256=MEqL-2qATlST9TAOeYgscMn1uy6HUS9NFvDgl93dMj8,635
|
43
43
|
alembic/templates/generic/README,sha256=MVlc9TYmr57RbhXET6QxgyCcwWP7w-vLkEsirENqiIQ,38
|
44
|
-
alembic/templates/generic/alembic.ini.mako,sha256=
|
44
|
+
alembic/templates/generic/alembic.ini.mako,sha256=5wy1rOdDJjHbeEnieycSaZ9tz6AM6hONYk4RiOVXnmk,3740
|
45
45
|
alembic/templates/generic/env.py,sha256=TLRWOVW3Xpt_Tpf8JFzlnoPn_qoUu8UV77Y4o9XD6yI,2103
|
46
46
|
alembic/templates/generic/script.py.mako,sha256=MEqL-2qATlST9TAOeYgscMn1uy6HUS9NFvDgl93dMj8,635
|
47
47
|
alembic/templates/multidb/README,sha256=dWLDhnBgphA4Nzb7sNlMfCS3_06YqVbHhz-9O5JNqyI,606
|
48
|
-
alembic/templates/multidb/alembic.ini.mako,sha256=
|
48
|
+
alembic/templates/multidb/alembic.ini.mako,sha256=oThPQgzkg-NOcbsSXIemi-Lg4nib3G6hDHKdejjtJIM,3834
|
49
49
|
alembic/templates/multidb/env.py,sha256=6zNjnW8mXGUk7erTsAvrfhvqoczJ-gagjVq1Ypg2YIQ,4230
|
50
50
|
alembic/templates/multidb/script.py.mako,sha256=N06nMtNSwHkgl0EBXDyMt8njp9tlOesR583gfq21nbY,1090
|
51
51
|
alembic/testing/__init__.py,sha256=kOxOh5nwmui9d-_CCq9WA4Udwy7ITjm453w74CTLZDo,1159
|
52
|
-
alembic/testing/assertions.py,sha256=
|
52
|
+
alembic/testing/assertions.py,sha256=ScUb1sVopIl70BirfHUJDvwswC70Q93CiIWwkiZbhHg,5207
|
53
53
|
alembic/testing/env.py,sha256=zJacVb_z6uLs2U1TtkmnFH9P3_F-3IfYbVv4UEPOvfo,10754
|
54
|
-
alembic/testing/fixtures.py,sha256=
|
54
|
+
alembic/testing/fixtures.py,sha256=nBntOynOmVCFc7IYiN3DIQ3TBNTfiGCvL_1-FyCry8o,9462
|
55
55
|
alembic/testing/requirements.py,sha256=dKeAO1l5TwBqXarJN-IPORlCqCJv-41Dj6oXoEikxHQ,5133
|
56
56
|
alembic/testing/schemacompare.py,sha256=N5UqSNCOJetIKC4vKhpYzQEpj08XkdgIoqBmEPQ3tlc,4838
|
57
57
|
alembic/testing/util.py,sha256=CQrcQDA8fs_7ME85z5ydb-Bt70soIIID-qNY1vbR2dg,3350
|
@@ -61,23 +61,23 @@ alembic/testing/plugin/bootstrap.py,sha256=9C6wtjGrIVztZ928w27hsQE0KcjDLIUtUN3dv
|
|
61
61
|
alembic/testing/suite/__init__.py,sha256=MvE7-hwbaVN1q3NM-ztGxORU9dnIelUCINKqNxewn7Y,288
|
62
62
|
alembic/testing/suite/_autogen_fixtures.py,sha256=cDq1pmzHe15S6dZPGNC6sqFaCQ3hLT_oPV2IDigUGQ0,9880
|
63
63
|
alembic/testing/suite/test_autogen_comments.py,sha256=aEGqKUDw4kHjnDk298aoGcQvXJWmZXcIX_2FxH4cJK8,6283
|
64
|
-
alembic/testing/suite/test_autogen_computed.py,sha256=
|
64
|
+
alembic/testing/suite/test_autogen_computed.py,sha256=CXAeF-5Wr2cmW8PB7ztHG_4ZQsn1gSWrHWfxi72grNU,6147
|
65
65
|
alembic/testing/suite/test_autogen_diffs.py,sha256=T4SR1n_kmcOKYhR4W1-dA0e5sddJ69DSVL2HW96kAkE,8394
|
66
66
|
alembic/testing/suite/test_autogen_fks.py,sha256=AqFmb26Buex167HYa9dZWOk8x-JlB1OK3bwcvvjDFaU,32927
|
67
67
|
alembic/testing/suite/test_autogen_identity.py,sha256=kcuqngG7qXAKPJDX4U8sRzPKHEJECHuZ0DtuaS6tVkk,5824
|
68
|
-
alembic/testing/suite/test_environment.py,sha256=
|
68
|
+
alembic/testing/suite/test_environment.py,sha256=OwD-kpESdLoc4byBrGrXbZHvqtPbzhFCG4W9hJOJXPQ,11877
|
69
69
|
alembic/testing/suite/test_op.py,sha256=2XQCdm_NmnPxHGuGj7hmxMzIhKxXNotUsKdACXzE1mM,1343
|
70
70
|
alembic/util/__init__.py,sha256=KSZ7UT2YzH6CietgUtljVoE3QnGjoFKOi7RL5sgUxrk,1688
|
71
71
|
alembic/util/compat.py,sha256=RjHdQa1NomU3Zlvgfvza0OMiSRQSLRL3xVl3OdUy2UE,2594
|
72
72
|
alembic/util/editor.py,sha256=JIz6_BdgV8_oKtnheR6DZoB7qnrHrlRgWjx09AsTsUw,2546
|
73
73
|
alembic/util/exc.py,sha256=KQTru4zcgAmN4IxLMwLFS56XToUewaXB7oOLcPNjPwg,98
|
74
|
-
alembic/util/langhelpers.py,sha256=
|
75
|
-
alembic/util/messaging.py,sha256=
|
74
|
+
alembic/util/langhelpers.py,sha256=LpOcovnhMnP45kTt8zNJ4BHpyQrlF40OL6yDXjqKtsE,10026
|
75
|
+
alembic/util/messaging.py,sha256=BxAHiJsYHBPb2m8zv4yaueSRAlVuYXWkRCeN02JXhqw,3250
|
76
76
|
alembic/util/pyfiles.py,sha256=zltVdcwEJJCPS2gHsQvkHkQakuF6wXiZ6zfwHbGNT0g,3489
|
77
|
-
alembic/util/sqla_compat.py,sha256=
|
78
|
-
alembic-1.13.
|
79
|
-
alembic-1.13.
|
80
|
-
alembic-1.13.
|
81
|
-
alembic-1.13.
|
82
|
-
alembic-1.13.
|
83
|
-
alembic-1.13.
|
77
|
+
alembic/util/sqla_compat.py,sha256=XMfZaLdbVbJoniNUyI3RUUXu4gCWljjVBbJ7db6vCgc,19526
|
78
|
+
alembic-1.13.3.dist-info/LICENSE,sha256=zhnnuit3ylhLgqZ5KFbhOOswsxHIlrB2wJpAXuRfvuk,1059
|
79
|
+
alembic-1.13.3.dist-info/METADATA,sha256=6CGNPkq-FufkoGWO6PUhx64LztmqCUAyhbObbop42yQ,7390
|
80
|
+
alembic-1.13.3.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
81
|
+
alembic-1.13.3.dist-info/entry_points.txt,sha256=aykM30soxwGN0pB7etLc1q0cHJbL9dy46RnK9VX4LLw,48
|
82
|
+
alembic-1.13.3.dist-info/top_level.txt,sha256=FwKWd5VsPFC8iQjpu1u9Cn-JnK3-V1RhUCmWqz1cl-s,8
|
83
|
+
alembic-1.13.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|