Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (93 loc) · 3.1 KB
/
Copy pathpyproject.toml
File metadata and controls
108 lines (93 loc) · 3.1 KB
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
[project]
name = "scylladb-rs-driver"
description = "Client-side driver for ScyllaDB, built on the Rust driver"
readme = "README.md"
authors = [{ name = "ScyllaDB" }]
keywords = ["scylla", "scylladb", "cassandra", "cql", "database", "driver", "async"]
requires-python = ">=3.11"
license = "MIT OR Apache-2.0"
license-files = ["LICENSE-MIT", "LICENSE-APACHE"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: POSIX :: Linux",
"Programming Language :: Rust",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Programming Language :: Python :: Free Threading :: 2 - Beta",
"Programming Language :: Python :: Implementation :: CPython",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/scylladb/python-rs-driver"
Repository = "https://github.com/scylladb/python-rs-driver"
Issues = "https://github.com/scylladb/python-rs-driver/issues"
[build-system]
requires = ["maturin>=1.8,<2.0"]
build-backend = "maturin"
[tool.maturin]
python-source = "python"
features = ["pyo3/extension-module"]
module-name = "scylla._rust"
include = [{ path = ".cargo/config.toml", format = "sdist" }]
[dependency-groups]
dev = [
"pytest",
"pytest-asyncio",
"maturin",
"ruff>=0.16.0",
"basedpyright",
"python-dateutil",
"cryptography>=42",
"uvloop; sys_platform != 'win32'",
"ccm @ git+https://git@github.com/scylladb/scylla-ccm.git@master",
]
coverage = [
"coverage==7.16.2",
]
tls-integration = [
"cryptography>=49.0.0",
"cffi>=2.0.0",
]
[tool.uv]
cache-keys = [
{ file = "pyproject.toml" },
{ file = "Cargo.toml" },
{ file = "src/**/*.rs" },
{ file = "python/scylla/**/*.py"},
{ file = "python/scylla/**/*.pyi"},
]
config-settings = { build-args = '--profile=dev' }
[tool.ruff]
target-version = "py311"
line-length = 120
[tool.ruff.lint]
extend-select = ["TID251", "ASYNC"]
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"asyncio.sleep".msg = "Don't gate a test on elapsed time. Wait on an event with a timeout instead - see Recorder in python/tests/test_future.py. For genuine polling of something external, add `# noqa: TID251` with a reason."
"time.sleep".msg = "Same as asyncio.sleep: wait on an event, not on the clock."
[tool.basedpyright]
# Docs are checked in their own environment, see docs/pyproject.toml.
include = ["python", "examples"]
extraPaths = ["python/tests"]
pythonVersion = "3.11"
venvPath = "."
venv = ".venv"
typeCheckingMode = "strict"
[tool.pytest.ini_options]
markers = [
"requires_db: tests that require database",
"requires_ccm: tests that require CCM cluster",
]
# Used by scripts/coverage.sh, see docs/source/topics/testing.md.
[tool.coverage.run]
source_pkgs = ["scylla"]
parallel = true
patch = ["subprocess"]
relative_files = true
[tool.coverage.paths]
# The tests run against the installed wheel; report the files in the repository.
scylla = ["python/scylla", "*/site-packages/scylla"]