Repository navigation
Refactor/python package and website deployment #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
simonweigold
merged 83 commits into
main
from
refactor/python-package-and-website-deployment
Apr 3, 2026
Merged
Changes from all commits
Commits
Show all changes
83 commits
Select commit
Hold shift + click to select a range
22d25df
feat: Introduce new homepage and Python web app, update dependencies,…
simonweigold 29b132a
feat: Integrate Model Context Protocol SDK, updating API and authenti…
simonweigold 294f6d7
chore: add project config
simonweigold f4005e2
docs: initialize project
simonweigold 388df6e
docs: complete project research - DX transformation
simonweigold 09c5806
docs: define v1 requirements
simonweigold cc9d0a2
docs: create roadmap (4 phases)
simonweigold de32520
docs(01): capture phase context
simonweigold b8fb4dd
docs(state): record phase 1 context session
simonweigold 105bc03
docs(01-foundation): research phase domain
simonweigold 02a6d8c
docs(01-foundation): create phase 1 plans
simonweigold 61c66bf
chore(01-02): configure Ruff linting and formatting
simonweigold b957e37
docs(01-01): add LICENSE, CHANGELOG.md, and CODE_OF_CONDUCT.md
simonweigold 221495e
chore(01-02): configure pytest and mypy
simonweigold c35acae
chore(01-02): add Justfile with development commands
simonweigold b66ab20
docs(01-01): add documentation structure and CONTRIBUTING.md
simonweigold 7f8a9c5
docs(01-02): complete Python development tooling plan
simonweigold 2fe79a5
docs(01-01): update README.md per D-01
simonweigold 9e5882c
docs(01-01): complete documentation foundation plan
simonweigold 5e01996
feat(01-03): create dev container configuration
simonweigold cb6e161
feat(01-03): create VS Code settings and extensions
simonweigold 8aaf1ec
docs(01-03): complete dev container plan
simonweigold 9a7083d
docs(phase-01): evolve PROJECT.md after phase completion
simonweigold 18611a6
docs(02): capture phase context
simonweigold 57763e3
docs(state): record phase 2 context session
simonweigold 168afce
docs(02-contributor-experience): create phase plans
simonweigold ad5881b
chore(02-02): add pre-commit configuration with Ruff and mypy
simonweigold a064ef3
feat(02-01): add bug report GitHub issue template
simonweigold bbf2215
docs(02-02): add pre-commit setup instructions to CONTRIBUTING.md
simonweigold 7cb1562
feat(02-01): add feature request GitHub issue template
simonweigold b9b315a
feat(02-01): add pull request template
simonweigold 99ad167
docs(02-02): complete pre-commit hooks plan
simonweigold 8ca1f48
docs(02-01): complete GitHub templates plan
simonweigold 29a67e2
feat(02-03): add GitHub Actions CI workflow
simonweigold 192e45d
docs(02-03): add branch protection documentation
simonweigold 9e02b02
docs(02-03): add good first issue templates
simonweigold 8dd2ebe
docs(02-03): complete GitHub CI and quality gates plan
simonweigold 3652b0d
docs(phase-02): evolve PROJECT.md after phase completion
simonweigold 6dba86d
docs(03): capture phase 3 context
simonweigold e39384f
docs(state): record phase 3 context session
simonweigold b881bb8
docs(03-frontend-integration): create phase plans
simonweigold f85388b
docs(03-02): create FastAPI integration example directory structure
simonweigold ed98fab
docs(03-01): add user guide documentation
simonweigold e4807bd
feat(03-02): add FastAPI integration main.py example
simonweigold 94c1d61
test(03-02): verify FastAPI example syntax and structure
simonweigold 141a62b
docs(03-01): add integration documentation
simonweigold 83611de
docs(03-02): complete FastAPI integration example plan
simonweigold 193cfa4
docs(03-01): add contributor documentation
simonweigold a3bd4a1
feat(03-01): add CLI command for OpenAPI spec generation
simonweigold 1e664d6
feat(03-01): add OpenAPI endpoint and update docs sidebar
simonweigold 00c8b7c
docs(03-01): complete documentation structure plan
simonweigold 385bc86
docs(phase-03): complete frontend & integration phase
simonweigold 5ce4624
docs(04): capture phase 4 context
simonweigold 9b7c333
docs(state): record phase 4 context session
simonweigold ae9c761
docs(04): create phase 4 distribution plans
simonweigold 911523d
feat(04-01): add setup script for one-command dependency installation
simonweigold 99f7f55
feat(04-02): create backend production Dockerfile
simonweigold 98150e0
feat(04-01): add root package.json with dev command
simonweigold 03ed5a7
docs(04-03): add Docker Compose deployment guide
simonweigold 26dab54
chore(04-01): update pyproject.toml for PyPI readiness
simonweigold a5e71ec
feat(04-02): create frontend production Dockerfile
simonweigold 42a5542
feat(04-02): create nginx reverse proxy configuration
simonweigold a13cf4e
docs(04-01): update .env.example template per plan requirements
simonweigold e50883e
feat(04-02): create production docker-compose.yml
simonweigold 450b6c0
docs(04-03): add environment variables reference guide
simonweigold 1073a8f
docs(04-01): add plan execution summary
simonweigold 48edf8f
docs(04-03): add production deployment guide
simonweigold 3a2bc0e
docs(04-02): complete Docker Compose & Production Deployment plan
simonweigold 61f76c8
feat(04-03): add Deployment section to docs sidebar
simonweigold 9492f8e
docs(04-03): complete Environment Documentation & Production Guide plan
simonweigold 3064ade
docs(phase-04): complete distribution phase and v1.0 milestone
simonweigold d147c9a
Update gitignore; commit leftovers
simonweigold 725ab78
Fix: install just for github ci tests
simonweigold 864bf08
fix: update Justfile to use uv run for test, lint, and format commands
simonweigold 01b97e8
Lint and test locally
simonweigold 95ffe16
fix: improve error handling and type annotations across multiple files
simonweigold 5e7fa57
Update gitignore
simonweigold e1da48f
Delete .planning directory
simonweigold c439386
MV docs
simonweigold a76ffcf
rm redundant issue
simonweigold c037ba3
Rename "clerk-framework" to "openclerk"
simonweigold 8f9598d
Refactor AuthStateMiddleware to use pure ASGI and update file upload …
simonweigold 7233153
Refactor code for improved readability and consistency
simonweigold File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| FROM mcr.microsoft.com/devcontainers/python:3.13 | ||
|
|
||
| # Install Node.js 20 | ||
| RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ | ||
| && apt-get install -y nodejs | ||
|
|
||
| # Install UV | ||
| RUN curl -LsSf https://astral.sh/uv/install.sh | sh \ | ||
| && mv /root/.local/bin/uv /usr/local/bin/uv \ | ||
| && mv /root/.local/bin/uvx /usr/local/bin/uvx | ||
|
|
||
| # Install Just | ||
| RUN curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash - --to /usr/local/bin | ||
|
|
||
| # Set working directory | ||
| WORKDIR /workspace | ||
|
|
||
| # Keep container running | ||
| CMD ["sleep", "infinity"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| { | ||
| "name": "Clerk Development", | ||
| "dockerComposeFile": "docker-compose.yml", | ||
| "service": "app", | ||
| "workspaceFolder": "/workspace", | ||
| "features": { | ||
| "ghcr.io/devcontainers/features/common-utils:2": { | ||
| "installZsh": true, | ||
| "configureZshAsDefaultShell": true | ||
| }, | ||
| "ghcr.io/devcontainers/features/node:1": { | ||
| "version": "20" | ||
| } | ||
| }, | ||
| "postCreateCommand": "just setup", | ||
| "forwardPorts": [3000, 8000, 5432], | ||
| "portsAttributes": { | ||
| "3000": { | ||
| "label": "Frontend", | ||
| "onAutoForward": "notify" | ||
| }, | ||
| "8000": { | ||
| "label": "Backend API", | ||
| "onAutoForward": "notify" | ||
| }, | ||
| "5432": { | ||
| "label": "PostgreSQL", | ||
| "onAutoForward": "silent" | ||
| } | ||
| }, | ||
| "customizations": { | ||
| "vscode": { | ||
| "extensions": [ | ||
| "ms-python.python", | ||
| "charliermarsh.ruff", | ||
| "dbaeumer.vscode-eslint", | ||
| "bradlc.vscode-tailwindcss", | ||
| "esbenp.prettier-vscode" | ||
| ], | ||
| "settings": { | ||
| "python.defaultInterpreterPath": "/usr/local/bin/python", | ||
| "python.analysis.typeCheckingMode": "strict" | ||
| } | ||
| } | ||
| }, | ||
| "remoteUser": "vscode" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| version: '3.8' | ||
|
|
||
| services: | ||
| app: | ||
| build: | ||
| context: .. | ||
| dockerfile: .devcontainer/Dockerfile | ||
| volumes: | ||
| - ..:/workspace:cached | ||
| command: sleep infinity | ||
| depends_on: | ||
| - db | ||
| environment: | ||
| - DATABASE_URL=postgresql://clerk:clerk@db:5432/clerk | ||
|
|
||
| db: | ||
| image: postgres:15 | ||
| environment: | ||
| POSTGRES_USER: clerk | ||
| POSTGRES_PASSWORD: clerk | ||
| POSTGRES_DB: clerk | ||
| ports: | ||
| - "5432:5432" | ||
| volumes: | ||
| - postgres_data:/var/lib/postgresql/data | ||
|
|
||
| volumes: | ||
| postgres_data: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| # Good First Issues | ||
|
|
||
| Templates for initial "good first issue" labels. Create these in GitHub Issues. | ||
|
|
||
| ## Issue 1: Documentation Improvements | ||
|
|
||
| **Title:** Improve README with better installation examples | ||
|
|
||
| **Labels:** `good first issue`, `documentation` | ||
|
|
||
| **Description:** | ||
|
|
||
| ``` | ||
| The current README installation section could be clearer for new contributors. | ||
|
|
||
| ### Task | ||
| - Review the README.md installation instructions | ||
| - Add more explicit examples for common setups | ||
| - Ensure the 5-minute setup claim is accurate | ||
|
|
||
| ### Acceptance Criteria | ||
| - [ ] Installation instructions tested on clean system | ||
| - [ ] Examples cover macOS and Linux | ||
| - [ ] Troubleshooting section added for common issues | ||
| - [ ] Instructions work with the devcontainer setup | ||
| ``` | ||
|
|
||
| ## Issue 2: Add Test Coverage | ||
|
|
||
| **Title:** Add tests for reasoning kit loader | ||
|
|
||
| **Labels:** `good first issue`, `testing` | ||
|
|
||
| **Description:** | ||
|
|
||
| ``` | ||
| The reasoning kit loader (`packages/clerk/src/openclerk/loader.py`) needs better test coverage. | ||
|
|
||
| ### Task | ||
| - Add unit tests for `load_reasoning_kit()` function | ||
| - Test edge cases: missing files, invalid JSON, malformed kits | ||
| - Aim for >80% coverage on loader module | ||
|
|
||
| ### Acceptance Criteria | ||
| - [ ] Tests exist in `packages/clerk/tests/test_loader.py` | ||
| - [ ] All happy paths tested | ||
| - [ ] Edge cases (FileNotFoundError, JSONDecodeError) tested | ||
| - [ ] Coverage report shows >80% for loader.py | ||
| ``` | ||
|
|
||
| ## Creating These Issues | ||
|
|
||
| 1. Go to https://github.com/openclerk/clerk/issues/new | ||
| 2. Copy title and description from above | ||
| 3. Add labels: `good first issue` plus relevant category label | ||
| 4. Repeat for all 3 issues |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| name: "Bug Report" | ||
| description: "Create a report to help us improve" | ||
| title: "[Bug]: " | ||
| labels: ["bug"] | ||
|
|
||
| body: | ||
| - type: textarea | ||
| id: description | ||
| attributes: | ||
| label: Description | ||
| description: A clear description of the bug | ||
| placeholder: Describe what you observed... | ||
| validations: | ||
| required: true | ||
|
|
||
| - type: textarea | ||
| id: reproduction | ||
| attributes: | ||
| label: Reproduction Steps | ||
| description: Steps to reproduce the behavior | ||
| placeholder: | | ||
| 1. Go to '...' | ||
| 2. Click on '...' | ||
| 3. Scroll down to '...' | ||
| 4. See error | ||
| validations: | ||
| required: true | ||
|
|
||
| - type: textarea | ||
| id: expected | ||
| attributes: | ||
| label: Expected Behavior | ||
| description: What you expected to happen | ||
| placeholder: Describe what you expected... | ||
| validations: | ||
| required: true | ||
|
|
||
| - type: textarea | ||
| id: actual | ||
| attributes: | ||
| label: Actual Behavior | ||
| description: What actually happened | ||
| placeholder: Describe what actually occurred... | ||
| validations: | ||
| required: true | ||
|
|
||
| - type: input | ||
| id: environment | ||
| attributes: | ||
| label: Environment | ||
| description: Your environment details (OS, Python version, Clerk version) | ||
| placeholder: macOS 14, Python 3.13, Clerk 0.1.0 | ||
| validations: | ||
| required: true | ||
|
|
||
| - type: textarea | ||
| id: additional | ||
| attributes: | ||
| label: Additional Context | ||
| description: Screenshots, logs, or other context | ||
| placeholder: Add any other context about the problem here... | ||
| validations: | ||
| required: false |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.