-
Notifications
You must be signed in to change notification settings - Fork 2
feat: initial creation of deb package #43
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
Conversation
9664472 to
4c440d1
Compare
4c440d1 to
143c8d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements the initial functionality for creating Debian (.deb) packages using zstandard compression. The implementation creates control and data tarballs and archives them into a .deb file format, though metadata and checksums will be added in a future PR.
Key changes:
- Added zstandard library as a new dependency for efficient compression
- Replaced simple tar.xz packaging with proper .deb file creation using ar archives
- Implemented separate creation of control.tar.zstd and data.tar.zstd files
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| pyproject.toml | Adds zstandard>=0.25.0 as a project dependency |
| uv.lock | Updates lock file with zstandard package metadata and wheel distributions for multiple platforms |
| debcraft/services/package.py | Implements .deb package creation with zstandard-compressed control and data archives, including new helper functions for creating each tarball |
Comments suppressed due to low confidence (1)
debcraft/services/package.py:23
- Import of 'shutil' is not used.
import shutil
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
93e69a1 to
5d7f947
Compare
Create control and data tarballs and archive them in a .deb file, currently based on the main project name. This will be adjusted to use the correct package name after the project model is in place. Control metadata and checksum files will be added in a separate PR. Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
5d7f947 to
e9a0f7d
Compare
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
fc80828 to
e7df5ca
Compare
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
Create control and data tarballs and archive them in a .deb file.
Filename is currently based on the main project name and will be
adjusted to use the correct package name after the project model
is in place. Control metadata and checksum files will be added
in a separate PR.
Fixes #37
make lint && make test?DEBCRAFT-17