Python functions as REST objects, with clustering, load balancing and state replication; no containers or orchestration.

0 downloads

dbbasic-object-primitive/pyproject.toml
Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-object-primitive.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-object-primitive.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-object-primitive.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

Dan Q Consolidate duplicate QUICKSTARTs on the top-level file 503f830 7 months ago History
pyproject.toml · 4.0 KB · 183 lines
1[build-system]
2requires = ["setuptools>=68.0.0", "wheel"]
3build-backend = "setuptools.build_meta"
4
5[project]
6name = "object-primitive"
7version = "0.1.0"
8description = "A new computing paradigm where code, data, and execution are unified into network-accessible objects"
9readme = "README.md"
10requires-python = ">=3.9"
11license = {text = "MIT"}
12authors = [
13 {name = "Dan Q", email = "danq@dbbasic.com"}
14]
15keywords = [
16 "distributed-systems",
17 "plan9",
18 "object-primitive",
19 "protocol-agnostic",
20 "implementation-agnostic",
21 "self-healing",
22]
23classifiers = [
24 "Development Status :: 3 - Alpha",
25 "Intended Audience :: Developers",
26 "License :: OSI Approved :: MIT License",
27 "Programming Language :: Python :: 3",
28 "Programming Language :: Python :: 3.9",
29 "Programming Language :: Python :: 3.10",
30 "Programming Language :: Python :: 3.11",
31 "Programming Language :: Python :: 3.12",
32 "Topic :: Software Development :: Libraries :: Application Frameworks",
33 "Topic :: System :: Distributed Computing",
34]
35
36# Core dependencies
37dependencies = [
38 "dbbasic-web>=0.1.0", # Foundation web framework (TSV-based, simple)
39]
40
41[project.optional-dependencies]
42# Development dependencies
43dev = [
44 "pytest>=7.4.0",
45 "pytest-cov>=4.1.0",
46 "pytest-asyncio>=0.21.0",
47 "black>=23.0.0",
48 "ruff>=0.0.280",
49 "mypy>=1.4.0",
50]
51
52# Testing dependencies
53test = [
54 "pytest>=7.4.0",
55 "pytest-cov>=4.1.0",
56 "pytest-asyncio>=0.21.0",
57]
58
59# Documentation dependencies
60docs = [
61 "mkdocs>=1.5.0",
62 "mkdocs-material>=9.0.0",
63]
64
65# All optional dependencies
66all = [
67 "object-primitive[dev,test,docs]",
68]
69
70[project.urls]
71Homepage = "https://github.com/danq/object-primitive"
72Documentation = "https://github.com/danq/object-primitive/tree/main/docs"
73Repository = "https://github.com/danq/object-primitive"
74Issues = "https://github.com/danq/object-primitive/issues"
75
76[tool.setuptools]
77package-dir = {"" = "src"}
78
79[tool.setuptools.packages.find]
80where = ["src"]
81include = ["object_primitive*"]
82namespaces = false
83
84# Pytest configuration
85[tool.pytest.ini_options]
86testpaths = ["tests"]
87python_files = ["test_*.py", "*_test.py"]
88python_classes = ["Test*"]
89python_functions = ["test_*"]
90addopts = [
91 "--strict-markers",
92 "--strict-config",
93 "--cov=object_primitive",
94 "--cov-report=term-missing",
95 "--cov-report=html",
96 "--cov-branch",
97 "-v",
98]
99markers = [
100 "unit: Unit tests (fast, isolated)",
101 "integration: Integration tests (slower, may use external resources)",
102 "e2e: End-to-end tests (slowest, full system)",
103 "slow: Tests that take significant time to run",
104]
105
106# Coverage configuration
107[tool.coverage.run]
108source = ["src"]
109omit = [
110 "*/tests/*",
111 "*/test_*.py",
112 "*/__pycache__/*",
113]
114
115[tool.coverage.report]
116exclude_lines = [
117 "pragma: no cover",
118 "def __repr__",
119 "raise AssertionError",
120 "raise NotImplementedError",
121 "if __name__ == .__main__.:",
122 "if TYPE_CHECKING:",
123]
124
125# Black code formatting
126[tool.black]
127line-length = 100
128target-version = ["py39", "py310", "py311", "py312"]
129include = '\.pyi?$'
130exclude = '''
131/(
132 \.git
133 | \.venv
134 | \.eggs
135 | \.hg
136 | \.mypy_cache
137 | \.tox
138 | \.pytest_cache
139 | __pycache__
140 | build
141 | dist
142)/
143'''
144
145# Ruff linting
146[tool.ruff]
147line-length = 100
148target-version = "py39"
149select = [
150 "E", # pycodestyle errors
151 "W", # pycodestyle warnings
152 "F", # pyflakes
153 "I", # isort
154 "C", # flake8-comprehensions
155 "B", # flake8-bugbear
156]
157ignore = [
158 "E501", # line too long (handled by black)
159]
160exclude = [
161 ".git",
162 ".venv",
163 "__pycache__",
164 "build",
165 "dist",
166]
167
168# MyPy type checking
169[tool.mypy]
170python_version = "3.9"
171warn_return_any = true
172warn_unused_configs = true
173disallow_untyped_defs = false # Start permissive, tighten later
174check_untyped_defs = true
175no_implicit_optional = true
176warn_redundant_casts = true
177warn_unused_ignores = true
178warn_no_return = true
179strict_equality = true
180
181[[tool.mypy.overrides]]
182module = "dbbasic.*"
183ignore_missing_imports = true