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 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
|
[build-system]
requires = ["setuptools >= 77.0.3"]
build-backend = "setuptools.build_meta"
[project]
name = "dogpile.cache"
description = "A caching front-end based on the Dogpile lock."
readme = "README.rst"
keywords = ["caching"]
authors = [{name = "Mike Bayer", email = "mike_mp@zzzcomputing.com"}]
license = "MIT"
license-files = ["LICENSE"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
]
requires-python = ">=3.10"
dependencies = [
"decorator>=4.0.0",
"stevedore>=3.0.0",
"typing_extensions>=4.0.1;python_version<'3.11'",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/sqlalchemy/dogpile.cache"
Documentation = "https://dogpilecache.sqlalchemy.org"
"Issue Tracker" = "https://github.com/sqlalchemy/dogpile.cache/"
[project.optional-dependencies]
pifpaf = [
"pifpaf>=3.3.0",
]
pymemcache = [
"pymemcache",
]
memcached = [
"python-memcached",
]
bmemcached = [
"python-binary-memcached",
]
pylibmc = [
# pylibmc is still getting commits in 2025 but has not had a release
# since 2022. needs libmemcached headers etc. to build
"pylibmc",
# this version is needed for builds - see nox -t memcached-full
# for special install from source
# "pylibmc @ git+https://github.com/lericson/pylibmc.git@master"
]
redis = [
"redis",
]
valkey = [
"valkey",
]
[project.entry-points."mako.cache"]
"dogpile.cache" = "dogpile.cache.plugins.mako_cache:MakoPlugin"
[dependency-groups]
tests = [
"pytest>8",
"pytest-xdist",
"mako",
"junitparser",
]
coverage = [
"pytest-cov"
]
tests_redis = [
"dogpile.cache[pifpaf]",
"dogpile.cache[redis]",
]
tests_memcached = [
"dogpile.cache[pifpaf]",
"dogpile.cache[pymemcache]",
"dogpile.cache[memcached]",
"dogpile.cache[bmemcached]",
# disabled for now until a modern release is made
# "dogpile.cache[pylibmc]",
]
tests_valkey = [
"dogpile.cache[pifpaf]",
"dogpile.cache[valkey]",
]
lint = [
"flake8==7.2.0",
"flake8-import-order",
"flake8-builtins",
"flake8-future-annotations>=0.0.5",
"flake8-docstrings>=1.6.0",
"flake8-import-single==0.1.5",
"flake8-unused-arguments",
# flake8-rst-docstrings dependency, leaving it here
# in case it requires a version pin
"flake8-rst-docstrings",
"pydocstyle",
"pygments",
"black==25.1.0",
"slotscheck>=0.17.0",
]
mypy = [
"nox", # because we check noxfile.py
"mypy",
"types-decorator",
"types-redis",
"redis",
"valkey",
"Mako",
"decorator",
]
[tool.setuptools]
zip-safe = false
include-package-data = true
package-dir = {"" = "."}
[tool.setuptools.packages.find]
exclude = [
"tests",
"tests.*",
]
namespaces = false
[tool.setuptools.exclude-package-data]
dogpile = ["tests*"]
[tool.setuptools.package-data]
dogpile = ["py.typed"]
[tool.setuptools.dynamic]
version = {attr = "dogpile.__version__"}
[tool.black]
line-length = 79
[tool.mypy]
python_version = "3.10"
show_error_codes = true
incremental = true
strict = true
disallow_untyped_defs = false
disallow_untyped_calls = false
ignore_missing_imports = true
warn_unused_ignores = true
[tool.pytest.ini_options]
addopts = "--tb native -v -r fxX -p no:logging -p no:warnings"
python_files = "tests/*test_*.py"
python_classes = "*Test"
filterwarnings = [
"error"
]
|