Skip to content

Commit 928af5a

Browse files
Merge pull request #318 from vindex10/bug/missing_cryptography_mysql
Bug/missing cryptography mysql
2 parents 94a63d6 + b9a203c commit 928af5a

9 files changed

+264
-266
lines changed

mysql/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
install_requires=[
1414
"testcontainers-core",
1515
"sqlalchemy",
16-
"pymysql"
16+
"pymysql[rsa]"
1717
],
1818
python_requires=">=3.7",
1919
)

mysql/tests/test_mysql.py

+11
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ def test_docker_run_mysql():
1717
assert row[0].startswith('5.7.17')
1818

1919

20+
@pytest.mark.skipif(is_arm(), reason='mysql container not available for ARM')
21+
def test_docker_run_mysql_8():
22+
config = MySqlContainer('mysql:8')
23+
with config as mysql:
24+
engine = sqlalchemy.create_engine(mysql.get_connection_url())
25+
with engine.begin() as connection:
26+
result = connection.execute(sqlalchemy.text("select version()"))
27+
for row in result:
28+
assert row[0].startswith('8')
29+
30+
2031
def test_docker_run_mariadb():
2132
with MySqlContainer("mariadb:10.6.5").maybe_emulate_amd64() as mariadb:
2233
engine = sqlalchemy.create_engine(mariadb.get_connection_url())

requirements/macos-latest-3.10.txt

+36-37
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ attrs==23.1.0
8686
# jsonschema
8787
# outcome
8888
# trio
89-
azure-core==1.26.4
89+
azure-core==1.27.0
9090
# via azure-storage-blob
9191
azure-storage-blob==12.16.0
9292
# via testcontainers-azurite
@@ -96,15 +96,15 @@ bcrypt==4.0.1
9696
# via paramiko
9797
bleach==6.0.0
9898
# via readme-renderer
99-
boto3==1.26.129
99+
boto3==1.26.148
100100
# via testcontainers-localstack
101-
botocore==1.29.129
101+
botocore==1.29.148
102102
# via
103103
# boto3
104104
# s3transfer
105-
cachetools==5.3.0
105+
cachetools==5.3.1
106106
# via google-auth
107-
certifi==2022.12.7
107+
certifi==2023.5.7
108108
# via
109109
# minio
110110
# opensearch-py
@@ -118,13 +118,14 @@ charset-normalizer==3.1.0
118118
# via requests
119119
clickhouse-driver==0.2.6
120120
# via testcontainers-clickhouse
121-
coverage[toml]==7.2.5
121+
coverage[toml]==7.2.7
122122
# via pytest-cov
123123
cryptography==36.0.2
124124
# via
125125
# -r requirements.in
126126
# azure-storage-blob
127127
# paramiko
128+
# pymysql
128129
cx-oracle==8.3.0
129130
# via testcontainers-oracle
130131
deprecation==2.1.0
@@ -133,7 +134,7 @@ distro==1.8.0
133134
# via docker-compose
134135
dnspython==2.3.0
135136
# via pymongo
136-
docker[ssh]==6.1.0
137+
docker[ssh]==6.1.3
137138
# via
138139
# docker-compose
139140
# testcontainers-core
@@ -143,7 +144,7 @@ dockerpty==0.4.1
143144
# via docker-compose
144145
docopt==0.6.2
145146
# via docker-compose
146-
docutils==0.19
147+
docutils==0.20.1
147148
# via
148149
# readme-renderer
149150
# sphinx
@@ -160,9 +161,9 @@ flake8==3.7.9
160161
# via -r requirements.in
161162
google-api-core[grpc]==2.11.0
162163
# via google-cloud-pubsub
163-
google-auth==2.17.3
164+
google-auth==2.19.1
164165
# via google-api-core
165-
google-cloud-pubsub==2.16.1
166+
google-cloud-pubsub==2.17.1
166167
# via testcontainers-gcp
167168
googleapis-common-protos[grpc]==1.59.0
168169
# via
@@ -173,14 +174,14 @@ greenlet==2.0.2
173174
# via sqlalchemy
174175
grpc-google-iam-v1==0.12.6
175176
# via google-cloud-pubsub
176-
grpcio==1.54.0
177+
grpcio==1.54.2
177178
# via
178179
# google-api-core
179180
# google-cloud-pubsub
180181
# googleapis-common-protos
181182
# grpc-google-iam-v1
182183
# grpcio-status
183-
grpcio-status==1.54.0
184+
grpcio-status==1.54.2
184185
# via
185186
# google-api-core
186187
# google-cloud-pubsub
@@ -195,6 +196,7 @@ imagesize==1.4.1
195196
importlib-metadata==6.6.0
196197
# via
197198
# keyring
199+
# python-arango
198200
# twine
199201
iniconfig==2.0.0
200202
# via pytest
@@ -216,17 +218,17 @@ keyring==23.13.1
216218
# via twine
217219
markdown-it-py==2.2.0
218220
# via rich
219-
markupsafe==2.1.2
221+
markupsafe==2.1.3
220222
# via jinja2
221223
mccabe==0.6.1
222224
# via flake8
223225
mdurl==0.1.2
224226
# via markdown-it-py
225-
minio==7.1.14
227+
minio==7.1.15
226228
# via testcontainers-minio
227229
more-itertools==9.1.0
228230
# via jaraco-classes
229-
neo4j==5.8.0
231+
neo4j==5.9.0
230232
# via testcontainers-neo4j
231233
opensearch-py==2.2.0
232234
# via testcontainers-opensearch
@@ -238,9 +240,9 @@ packaging==23.1
238240
# docker
239241
# pytest
240242
# sphinx
241-
paramiko==3.1.0
243+
paramiko==3.2.0
242244
# via docker
243-
pg8000==1.29.4
245+
pg8000==1.29.6
244246
# via -r requirements.in
245247
pika==1.3.2
246248
# via testcontainers-rabbitmq
@@ -250,7 +252,7 @@ pluggy==1.0.0
250252
# via pytest
251253
proto-plus==1.22.2
252254
# via google-cloud-pubsub
253-
protobuf==4.22.4
255+
protobuf==4.23.2
254256
# via
255257
# google-api-core
256258
# google-cloud-pubsub
@@ -278,13 +280,13 @@ pygments==2.15.1
278280
# readme-renderer
279281
# rich
280282
# sphinx
281-
pyjwt==2.6.0
283+
pyjwt==2.7.0
282284
# via python-arango
283285
pymongo==4.3.3
284286
# via testcontainers-mongodb
285287
pymssql==2.2.7
286288
# via testcontainers-mssql
287-
pymysql==1.0.3
289+
pymysql[rsa]==1.0.3
288290
# via testcontainers-mysql
289291
pynacl==1.5.0
290292
# via paramiko
@@ -296,9 +298,9 @@ pytest==7.3.1
296298
# via
297299
# -r requirements.in
298300
# pytest-cov
299-
pytest-cov==4.0.0
301+
pytest-cov==4.1.0
300302
# via -r requirements.in
301-
python-arango==7.5.7
303+
python-arango==7.5.8
302304
# via testcontainers-arangodb
303305
python-dateutil==2.8.2
304306
# via
@@ -309,21 +311,19 @@ python-dotenv==0.21.1
309311
# via docker-compose
310312
python-jose==3.3.0
311313
# via python-keycloak
312-
python-keycloak==2.16.1
314+
python-keycloak==3.0.0
313315
# via testcontainers-keycloak
314316
pytz==2023.3
315317
# via
316318
# clickhouse-driver
317319
# neo4j
318-
pytz-deprecation-shim==0.1.0.post0
319-
# via tzlocal
320320
pyyaml==5.4.1
321321
# via docker-compose
322322
readme-renderer==37.3
323323
# via twine
324-
redis==4.5.4
324+
redis==4.5.5
325325
# via testcontainers-redis
326-
requests==2.30.0
326+
requests==2.31.0
327327
# via
328328
# azure-core
329329
# docker
@@ -335,14 +335,14 @@ requests==2.30.0
335335
# requests-toolbelt
336336
# sphinx
337337
# twine
338-
requests-toolbelt==0.10.1
338+
requests-toolbelt==1.0.0
339339
# via
340340
# python-arango
341341
# python-keycloak
342342
# twine
343343
rfc3986==2.0.0
344344
# via twine
345-
rich==13.3.5
345+
rich==13.4.1
346346
# via twine
347347
rsa==4.9
348348
# via
@@ -352,7 +352,7 @@ s3transfer==0.6.1
352352
# via boto3
353353
scramp==1.4.4
354354
# via pg8000
355-
selenium==4.9.0
355+
selenium==4.9.1
356356
# via testcontainers-selenium
357357
six==1.16.0
358358
# via
@@ -372,7 +372,7 @@ snowballstemmer==2.2.0
372372
# via sphinx
373373
sortedcontainers==2.4.0
374374
# via trio
375-
sphinx==7.0.0
375+
sphinx==7.0.1
376376
# via -r requirements.in
377377
sphinxcontrib-applehelp==1.0.4
378378
# via sphinx
@@ -386,7 +386,7 @@ sphinxcontrib-qthelp==1.0.3
386386
# via sphinx
387387
sphinxcontrib-serializinghtml==1.1.5
388388
# via sphinx
389-
sqlalchemy==2.0.12
389+
sqlalchemy==2.0.15
390390
# via
391391
# testcontainers-mssql
392392
# testcontainers-mysql
@@ -406,19 +406,18 @@ trio-websocket==0.10.2
406406
# via selenium
407407
twine==4.0.2
408408
# via -r requirements.in
409-
typing-extensions==4.5.0
409+
typing-extensions==4.6.3
410410
# via
411411
# azure-core
412412
# azure-storage-blob
413413
# sqlalchemy
414-
tzdata==2023.3
415-
# via pytz-deprecation-shim
416-
tzlocal==4.3
414+
tzlocal==5.0.1
417415
# via clickhouse-driver
418-
urllib3[socks]==1.26.15
416+
urllib3[socks]==1.26.16
419417
# via
420418
# botocore
421419
# docker
420+
# google-auth
422421
# minio
423422
# opensearch-py
424423
# python-arango

0 commit comments

Comments
 (0)