-
Notifications
You must be signed in to change notification settings - Fork 1
Add units #13
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
base: main
Are you sure you want to change the base?
Add units #13
Changes from all commits
d7b5c5a
052cc04
9900d52
ebcefd3
2d19bbc
df8f5d4
d141e1e
4e49cad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| # Python | ||
| __pycache__/ | ||
| *.py[cod] | ||
| *$py.class | ||
| *.so | ||
| .Python | ||
| *.egg-info/ | ||
| dist/ | ||
| build/ | ||
| *.egg | ||
| .pytest_cache/ | ||
| .coverage | ||
| htmlcov/ | ||
| .tox/ | ||
| .hypothesis/ | ||
|
|
||
| # Virtual environments | ||
| .venv/ | ||
| venv/ | ||
| env/ | ||
| ENV/ | ||
| .pixi/ | ||
|
|
||
| # IDE | ||
| .vscode/ | ||
| .idea/ | ||
| *.swp | ||
| *.swo | ||
| *~ | ||
|
|
||
| # Git | ||
| .git/ | ||
| .gitignore | ||
| .gitattributes | ||
|
|
||
| # CI/CD | ||
| .github/ | ||
|
|
||
| # Documentation | ||
| docs/ | ||
| *.md | ||
| !README.md | ||
|
|
||
| # Config files | ||
| .pre-commit-config.yaml | ||
| .flake8 | ||
|
|
||
| # Docker/Container | ||
| Containerfile | ||
| Dockerfile | ||
| .dockerignore | ||
| .containerignore | ||
| docker-compose.yml | ||
|
|
||
| # Examples and tests | ||
| examples/ | ||
| src/_test/ | ||
|
|
||
| # Monitoring configs | ||
| conf/ |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,62 @@ | ||||||||
| # Multi-stage build for arroyopy | ||||||||
| # | ||||||||
| # Build examples: | ||||||||
| # Basic: podman build -t arroyopy . | ||||||||
| # With ZMQ: podman build --build-arg EXTRAS=zmq -t arroyopy:zmq . | ||||||||
| # With Redis: podman build --build-arg EXTRAS=redis -t arroyopy:redis . | ||||||||
| # Full stack: podman build --build-arg EXTRAS="zmq,redis,file-watch" -t arroyopy:full . | ||||||||
| # | ||||||||
| # Run examples: | ||||||||
| # podman run arroyopy --help | ||||||||
| # podman run -v ./config:/config arroyopy run /config/pipeline.yaml | ||||||||
| # | ||||||||
| # Build arguments for optional dependencies | ||||||||
| ARG EXTRAS="" | ||||||||
|
|
||||||||
| FROM python:3.12-slim AS builder | ||||||||
|
|
||||||||
| WORKDIR /app | ||||||||
|
|
||||||||
| # Install build dependencies | ||||||||
| RUN pip install --no-cache-dir build | ||||||||
|
|
||||||||
| # Copy only what's needed for building | ||||||||
| COPY pyproject.toml README.md LICENSE* ./ | ||||||||
| COPY src/ ./src/ | ||||||||
|
|
||||||||
| # Build the wheel | ||||||||
| RUN python -m build --wheel | ||||||||
|
|
||||||||
| # Final runtime image | ||||||||
| FROM python:3.12-slim | ||||||||
|
|
||||||||
| ARG EXTRAS | ||||||||
|
|
||||||||
| WORKDIR /app | ||||||||
|
|
||||||||
| # Install runtime dependencies and the built wheel | ||||||||
| COPY --from=builder /app/dist/*.whl /tmp/ | ||||||||
|
|
||||||||
| # Install with optional extras if specified | ||||||||
| RUN if [ -z "$EXTRAS" ]; then \ | ||||||||
| pip install --no-cache-dir /tmp/*.whl; \ | ||||||||
| else \ | ||||||||
| pip install --no-cache-dir "/tmp/*.whl[$EXTRAS]"; \ | ||||||||
|
||||||||
| pip install --no-cache-dir "/tmp/*.whl[$EXTRAS]"; \ | |
| WHEEL_PATH=$(echo /tmp/*.whl) && \ | |
| pip install --no-cache-dir "arroyopy[$EXTRAS] @ file://${WHEEL_PATH}"; \ |
Uh oh!
There was an error while loading. Please reload this page.