Skip to content

feat(constants): auto-source SUPPORTED_SERVER_VERSION from pyproject.toml#101

Merged
zeevdr merged 1 commit into
mainfrom
feat/auto-source-server-version
May 25, 2026
Merged

feat(constants): auto-source SUPPORTED_SERVER_VERSION from pyproject.toml#101
zeevdr merged 1 commit into
mainfrom
feat/auto-source-server-version

Conversation

@zeevdr
Copy link
Copy Markdown
Member

@zeevdr zeevdr commented May 25, 2026

Summary

  • Eliminates the hardcoded version constraint in __init__.py[tool.opendecree].supported_server_version in pyproject.toml is now the single source of truth.
  • A new build/gen-constants.py script reads the value at codegen time and writes sdk/src/opendecree/_constants.py; make generate runs it automatically before proto generation.
  • Fixes an overly broad build/ gitignore rule that silently required git add -f for tracked scripts.

Test plan

  • make test — 240 passed, 97.49% coverage, _constants.py at 100%
  • make lint — all checks passed
  • make typecheck — no issues in 28 source files
  • SUPPORTED_SERVER_VERSION value unchanged; _compat.py import path verified

Closes #64

…toml

Move the version constraint to [tool.opendecree] in pyproject.toml as the
single source of truth. build/gen-constants.py reads it and writes
sdk/src/opendecree/_constants.py; make generate now runs gen-constants
first. __init__.py imports SUPPORTED_SERVER_VERSION from _constants.py
instead of hardcoding it.

Also fix the build/ .gitignore rule — it was too broad, silently requiring
force-add for Dockerfile.tools. Negation patterns now let tracked scripts
(*.py, Dockerfile.tools) be added normally.

Closes #64

Co-Authored-By: Claude <noreply@anthropic.com>
@zeevdr zeevdr added this to the Beta Readiness milestone May 25, 2026
@zeevdr zeevdr added size: S Quick win — a few hours or less priority: P2 Nice-to-have labels May 25, 2026
@zeevdr zeevdr enabled auto-merge (squash) May 25, 2026 09:44
@codecov
Copy link
Copy Markdown

codecov Bot commented May 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@zeevdr zeevdr merged commit b8b59d2 into main May 25, 2026
15 checks passed
@zeevdr zeevdr deleted the feat/auto-source-server-version branch May 25, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: P2 Nice-to-have size: S Quick win — a few hours or less

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auto-source SUPPORTED_SERVER_VERSION instead of hardcoding

1 participant