alembic 1.11.1__py3-none-any.whl → 1.11.2__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 +0 -2
- alembic/autogenerate/compare.py +12 -23
- alembic/autogenerate/render.py +18 -36
- alembic/command.py +0 -1
- alembic/config.py +0 -2
- alembic/ddl/impl.py +10 -5
- alembic/ddl/mssql.py +2 -5
- alembic/ddl/mysql.py +0 -1
- alembic/ddl/postgresql.py +31 -10
- alembic/ddl/sqlite.py +0 -2
- alembic/op.pyi +29 -17
- alembic/operations/base.py +29 -17
- alembic/operations/batch.py +4 -5
- alembic/operations/ops.py +49 -24
- alembic/operations/toimpl.py +18 -4
- alembic/runtime/environment.py +0 -1
- alembic/runtime/migration.py +0 -4
- alembic/script/base.py +3 -7
- alembic/script/revision.py +0 -4
- alembic/script/write_hooks.py +8 -7
- alembic/templates/async/script.py.mako +6 -4
- alembic/templates/generic/script.py.mako +6 -4
- alembic/templates/multidb/script.py.mako +6 -4
- alembic/testing/assertions.py +0 -3
- alembic/testing/env.py +0 -3
- alembic/testing/fixtures.py +0 -2
- alembic/testing/suite/_autogen_fixtures.py +0 -1
- alembic/util/langhelpers.py +0 -1
- alembic/util/pyfiles.py +0 -1
- alembic/util/sqla_compat.py +0 -1
- {alembic-1.11.1.dist-info → alembic-1.11.2.dist-info}/METADATA +1 -1
- {alembic-1.11.1.dist-info → alembic-1.11.2.dist-info}/RECORD +37 -37
- {alembic-1.11.1.dist-info → alembic-1.11.2.dist-info}/WHEEL +1 -1
- {alembic-1.11.1.dist-info → alembic-1.11.2.dist-info}/LICENSE +0 -0
- {alembic-1.11.1.dist-info → alembic-1.11.2.dist-info}/entry_points.txt +0 -0
- {alembic-1.11.1.dist-info → alembic-1.11.2.dist-info}/top_level.txt +0 -0
alembic/testing/assertions.py
CHANGED
@@ -64,7 +64,6 @@ def assert_raises_message_context_ok(
|
|
64
64
|
def _assert_raises(
|
65
65
|
except_cls, callable_, args, kwargs, msg=None, check_context=False
|
66
66
|
):
|
67
|
-
|
68
67
|
with _expect_raises(except_cls, msg, check_context) as ec:
|
69
68
|
callable_(*args, **kwargs)
|
70
69
|
return ec.error
|
@@ -104,7 +103,6 @@ def expect_raises_message(except_cls, msg, check_context=True):
|
|
104
103
|
|
105
104
|
|
106
105
|
def eq_ignore_whitespace(a, b, msg=None):
|
107
|
-
|
108
106
|
a = re.sub(r"^\s+?|\n", "", a)
|
109
107
|
a = re.sub(r" {2,}", " ", a)
|
110
108
|
b = re.sub(r"^\s+?|\n", "", b)
|
@@ -120,7 +118,6 @@ def _get_dialect(name):
|
|
120
118
|
if name is None or name == "default":
|
121
119
|
return default.DefaultDialect()
|
122
120
|
else:
|
123
|
-
|
124
121
|
d = sqla_compat._create_url(name).get_dialect()()
|
125
122
|
|
126
123
|
if name == "postgresql":
|
alembic/testing/env.py
CHANGED
@@ -22,10 +22,8 @@ def _get_staging_directory():
|
|
22
22
|
|
23
23
|
|
24
24
|
def staging_env(create=True, template="generic", sourceless=False):
|
25
|
-
|
26
25
|
cfg = _testing_config()
|
27
26
|
if create:
|
28
|
-
|
29
27
|
path = os.path.join(_get_staging_directory(), "scripts")
|
30
28
|
assert not os.path.exists(path), (
|
31
29
|
"staging directory %s already exists; poor cleanup?" % path
|
@@ -284,7 +282,6 @@ def write_script(
|
|
284
282
|
|
285
283
|
|
286
284
|
def make_sourceless(path, style):
|
287
|
-
|
288
285
|
import py_compile
|
289
286
|
|
290
287
|
py_compile.compile(path)
|
alembic/testing/fixtures.py
CHANGED
@@ -134,7 +134,6 @@ def op_fixture(
|
|
134
134
|
literal_binds=False,
|
135
135
|
native_boolean=None,
|
136
136
|
):
|
137
|
-
|
138
137
|
opts = {}
|
139
138
|
if naming_convention:
|
140
139
|
opts["target_metadata"] = MetaData(naming_convention=naming_convention)
|
@@ -217,7 +216,6 @@ def op_fixture(
|
|
217
216
|
|
218
217
|
|
219
218
|
class AlterColRoundTripFixture:
|
220
|
-
|
221
219
|
# since these tests are about syntax, use more recent SQLAlchemy as some of
|
222
220
|
# the type / server default compare logic might not work on older
|
223
221
|
# SQLAlchemy versions as seems to be the case for SQLAlchemy 1.1 on Oracle
|
alembic/util/langhelpers.py
CHANGED
alembic/util/pyfiles.py
CHANGED
@@ -49,7 +49,6 @@ def coerce_resource_to_filename(fname: str) -> str:
|
|
49
49
|
|
50
50
|
"""
|
51
51
|
if not os.path.isabs(fname) and ":" in fname:
|
52
|
-
|
53
52
|
tokens = fname.split(":")
|
54
53
|
|
55
54
|
# from https://importlib-resources.readthedocs.io/en/latest/migration.html#pkg-resources-resource-filename # noqa E501
|
alembic/util/sqla_compat.py
CHANGED
@@ -1,56 +1,56 @@
|
|
1
|
-
alembic/__init__.py,sha256=
|
1
|
+
alembic/__init__.py,sha256=W4ulKGrrCzgM2WulAVO_7GhbBwgGEz7cE-ls8EUwJ4A,75
|
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=yrikVYYqveQGraXnCM8IIyaceiGNBiUYZp-xSQgLczI,21343
|
4
|
+
alembic/config.py,sha256=Cc8q8VIxcFRrrKzV96Grxh2XfL6ccZ7rOQka32RZPkE,21908
|
5
5
|
alembic/context.py,sha256=hK1AJOQXJ29Bhn276GYcosxeG7pC5aZRT5E8c4bMJ4Q,195
|
6
6
|
alembic/context.pyi,sha256=85bQfQZ2eqbJxbKIIRYmK8XmZj70H9m_Edu1Mp7eSAc,30841
|
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=1qv0PLrEUskERB5QoI39qbLjJi5iGTV_r2Ri6tsINXE,48789
|
11
11
|
alembic/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
12
|
alembic/autogenerate/__init__.py,sha256=4IHgWH89pForRq-yCDZhGjjVtsfGX5ECWNPuUs8nGUk,351
|
13
|
-
alembic/autogenerate/api.py,sha256=
|
14
|
-
alembic/autogenerate/compare.py,sha256
|
15
|
-
alembic/autogenerate/render.py,sha256=
|
13
|
+
alembic/autogenerate/api.py,sha256=ngyTd1kZ_1pvhT2UdETTR0y17y-xLDW2Zab9nSoWZdM,21688
|
14
|
+
alembic/autogenerate/compare.py,sha256=Ri6T3JcGN9AaQ_t_rS4wI-7Sn0kCAuAoxgq9lCKWFlA,46787
|
15
|
+
alembic/autogenerate/render.py,sha256=tZCzw8vPBqTPmudiv_oGeWTE9oh42j1JO8sqsOD0dMg,34684
|
16
16
|
alembic/autogenerate/rewriter.py,sha256=a6jKj5cfk_jhmhwjyTlm5q1j_vLhZkjBfzCY2XdpvkU,7427
|
17
17
|
alembic/ddl/__init__.py,sha256=xXr1W6PePe0gCLwR42ude0E6iru9miUFc1fCeQN4YP8,137
|
18
18
|
alembic/ddl/base.py,sha256=cCY3NldMRggrKd9bZ0mFRBE9GNDaAy0UJcM3ey4Utgw,9638
|
19
|
-
alembic/ddl/impl.py,sha256=
|
20
|
-
alembic/ddl/mssql.py,sha256=
|
21
|
-
alembic/ddl/mysql.py,sha256=
|
19
|
+
alembic/ddl/impl.py,sha256=hxPcletHpSDjsMP9XQy3Hn7jP9UzzhAxXavTOEnMN6E,24156
|
20
|
+
alembic/ddl/mssql.py,sha256=sFyg8TDUr3_WVBx1UJHxdQf3yOztE2Xad0JXub2vrU0,13660
|
21
|
+
alembic/ddl/mysql.py,sha256=ff8OE0zQ8YYjAgltBbtjQkDR-g9z65DNeFjEMm4sX6c,16675
|
22
22
|
alembic/ddl/oracle.py,sha256=E0VaZaUM_5mwqNiJVA3zOAK-cuHVVIv_-NmUbH1JuGQ,6097
|
23
|
-
alembic/ddl/postgresql.py,sha256=
|
24
|
-
alembic/ddl/sqlite.py,sha256=
|
23
|
+
alembic/ddl/postgresql.py,sha256=DTxegBrakgZGmt2NYrgkawbAV8LlVsD-gxWOOlHgle8,25499
|
24
|
+
alembic/ddl/sqlite.py,sha256=9q7NAxyeFwn9kWwQSc9RLeMFSos8waM7x9lnXdByh44,7613
|
25
25
|
alembic/operations/__init__.py,sha256=KF0MGY8xvXtXvs_acRll9lNj_JjILnffufHtGoVmf0Y,262
|
26
|
-
alembic/operations/base.py,sha256=
|
27
|
-
alembic/operations/batch.py,sha256=
|
28
|
-
alembic/operations/ops.py,sha256=
|
26
|
+
alembic/operations/base.py,sha256=ZPftKf2KnuasoYVBHFoNv3MDZsQtW_QI7RetzKwuil8,72875
|
27
|
+
alembic/operations/batch.py,sha256=uMvGJDlcTs0GSHasg4Gsdv1YcXeLOK_1lkRl3jk1ezY,26954
|
28
|
+
alembic/operations/ops.py,sha256=vzNrxt2pYmzFA7_enCWsHmtPc7KwNJJsEn9NV2GuTpQ,93787
|
29
29
|
alembic/operations/schemaobj.py,sha256=-tWad8pgWUNWucbpTnPuFK_EEl913C0RADJhlBnrjhc,9393
|
30
|
-
alembic/operations/toimpl.py,sha256=
|
30
|
+
alembic/operations/toimpl.py,sha256=K8nUmojtL94tyLSWdDD-e94IbghZ19k55iBIMvzMm5E,6993
|
31
31
|
alembic/runtime/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
32
|
-
alembic/runtime/environment.py,sha256=
|
33
|
-
alembic/runtime/migration.py,sha256=
|
32
|
+
alembic/runtime/environment.py,sha256=dBLnVKS603AtE8Q6HWatYIXDervt-EFcX3WnSrGH0e0,40587
|
33
|
+
alembic/runtime/migration.py,sha256=lMbwGvOVZSbpzn69JdCNE9ospcPVI7tSfcVpLwODVOI,49470
|
34
34
|
alembic/script/__init__.py,sha256=lSj06O391Iy5avWAiq8SPs6N8RBgxkSPjP8wpXcNDGg,100
|
35
|
-
alembic/script/base.py,sha256=
|
36
|
-
alembic/script/revision.py,sha256=
|
37
|
-
alembic/script/write_hooks.py,sha256=
|
35
|
+
alembic/script/base.py,sha256=bY4kYshmCjacc0sUWeJYuiTqtURBvvG-b2Mf5yaIl0A,37197
|
36
|
+
alembic/script/revision.py,sha256=UI52uwx1e8ZGBgwOFLACXvM912W3LWodEDUaM23UeKI,61329
|
37
|
+
alembic/script/write_hooks.py,sha256=3BXsMPiU820RZMxj_-vRaHY49WGHUW9H8Eeq6zEl1uk,4168
|
38
38
|
alembic/templates/async/README,sha256=ISVtAOvqvKk_5ThM5ioJE-lMkvf9IbknFUFVU_vPma4,58
|
39
39
|
alembic/templates/async/alembic.ini.mako,sha256=eacsRWG1_IE_Z1YhDzZ90eKCM222R-ymuEn4Ryms43o,3297
|
40
40
|
alembic/templates/async/env.py,sha256=zbOCf3Y7w2lg92hxSwmG1MM_7y56i_oRH4AKp0pQBYo,2389
|
41
|
-
alembic/templates/async/script.py.mako,sha256=
|
41
|
+
alembic/templates/async/script.py.mako,sha256=MEqL-2qATlST9TAOeYgscMn1uy6HUS9NFvDgl93dMj8,635
|
42
42
|
alembic/templates/generic/README,sha256=MVlc9TYmr57RbhXET6QxgyCcwWP7w-vLkEsirENqiIQ,38
|
43
43
|
alembic/templates/generic/alembic.ini.mako,sha256=86Texhjq40QQsO9UJP7PDzzPEzGgedYDdHUJ1YOjXco,3406
|
44
44
|
alembic/templates/generic/env.py,sha256=TLRWOVW3Xpt_Tpf8JFzlnoPn_qoUu8UV77Y4o9XD6yI,2103
|
45
|
-
alembic/templates/generic/script.py.mako,sha256=
|
45
|
+
alembic/templates/generic/script.py.mako,sha256=MEqL-2qATlST9TAOeYgscMn1uy6HUS9NFvDgl93dMj8,635
|
46
46
|
alembic/templates/multidb/README,sha256=dWLDhnBgphA4Nzb7sNlMfCS3_06YqVbHhz-9O5JNqyI,606
|
47
47
|
alembic/templates/multidb/alembic.ini.mako,sha256=76AK25gXYz6N6PriqLakfbN-6dFNgGp2T8wOF_pBkdw,3500
|
48
48
|
alembic/templates/multidb/env.py,sha256=6zNjnW8mXGUk7erTsAvrfhvqoczJ-gagjVq1Ypg2YIQ,4230
|
49
|
-
alembic/templates/multidb/script.py.mako,sha256=
|
49
|
+
alembic/templates/multidb/script.py.mako,sha256=N06nMtNSwHkgl0EBXDyMt8njp9tlOesR583gfq21nbY,1090
|
50
50
|
alembic/testing/__init__.py,sha256=kOxOh5nwmui9d-_CCq9WA4Udwy7ITjm453w74CTLZDo,1159
|
51
|
-
alembic/testing/assertions.py,sha256=
|
52
|
-
alembic/testing/env.py,sha256=
|
53
|
-
alembic/testing/fixtures.py,sha256=
|
51
|
+
alembic/testing/assertions.py,sha256=1CbJk8c8-WO9eJ0XJ0jJvMsNRLUrXV41NOeIJUAlOBk,5015
|
52
|
+
alembic/testing/env.py,sha256=zJacVb_z6uLs2U1TtkmnFH9P3_F-3IfYbVv4UEPOvfo,10754
|
53
|
+
alembic/testing/fixtures.py,sha256=NyP4wE_dFN9ZzSGiBagRu1cdzkka03nwJYJYHYrrkSY,9112
|
54
54
|
alembic/testing/requirements.py,sha256=HxmCXCss7Ne47AqoAKOr8jhkokDpPzw8o1SKpvVajH8,4932
|
55
55
|
alembic/testing/schemacompare.py,sha256=7_4_0Y4UvuMiZ66pz1RC_P8Z1kYOP-R4Y5qUcNmcMKA,4535
|
56
56
|
alembic/testing/util.py,sha256=CQrcQDA8fs_7ME85z5ydb-Bt70soIIID-qNY1vbR2dg,3350
|
@@ -58,7 +58,7 @@ alembic/testing/warnings.py,sha256=RxA7x_8GseANgw07Us8JN_1iGbANxaw6_VitX2ZGQH4,1
|
|
58
58
|
alembic/testing/plugin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
59
59
|
alembic/testing/plugin/bootstrap.py,sha256=9C6wtjGrIVztZ928w27hsQE0KcjDLIUtUN3dvZKsMVk,50
|
60
60
|
alembic/testing/suite/__init__.py,sha256=MvE7-hwbaVN1q3NM-ztGxORU9dnIelUCINKqNxewn7Y,288
|
61
|
-
alembic/testing/suite/_autogen_fixtures.py,sha256=
|
61
|
+
alembic/testing/suite/_autogen_fixtures.py,sha256=cDq1pmzHe15S6dZPGNC6sqFaCQ3hLT_oPV2IDigUGQ0,9880
|
62
62
|
alembic/testing/suite/test_autogen_comments.py,sha256=aEGqKUDw4kHjnDk298aoGcQvXJWmZXcIX_2FxH4cJK8,6283
|
63
63
|
alembic/testing/suite/test_autogen_computed.py,sha256=qJeBpc8urnwTFvbwWrSTIbHVkRUuCXP-dKaNbUK2U2U,6077
|
64
64
|
alembic/testing/suite/test_autogen_diffs.py,sha256=T4SR1n_kmcOKYhR4W1-dA0e5sddJ69DSVL2HW96kAkE,8394
|
@@ -70,13 +70,13 @@ alembic/util/__init__.py,sha256=cPF_jjFx7YRBByHHDqW3wxCIHsqnGfncEr_i238aduY,1202
|
|
70
70
|
alembic/util/compat.py,sha256=-cL6Jbi53XydzR5Mr-O7nU_pBaTYSrBfi0xqjrkiPXc,1911
|
71
71
|
alembic/util/editor.py,sha256=JIz6_BdgV8_oKtnheR6DZoB7qnrHrlRgWjx09AsTsUw,2546
|
72
72
|
alembic/util/exc.py,sha256=KQTru4zcgAmN4IxLMwLFS56XToUewaXB7oOLcPNjPwg,98
|
73
|
-
alembic/util/langhelpers.py,sha256=
|
73
|
+
alembic/util/langhelpers.py,sha256=ZFGyGygHRbztOeajpajppyhd-Gp4PB5slMuvCFVrnmg,8591
|
74
74
|
alembic/util/messaging.py,sha256=B6T-loMhIOY3OTbG47Ywp1Df9LZn18PgjwpwLrD1VNg,3042
|
75
|
-
alembic/util/pyfiles.py,sha256=
|
76
|
-
alembic/util/sqla_compat.py,sha256=
|
77
|
-
alembic-1.11.
|
78
|
-
alembic-1.11.
|
79
|
-
alembic-1.11.
|
80
|
-
alembic-1.11.
|
81
|
-
alembic-1.11.
|
82
|
-
alembic-1.11.
|
75
|
+
alembic/util/pyfiles.py,sha256=95J01FChN0j2uP3p72mjaOQvh5wC6XbdGtTDK8oEzsQ,3373
|
76
|
+
alembic/util/sqla_compat.py,sha256=QySSQQdjpj64AE0E5mgn3eCxZwyuoJFObNuKhPPNCFs,17711
|
77
|
+
alembic-1.11.2.dist-info/LICENSE,sha256=soUmiob0QW6vTQWyrjiAwVb3xZqPk1pAK8BW6vszrwg,1058
|
78
|
+
alembic-1.11.2.dist-info/METADATA,sha256=9Nk-Z5lvOcopEXg-kyRwduNw6r5U4JzXxmlrTGdhwd0,7229
|
79
|
+
alembic-1.11.2.dist-info/WHEEL,sha256=AtBG6SXL3KF_v0NxLf0ehyVOh0cold-JbJYXNGorC6Q,92
|
80
|
+
alembic-1.11.2.dist-info/entry_points.txt,sha256=aykM30soxwGN0pB7etLc1q0cHJbL9dy46RnK9VX4LLw,48
|
81
|
+
alembic-1.11.2.dist-info/top_level.txt,sha256=FwKWd5VsPFC8iQjpu1u9Cn-JnK3-V1RhUCmWqz1cl-s,8
|
82
|
+
alembic-1.11.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|