forked from crossbario/cfxdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
148 lines (130 loc) · 3.94 KB
/
pyproject.toml
File metadata and controls
148 lines (130 loc) · 3.94 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
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
[build-system]
requires = ["setuptools>=80.9.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "cfxdb"
version = "25.12.1"
description = "Crossbar.io Database - Core database access classes for Crossbar.io"
readme = "README.rst"
requires-python = ">=3.11"
license = {text = "MIT"}
authors = [
{name = "typedef int GmbH", email = "contact@typedefint.eu"}
]
keywords = ["crossbar", "wamp", "database", "lmdb", "xbr", "ethereum", "web3"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: No Input/Output (Daemon)",
"Framework :: Twisted",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Communications",
"Topic :: Database",
"Topic :: Internet",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Object Brokering",
"Topic :: System :: Distributed Computing",
]
dependencies = [
# WAMP ecosystem packages
"autobahn[all]>=25.10.2",
"zlmdb>=25.10.2",
# Ethereum/Web3 stack
"eth-abi>=5.1.0",
"eth-account>=0.13.0",
"web3>=7.6.0",
# Additional dependencies
"parsimonious>=0.10.0",
"argon2-cffi>=25.1.0",
]
[project.optional-dependencies]
# Development dependencies
dev = [
# Build tools
"build>=1.0.0",
"wheel>=0.36.2",
"twine>=3.3.0",
# Testing
"pytest>=3.4.2",
"pytest-runner>=2.11.1",
"coverage>=5.0.0",
"tox>=2.9.1",
"tox-gh-actions>=2.2.0",
"py-multihash>=2.0.1", # For IPFS hash generation in tests
# Code quality
"ruff>=0.1.0", # Fast Python linter and formatter
# Note: ty (Astral type checker) is installed via `uv tool install ty`
# It's a standalone Rust binary, not a Python package dependency
# Documentation
"sphinx>=1.7.1",
"sphinx-rtd-theme>=0.1.9",
"sphinxcontrib-spelling>=7.0.0",
"sphinxcontrib-images>=0.9.0",
"sphinx-autoapi>=2.0.0",
"pyenchant>=3.0.0",
# Utilities
"humanize>=0.5.1",
"cytoolz>=0.12.1",
"watchdog>=0.8.3",
]
[project.urls]
Homepage = "https://github.com/crossbario/cfxdb"
Documentation = "https://cfxdb.readthedocs.io"
Repository = "https://github.com/crossbario/cfxdb"
Issues = "https://github.com/crossbario/cfxdb/issues"
[tool.setuptools]
zip-safe = true
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
include = ["cfxdb*"]
exclude = ["tests*", "docs*", ".ai*", ".cicd*", "work*"]
[tool.setuptools.package-data]
cfxdb = ["py.typed"]
# Ruff configuration (replaces flake8, black, yapf)
[tool.ruff]
line-length = 119
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
]
ignore = [
"E501", # line too long (handled by formatter)
"E721", # type() comparison instead of isinstance() - deliberate style choice
"E402", # module level import not at top (intentional in test files)
]
# Pytest configuration
[tool.pytest.ini_options]
testpaths = ["src/cfxdb/tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
# Coverage configuration
[tool.coverage.run]
source = ["src/cfxdb"]
omit = ["*/tests/*", "*/test_*.py"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]