Skip to content
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

Use packit to produce rpms for fedora-35 #1648

Merged
merged 1 commit into from Feb 22, 2022
Merged

Conversation

ssbarnea
Copy link
Member

@ssbarnea ssbarnea commented Jul 8, 2021

No description provided.

@ssbarnea ssbarnea force-pushed the feature/distro-packaging branch 2 times, most recently from 96d0f3c to 1e665ff Compare July 8, 2021 10:42
@ssbarnea ssbarnea requested a review from webknjaz July 8, 2021 10:48
ansible-lint.spec Outdated Show resolved Hide resolved
@TomasTomecek
Copy link
Contributor

Did you make any progress on the rpm packaging in the meantime? Is there anything we can help with?

@ssbarnea
Copy link
Member Author

ssbarnea commented Aug 2, 2021

No progress as I got other priorities, not sure when I will be able to return to this one. Feel free to work on it.

@TomasTomecek
Copy link
Contributor

I can see that all builds on Fedora and el8 are passing: what's left to be done?

.packit.yaml Outdated Show resolved Hide resolved
.packit.yaml Outdated Show resolved Hide resolved
.packit.yaml Outdated
- job: copr_build
metadata:
targets:
# Unable to build centos-stream due to missing python3-setuptools_scm_git_archive
Copy link
Member

Choose a reason for hiding this comment

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

Why not patch it out in the spec file? It's not like there's nowhere to get the version from.

.packit.yaml Outdated Show resolved Hide resolved
.packit.yaml Outdated
- "python3 setup.py --version"
post-upstream-clone:
- |
bash -c "sed -i -e 's/Version: VERSION_PLACEHOLDER/Version: $(python3 setup.py --version)/' ansible-lint.spec"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
bash -c "sed -i -e 's/Version: VERSION_PLACEHOLDER/Version: $(python3 setup.py --version)/' ansible-lint.spec"
bash -c "sed -i -e 's/Version: VERSION_PLACEHOLDER/Version: $(python3 -m setuptools_scm | awk '{print $3}')/' ansible-lint.spec"

.packit.yaml Show resolved Hide resolved
.packit.yaml Show resolved Hide resolved
@webknjaz webknjaz added the new Triage required label Sep 13, 2021
@webknjaz webknjaz requested a review from a team October 12, 2021 01:13
@ssbarnea ssbarnea added this to the 5.4.0 milestone Jan 25, 2022
@ssbarnea ssbarnea modified the milestones: 5.4.0, 6.0.0 Feb 12, 2022
@ssbarnea ssbarnea force-pushed the feature/distro-packaging branch 7 times, most recently from 0c6ae2a to dfc9885 Compare February 18, 2022 11:30
@ssbarnea ssbarnea force-pushed the feature/distro-packaging branch 2 times, most recently from af649c7 to 72b7e5c Compare February 18, 2022 11:59
ssbarnea added a commit to ssbarnea/ansible-lint that referenced this pull request Feb 18, 2022
This configures setuptools-scm to cache version when installing or
building the package, so we no longer need to use pkg_resources
to gather the version.

This removes the need for setuptools at runtime and also improve
performance as version is loaded directly from our module, when
present.

Related: ansible#1648
@ssbarnea ssbarnea force-pushed the feature/distro-packaging branch 4 times, most recently from b0dfd80 to e20131a Compare February 22, 2022 12:53
@ssbarnea ssbarnea changed the title WIP: Use packit to produce rpms Use packit to produce rpms for fedora-35 Feb 22, 2022
@ssbarnea ssbarnea marked this pull request as ready for review February 22, 2022 12:54
.packit.yaml Show resolved Hide resolved
.config/ansible-lint.spec Show resolved Hide resolved
@ssbarnea ssbarnea added AAP Ansible Automation Platform new Triage required and removed new Triage required labels Feb 22, 2022
Copy link

@priyamsahoo priyamsahoo left a comment

Choose a reason for hiding this comment

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

LGTM !

@ssbarnea ssbarnea merged commit 1bc960a into main Feb 22, 2022
@ssbarnea ssbarnea deleted the feature/distro-packaging branch February 22, 2022 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AAP Ansible Automation Platform feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants