Skip to content

Commit

Permalink
MOTOR-1284 Fix Cryptography Install on PyPy3.8 (#270)
Browse files Browse the repository at this point in the history
* MOTOR-1284 Fix Cryptography Install

* specify install_command

* handle warning

* handle warning
  • Loading branch information
blink1073 committed Mar 22, 2024
1 parent 2d35987 commit f4832d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ filterwarnings = [
"ignore: The fetch_next property is deprecated:DeprecationWarning",
"ignore:The next_object method is deprecated:DeprecationWarning",
"ignore:unclosed <ssl.SSLSocket:ResourceWarning",
"ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning",
"ignore:datetime.datetime.utcnow:DeprecationWarning",
"ignore:datetime.datetime.utc:DeprecationWarning",
# From older versions aiohttp.
"ignore:\"@coroutine\" decorator is deprecated since Python 3.8:DeprecationWarning",
"ignore:The loop argument is deprecated since Python 3.8:DeprecationWarning"
]

[tool.ruff]
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ labels = # Use labels and -m instead of -e so that tox -m <label> fails instantl
typecheck-mypy = typecheck-mypy

[testenv]
install_command =
python -I -m pip install --prefer-binary {opts} {packages}
passenv =
DB_IP
DB_PORT
Expand Down Expand Up @@ -101,7 +103,7 @@ extras =
test
commands =
pip install git+https://github.com/mongodb/mongo-python-driver.git@master
pip install -q --pre pymongocrypt
pip install -q --pre --prefer-binary pymongocrypt
python --version
python -c "import pymongo; print('PyMongo %s' % (pymongo.version,))"
python -m pytest -v {posargs}
Expand Down

0 comments on commit f4832d9

Please sign in to comment.