Skip to content

Feature/complex deb package#2

Merged
embtom merged 7 commits into
mainfrom
feature/complex_deb_package
May 26, 2026
Merged

Feature/complex deb package#2
embtom merged 7 commits into
mainfrom
feature/complex_deb_package

Conversation

@embtom

@embtom embtom commented May 21, 2026

Copy link
Copy Markdown
Member
  • Move _PROFILE_RE regex compilation from inside install_package() to module scope to avoid repeated compilation overhead

- Added support for logging to a file in the CLI.
- Improved build dependency installation to handle virtual packages and architecture restrictions.
- Updated build_dependencies method to aggregate dependencies from multiple fields.
- Removed redundant assertion in test_deb_changes_arch.
Comment thread Test/systemd/build.sh Outdated
@github-actions

github-actions Bot commented May 21, 2026

Copy link
Copy Markdown

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
1056 874 83% 0% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: 86346f2 by action🐍

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for building more complex Debian packages by improving build-dependency handling and Aptly connectivity in packtly_builder_tooling, plus a local Systemd build helper under Test/systemd/.

Changes:

  • Switch build dependency installation to mk-build-deps and adjust debuild invocation to build binaries only.
  • Add Aptly HTTP basic authentication parameters (--username/--password) and --log-file support in the CLI.
  • Add local helper scripts for cloning/building Systemd in a container and update container env for noninteractive installs.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
Test/systemd/clone.sh Adds a helper script to clone the upstream Systemd repo into the test directory.
Test/systemd/build.sh Adds a helper script to run the builder container against the Systemd repo and upload artifacts.
Test/systemd/.gitignore Ignores the cloned Systemd tree and generated .deb artifacts.
packtly-builder/tooling/packtly_builder_tooling/tests/test_debuild.py Adjusts architecture assertion to match the new binary-only build behavior.
packtly-builder/tooling/packtly_builder_tooling/parts/debuild.py Adds mk-build-deps-based dependency installation and streams debuild output.
packtly-builder/tooling/packtly_builder_tooling/parts/aptly.py Adds configurable HTTP basic auth and tweaks host logging.
packtly-builder/tooling/packtly_builder_tooling/parts/apt.py Improves dependency-string parsing for profiles/arch restrictions and attempts virtual package resolution.
packtly-builder/tooling/packtly_builder_tooling/cli.py Adds --username/--password and --log-file, changes signing keyring location, and uses install_build_dependencies().
packtly-builder/containers/Containerfile Sets DEBIAN_FRONTEND=noninteractive for container installs.
CHANGELOG.md Documents the new CLI args and dependency handling changes in the 1.1.0 entry.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Test/systemd/build.sh Outdated
Comment thread Test/systemd/build.sh Outdated
Comment thread Test/systemd/clone.sh Outdated
Comment thread packtly-builder/tooling/packtly_builder_tooling/parts/aptly.py
Comment thread packtly-builder/tooling/packtly_builder_tooling/cli.py
Comment thread packtly-builder/tooling/packtly_builder_tooling/cli.py
Comment thread packtly-builder/tooling/packtly_builder_tooling/parts/debuild.py
Comment thread packtly-builder/tooling/packtly_builder_tooling/parts/debuild.py
Comment thread packtly-builder/tooling/packtly_builder_tooling/parts/apt.py
Comment thread packtly-builder/tooling/packtly_builder_tooling/parts/apt.py
@embtom embtom force-pushed the feature/complex_deb_package branch from 77ef4c4 to 15074ff Compare May 21, 2026 22:22
Copilot finished work on behalf of embtom May 22, 2026 04:04
@embtom embtom force-pushed the feature/complex_deb_package branch from d702133 to 036d734 Compare May 22, 2026 04:40
Copilot finished work on behalf of embtom May 22, 2026 04:53
@embtom embtom force-pushed the feature/complex_deb_package branch from 84f0c4e to 57de115 Compare May 25, 2026 12:37
@embtom embtom self-assigned this May 25, 2026
@embtom embtom force-pushed the feature/complex_deb_package branch from 57de115 to a4998b2 Compare May 25, 2026 17:47
Copilot finished work on behalf of embtom May 25, 2026 18:00
@embtom embtom force-pushed the feature/complex_deb_package branch from f9a76f5 to 86346f2 Compare May 26, 2026 03:13
@embtom embtom merged commit 19b34a2 into main May 26, 2026
5 checks passed
@embtom embtom deleted the feature/complex_deb_package branch June 4, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants