From 6645403ceffbd44e9e9815ac13750e3f0c96ef15 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 5 Jun 2020 18:50:16 +0200 Subject: [PATCH] poetry: Add mysqlclient as optional dependency This makes sure that *if* it is manually installed, it is not removed by `poetry install --no-dev`. This is not currently relevant, since mysqlclient and its dependencies are not listed as dev packages, so poetry will already leave them alone, but making this explicit is probably better. It might be better to add this as an "extras" dependency, so it can be installed by `poetry install --extras`, but it seems that that does not currently work: https://github.com/python-poetry/poetry/issues/1145 --- poetry.lock | 18 ++++++++++++++++-- pyproject.toml | 1 + 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/poetry.lock b/poetry.lock index 8ce73ef..6476186 100644 --- a/poetry.lock +++ b/poetry.lock @@ -640,6 +640,14 @@ optional = false python-versions = "*" version = "0.4.3" +[[package]] +category = "main" +description = "Python interface to MySQL" +name = "mysqlclient" +optional = true +python-versions = "*" +version = "1.4.6" + [[package]] category = "main" description = "A generic, spec-compliant, thorough implementation of the OAuth request-signing logic" @@ -1060,7 +1068,7 @@ version = "0.5.1" [[package]] category = "main" description = "Backport of pathlib-compatible object wrapper for zip files" -marker = "python_version >= \"3.5\" and python_version < \"3.8\" or python_version < \"3.8\"" +marker = "python_version >= \"3.5\" and python_version < \"3.8\" or python_version < \"3.8\" or python_version >= \"3.5\" and python_version < \"3.8\" and (python_version >= \"3.5\" and python_version < \"3.8\" or python_version < \"3.8\")" name = "zipp" optional = false python-versions = ">=2.7" @@ -1071,7 +1079,7 @@ docs = ["sphinx", "jaraco.packaging (>=3.2)", "rst.linker (>=1.9)"] testing = ["pathlib2", "unittest2", "jaraco.itertools", "func-timeout"] [metadata] -content-hash = "d91b01296a00dd7243f99ea55d20fb76c600155dfc187058158bff12e5568e77" +content-hash = "831b1def1a7ed860f84e439e2d55cbcd498ced86a6a02f706c88a2ee2476caf2" python-versions = "^3.5" [metadata.files] @@ -1388,6 +1396,12 @@ mypy-extensions = [ {file = "mypy_extensions-0.4.3-py2.py3-none-any.whl", hash = "sha256:090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d"}, {file = "mypy_extensions-0.4.3.tar.gz", hash = "sha256:2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8"}, ] +mysqlclient = [ + {file = "mysqlclient-1.4.6-cp36-cp36m-win_amd64.whl", hash = "sha256:4c82187dd6ab3607150fbb1fa5ef4643118f3da122b8ba31c3149ddd9cf0cb39"}, + {file = "mysqlclient-1.4.6-cp37-cp37m-win_amd64.whl", hash = "sha256:9e6080a7aee4cc6a06b58b59239f20f1d259c1d2fddf68ddeed242d2311c7087"}, + {file = "mysqlclient-1.4.6-cp38-cp38-win_amd64.whl", hash = "sha256:f646f8d17d02be0872291f258cce3813497bc7888cd4712a577fd1e719b2f213"}, + {file = "mysqlclient-1.4.6.tar.gz", hash = "sha256:f3fdaa9a38752a3b214a6fe79d7cae3653731a53e577821f9187e67cbecb2e16"}, +] oauthlib = [ {file = "oauthlib-3.1.0-py2.py3-none-any.whl", hash = "sha256:df884cd6cbe20e32633f1db1072e9356f53638e4361bef4e8b03c9127c9328ea"}, {file = "oauthlib-3.1.0.tar.gz", hash = "sha256:bee41cc35fcca6e988463cacc3bcb8a96224f470ca547e697b604cc697b2f889"}, diff --git a/pyproject.toml b/pyproject.toml index cfe0239..9db23cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,7 @@ django-airplane = "^1.0.0" django-phonenumber-field = {extras = ["phonenumbers"], version = "^4.0.0"} django_sendmail_backend = "^0.1.2" poetry = {version = "^1.0.7", optional = true} +mysqlclient = {version = "^1.4.6", optional = true} [tool.poetry.dev-dependencies] flake8 = "*"