Skip to content

Conversation

@cognifloyd
Copy link
Member

@cognifloyd cognifloyd commented Apr 2, 2025

This PR is working towards doing packaging via pantsbuild. Eventually, I hope to archive and stop using st2-packages.git.

The pants nfpm backend was activated in #6321.
Basic BUILD metadata for deb/rpm packages (nfpm_deb_package and nfpm_rpm_package) was added in #6325 along with the deb maintainer scripts and rpm scriptlets.

This PR adds the systemd files (units and generators) cherry-picked in #6303 to the deb/rpm packages. To do this, we need to add nfpm_content_files targets to BUILD metadata and then make the nfpm_*_package targets depend on them.

Once I did this, I realized that we were not running python formatters or linters on the systemd-generators, so this PR also fixes a few minor issues identified in them.

@cognifloyd cognifloyd added this to the pants milestone Apr 2, 2025
@cognifloyd cognifloyd self-assigned this Apr 2, 2025
@pull-request-size pull-request-size bot added the size/L PR that changes 100-499 lines. Requires some effort to review. label Apr 2, 2025
@cognifloyd cognifloyd requested a review from a team April 4, 2025 19:25
@guzzijones guzzijones merged commit 0b5b1ab into master Apr 5, 2025
85 checks passed
@guzzijones guzzijones deleted the packaging-nfpm_contents-systemd branch April 5, 2025 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement pantsbuild size/L PR that changes 100-499 lines. Requires some effort to review. st2-packages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants