1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
[project]
authors = [{ name = "long2ice", email = "long2ice@gmail.com" }]
description = "A fast asyncio MySQL driver"
keywords = ["driver", "asyncio", "mysql"]
license = "Apache-2.0"
name = "asyncmy"
readme = "README.md"
requires-python = ">=3.9"
dependencies = []
version = "0.2.11"
[project.urls]
documentation = "https://github.com/long2ice/asyncmy"
homepage = "https://github.com/long2ice/asyncmy"
repository = "https://github.com/long2ice/asyncmy.git"
[tool.poetry]
include = ["CHANGELOG.md", "LICENSE", "README.md"]
packages = [
{ include = "asyncmy" },
]
[tool.poetry.group.dev.dependencies]
cython = "*"
mypy = "*"
rich = "*"
ruff = "*"
[tool.poetry.group.test.dependencies]
pytest = "*"
mysqlclient = "*"
pymysql = ">=0.8.1"
aiomysql = "*"
# Breaking change in 0.23.*
# https://github.com/pytest-dev/pytest-asyncio/issues/706
pytest-asyncio = "^0.21.2"
pytest-mock = "*"
pytest-xdist = "*"
cryptography = "*"
uvloop = { version = "*", markers = "sys_platform != 'win32'" }
[tool.poetry.build]
generate-setup-file = true
script = "build.py"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core", "setuptools", "cython"]
[tool.pytest.ini_options]
asyncio_mode = 'auto'
[tool.mypy]
pretty = true
ignore_missing_imports = true
warn_unused_ignores = true
# TODO: Uncomment next line after type hints improved
#check_untyped_defs = true
[tool.ruff]
line-length = 100
[tool.ruff.lint]
extend-select = [
"FA", # https://docs.astral.sh/ruff/rules/#flake8-future-annotations-fa
"UP", # https://docs.astral.sh/ruff/rules/#pyupgrade-up
"RUF100", # https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
]
ignore = ["UP031", "UP032"] # https://docs.astral.sh/ruff/rules/printf-string-formatting/
|