-
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
Merged
Merged
Add units #13
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
d7b5c5a
change to a pixi project
dylanmcreynolds 052cc04
add units concept and tests
dylanmcreynolds 9900d52
fix build, remove dev from default pixi environemnt
dylanmcreynolds ebcefd3
update pixi.lock
dylanmcreynolds 2d19bbc
add tests
dylanmcreynolds df8f5d4
remove windows support
dylanmcreynolds d141e1e
renamed units to blocks
dylanmcreynolds 4e49cad
change config format to always require a blocks parent
dylanmcreynolds 2c1ed93
fixed bug with operator code not starting in background
dylanmcreynolds 4bae64a
cancel remaining tasks on block.stop(()
dylanmcreynolds 1b976a4
fixed call to sys.exit
dylanmcreynolds 6dd87df
RedisPublisher is now a Publisher
dylanmcreynolds 04bf59f
pin pixi version in actions
dylanmcreynolds 1e0fed0
update pixi.lock
dylanmcreynolds b0060b9
fix build
dylanmcreynolds 4d9b05e
pixi lock check
dylanmcreynolds a0ad480
fix lock
dylanmcreynolds 9620ee7
test pixi
dylanmcreynolds 267ae15
fix lock
dylanmcreynolds 0fd257a
remove removal of lock
dylanmcreynolds 6ee4a90
more lock
dylanmcreynolds 040aea7
mroe lock
dylanmcreynolds af770fb
more lock
dylanmcreynolds 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,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/ |
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,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]"; \ | ||
dylanmcreynolds marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| fi && \ | ||
| rm /tmp/*.whl | ||
|
|
||
| # Create a non-root user | ||
| RUN useradd -m -u 1000 arroyo && \ | ||
| chown -R arroyo:arroyo /app | ||
|
|
||
| USER arroyo | ||
|
|
||
| # Default command runs the CLI | ||
| ENTRYPOINT ["arroyo", "run"] | ||
| CMD ["--help"] | ||
|
|
||
| # Labels | ||
| LABEL org.opencontainers.image.title="arroyopy" | ||
| LABEL org.opencontainers.image.description="A library to simplify processing streams of data" | ||
| LABEL org.opencontainers.image.source="https://github.com/als-computing/arroyopy" | ||
| LABEL org.opencontainers.image.licenses="BSD-3-Clause" | ||
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.