Convert to hatch build system and enable packit - #35
Open
psss wants to merge 3 commits into
Open
Conversation
Replace `setup.py` with `hatchling` and `hatch-vcs` for build and version management. Add the spec file and packit configuration to enable copr builds for pull requests and automate the Fedora release pipeline. Add a release workflow for publishing to pypi. Fix #31. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
happz
approved these changes
Aug 12, 2026
LecrisUT
approved these changes
Aug 12, 2026
|
|
||
| # Remove compiled .py files from /etc after os_install_post | ||
| rm -f %{buildroot}%{_sysconfdir}/testcloud/*.py{c,o} | ||
| rm -rf %{buildroot}%{_sysconfdir}/testcloud/__pycache__ |
Member
Author
There was a problem hiding this comment.
No better idea here. Would be probably best to not include .py files under /etc, but using a different name could break things? I would rather keep it.
Member
There was a problem hiding this comment.
Yeah, let's just track it somewhere. It is also relevant to the new release of mock that would lock the files right after %install
Member
There was a problem hiding this comment.
Oh actually are the files even there? I ran it without those lines and did not see any __pycache__ in there
Replace the manual groupadd scriptlet with the proper %sysusers_create_compat macro for pre-F42 compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
LecrisUT
approved these changes
Aug 14, 2026
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.
Replace
setup.pywithhatchlingandhatch-vcsfor build and version management. Add the spec file and packit configuration to enable copr builds for pull requests and automate the Fedora release pipeline. Add a release workflow for publishing to pypi.Fix #31.