Phase 1: Add Linux distribution packages (.deb and .rpm) - #193
Merged
Conversation
- Add packaging structure under packaging/debian/ and packaging/rpm/ - Create nfpm configurations for both Debian/Ubuntu and Fedora/RHEL - Implement vendored venv approach at /usr/lib/structkit with shim at /usr/bin/structkit - Add GitHub Actions workflow for building packages (amd64 and arm64) - Support both release and workflow_dispatch triggers - Add comprehensive documentation in packaging/README.md - Packages include all Python dependencies in vendored environment Co-authored-by: Kenneth Belitzky <kenny@belitzky.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Issue
Phase 1 of Linux distribution packaging as requested.
Description
This PR introduces comprehensive Linux distribution packaging for structkit, enabling easy installation via native package managers on Debian/Ubuntu (.deb) and Fedora/RHEL (.rpm) systems.
Key Changes
Package Structure:
packaging/debian/andpackaging/rpm/directories with nfpm configurations/usr/lib/structkit/venv//usr/bin/structkitthat invokes the vendored environmentBuild System:
.github/workflows/build-linux-packages.yamlDocumentation:
packaging/README.mdwith:Technical Implementation
The packages use a vendored Python environment to handle dependencies that aren't available in distribution repositories:
This approach ensures:
Build Results
Successfully tested local builds:
structkit_3.2.1_amd64.deb(46 MB)structkit-3.2.1-1.x86_64.rpm(48 MB)Installation
Debian/Ubuntu:
Fedora/RHEL:
Out of Scope (Future Phases)
As specified in requirements, this PR does NOT include:
Checklist
Additional Comments
Workflow Usage:
Architecture Support:
Package Size: