askrobots / dbbasic-object-primitive
Public
Python functions as REST objects, with clustering, load balancing and state replication; no containers or orchestration.
pyproject.toml · 4.0 KB · 183 lines
| 1 | [build-system] |
| 2 | requires = ["setuptools>=68.0.0", "wheel"] |
| 3 | build-backend = "setuptools.build_meta" |
| 4 | |
| 5 | [project] |
| 6 | name = "object-primitive" |
| 7 | version = "0.1.0" |
| 8 | description = "A new computing paradigm where code, data, and execution are unified into network-accessible objects" |
| 9 | readme = "README.md" |
| 10 | requires-python = ">=3.9" |
| 11 | license = {text = "MIT"} |
| 12 | authors = [ |
| 13 | {name = "Dan Q", email = "danq@dbbasic.com"} |
| 14 | ] |
| 15 | keywords = [ |
| 16 | "distributed-systems", |
| 17 | "plan9", |
| 18 | "object-primitive", |
| 19 | "protocol-agnostic", |
| 20 | "implementation-agnostic", |
| 21 | "self-healing", |
| 22 | ] |
| 23 | classifiers = [ |
| 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 |
| 37 | dependencies = [ |
| 38 | "dbbasic-web>=0.1.0", # Foundation web framework (TSV-based, simple) |
| 39 | ] |
| 40 | |
| 41 | [project.optional-dependencies] |
| 42 | # Development dependencies |
| 43 | dev = [ |
| 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 |
| 53 | test = [ |
| 54 | "pytest>=7.4.0", |
| 55 | "pytest-cov>=4.1.0", |
| 56 | "pytest-asyncio>=0.21.0", |
| 57 | ] |
| 58 | |
| 59 | # Documentation dependencies |
| 60 | docs = [ |
| 61 | "mkdocs>=1.5.0", |
| 62 | "mkdocs-material>=9.0.0", |
| 63 | ] |
| 64 | |
| 65 | # All optional dependencies |
| 66 | all = [ |
| 67 | "object-primitive[dev,test,docs]", |
| 68 | ] |
| 69 | |
| 70 | [project.urls] |
| 71 | Homepage = "https://github.com/danq/object-primitive" |
| 72 | Documentation = "https://github.com/danq/object-primitive/tree/main/docs" |
| 73 | Repository = "https://github.com/danq/object-primitive" |
| 74 | Issues = "https://github.com/danq/object-primitive/issues" |
| 75 | |
| 76 | [tool.setuptools] |
| 77 | package-dir = {"" = "src"} |
| 78 | |
| 79 | [tool.setuptools.packages.find] |
| 80 | where = ["src"] |
| 81 | include = ["object_primitive*"] |
| 82 | namespaces = false |
| 83 | |
| 84 | # Pytest configuration |
| 85 | [tool.pytest.ini_options] |
| 86 | testpaths = ["tests"] |
| 87 | python_files = ["test_*.py", "*_test.py"] |
| 88 | python_classes = ["Test*"] |
| 89 | python_functions = ["test_*"] |
| 90 | addopts = [ |
| 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 | ] |
| 99 | markers = [ |
| 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] |
| 108 | source = ["src"] |
| 109 | omit = [ |
| 110 | "*/tests/*", |
| 111 | "*/test_*.py", |
| 112 | "*/__pycache__/*", |
| 113 | ] |
| 114 | |
| 115 | [tool.coverage.report] |
| 116 | exclude_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] |
| 127 | line-length = 100 |
| 128 | target-version = ["py39", "py310", "py311", "py312"] |
| 129 | include = '\.pyi?$' |
| 130 | exclude = ''' |
| 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] |
| 147 | line-length = 100 |
| 148 | target-version = "py39" |
| 149 | select = [ |
| 150 | "E", # pycodestyle errors |
| 151 | "W", # pycodestyle warnings |
| 152 | "F", # pyflakes |
| 153 | "I", # isort |
| 154 | "C", # flake8-comprehensions |
| 155 | "B", # flake8-bugbear |
| 156 | ] |
| 157 | ignore = [ |
| 158 | "E501", # line too long (handled by black) |
| 159 | ] |
| 160 | exclude = [ |
| 161 | ".git", |
| 162 | ".venv", |
| 163 | "__pycache__", |
| 164 | "build", |
| 165 | "dist", |
| 166 | ] |
| 167 | |
| 168 | # MyPy type checking |
| 169 | [tool.mypy] |
| 170 | python_version = "3.9" |
| 171 | warn_return_any = true |
| 172 | warn_unused_configs = true |
| 173 | disallow_untyped_defs = false # Start permissive, tighten later |
| 174 | check_untyped_defs = true |
| 175 | no_implicit_optional = true |
| 176 | warn_redundant_casts = true |
| 177 | warn_unused_ignores = true |
| 178 | warn_no_return = true |
| 179 | strict_equality = true |
| 180 | |
| 181 | [[tool.mypy.overrides]] |
| 182 | module = "dbbasic.*" |
| 183 | ignore_missing_imports = true |