askrobots / dbbasic-object-server
Public
Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.
pyproject.toml · 4.7 KB · 146 lines
| 1 | [build-system] |
| 2 | requires = ["setuptools>=68.0", "wheel"] |
| 3 | build-backend = "setuptools.build_meta" |
| 4 | |
| 5 | [project] |
| 6 | name = "dbbasic-object-server" |
| 7 | version = "0.0.1" |
| 8 | description = "Python runtime for live, versioned DBBASIC application objects" |
| 9 | readme = "README.md" |
| 10 | requires-python = ">=3.10" |
| 11 | license = {text = "MIT"} |
| 12 | authors = [ |
| 13 | {name = "DBBASIC Project", email = "dan@askrobots.com"} |
| 14 | ] |
| 15 | keywords = [ |
| 16 | "dbbasic", |
| 17 | "object-runtime", |
| 18 | "application-server", |
| 19 | "tsv", |
| 20 | "live-objects", |
| 21 | "versioned-objects", |
| 22 | ] |
| 23 | classifiers = [ |
| 24 | "Development Status :: 2 - Pre-Alpha", |
| 25 | "Intended Audience :: Developers", |
| 26 | "License :: OSI Approved :: MIT License", |
| 27 | "Programming Language :: Python :: 3", |
| 28 | "Programming Language :: Python :: 3.10", |
| 29 | "Programming Language :: Python :: 3.11", |
| 30 | "Programming Language :: Python :: 3.12", |
| 31 | "Programming Language :: Python :: 3.13", |
| 32 | "Programming Language :: Python :: 3.14", |
| 33 | "Topic :: Internet :: WWW/HTTP :: HTTP Servers", |
| 34 | "Topic :: Software Development :: Libraries :: Application Frameworks", |
| 35 | ] |
| 36 | dependencies = [] |
| 37 | |
| 38 | [project.optional-dependencies] |
| 39 | dev = [ |
| 40 | "pytest>=7.4.0", |
| 41 | "pytest-cov>=4.1.0", |
| 42 | "ruff>=0.4.0", |
| 43 | ] |
| 44 | test = [ |
| 45 | "pytest>=7.4.0", |
| 46 | ] |
| 47 | server = [ |
| 48 | "uvicorn>=0.30.0", |
| 49 | # Websocket protocol implementation uvicorn needs to accept /ws upgrades |
| 50 | # for realtime push. Without it uvicorn rejects websocket connections. |
| 51 | "websockets>=12.0", |
| 52 | ] |
| 53 | # The daemon's scheduler computes the next run of a cron schedule with |
| 54 | # croniter. Every schedule the shipped packages declare is cron, so without |
| 55 | # this extra no scheduled pass (invoice aging, recurring journals, the |
| 56 | # biller, tracking polls) can run. It is not in `server` because the server |
| 57 | # itself never needs it and the base install stays dependency-free; a box |
| 58 | # that runs the daemon installs `.[server,scheduler]`. A missing croniter is |
| 59 | # reported loudly (daemon boot, GET /daemon/status, the task's own error), |
| 60 | # never skipped in silence. |
| 61 | scheduler = [ |
| 62 | "croniter>=2.0", |
| 63 | ] |
| 64 | # Box-to-box exchange (docs/box-to-box-exchange.md) signs and verifies |
| 65 | # business documents with Ed25519, which the standard library does not |
| 66 | # have. Imported only by object_exchange, and only inside the functions |
| 67 | # that sign or verify; without it the exchange refuses with a message |
| 68 | # naming this extra, and nothing else on the box changes. |
| 69 | exchange = [ |
| 70 | "cryptography>=42", |
| 71 | ] |
| 72 | |
| 73 | [project.urls] |
| 74 | Homepage = "https://dbbasic.com" |
| 75 | Repository = "https://github.com/askrobots/dbbasic-object-server" |
| 76 | Issues = "https://github.com/askrobots/dbbasic-object-server/issues" |
| 77 | |
| 78 | [tool.pytest.ini_options] |
| 79 | testpaths = ["tests"] |
| 80 | python_files = ["test_*.py"] |
| 81 | python_classes = ["Test*"] |
| 82 | python_functions = ["test_*"] |
| 83 | addopts = [ |
| 84 | "--strict-markers", |
| 85 | "--strict-config", |
| 86 | "-v", |
| 87 | # Heavy conformance/benchmark suites are deselected from the default |
| 88 | # (per-commit) run and invoked deliberately -- `pytest -m conformance` |
| 89 | # or `pytest -m bench` -- like benchmarking. A command-line -m overrides |
| 90 | # this, so those explicit invocations still work. |
| 91 | "-m", "not conformance and not bench and not e2e", |
| 92 | ] |
| 93 | markers = [ |
| 94 | "conformance: heavy correctness/charset/i18n/durability conformance suites; run deliberately, not per-commit (see plan/database-test-strategy.md)", |
| 95 | "bench: performance/scale benchmarks; a tracked trend, not a pass/fail gate", |
| 96 | "node: tests that run JavaScript under the `node` binary; they skip with \"node not installed\" where it is missing, and scripts/release_gate.sh node runs them where it is present", |
| 97 | "e2e: real-server, real-Chromium browser tests over the generated UI (see tests/e2e); slower and needs Playwright's browser binaries, run deliberately via `pytest -m e2e tests/e2e` (also its own CI job, .github/workflows/e2e.yml)", |
| 98 | ] |
| 99 | |
| 100 | [tool.setuptools] |
| 101 | py-modules = [ |
| 102 | "deployment_checks", |
| 103 | "http_api_contract", |
| 104 | "object_backup", |
| 105 | "object_collections", |
| 106 | "object_correlation", |
| 107 | "object_daemon", |
| 108 | "object_daemon_control", |
| 109 | "object_daemon_status", |
| 110 | "object_events", |
| 111 | "object_exchange", |
| 112 | "object_execution", |
| 113 | "object_field_permissions", |
| 114 | "object_files", |
| 115 | "object_identity", |
| 116 | "object_ids", |
| 117 | "object_logs", |
| 118 | "object_metadata", |
| 119 | "object_namespace", |
| 120 | "object_package_changes", |
| 121 | "object_packages", |
| 122 | "object_permission_audit", |
| 123 | "object_permission_store", |
| 124 | "object_permission_status", |
| 125 | "object_permissions", |
| 126 | "object_policy_diff", |
| 127 | "object_rate_limit", |
| 128 | "object_record_changes", |
| 129 | "object_records", |
| 130 | "object_schema_versions", |
| 131 | "object_schemas", |
| 132 | "object_server", |
| 133 | "object_source", |
| 134 | "object_source_changes", |
| 135 | "object_state", |
| 136 | "object_versions", |
| 137 | "python_object_runtime", |
| 138 | ] |
| 139 | |
| 140 | [tool.ruff] |
| 141 | line-length = 100 |
| 142 | target-version = "py310" |
| 143 | |
| 144 | [tool.ruff.lint] |
| 145 | select = ["E", "F", "I", "B"] |
| 146 | ignore = ["E501"] |