-
Notifications
You must be signed in to change notification settings - Fork 63
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
pyp2spec builds choke on PEP 625 incompatible packages #3517
Comments
I mean "old copr-rpmbuild" and "old pyp2spec"? |
There's now also the |
The diffeerence between pyp2spec 0.8 (in copr production, on f39) and pyp2spec 0.11.0 - https://files.pythonhosted.org/packages/source/P/Pello/Pello-1.0.4.tar.gz
+ https://files.pythonhosted.org/packages/source/p/pello/pello-1.0.4.tar.gz |
It's easier to generate 😀 |
Hi, the main issue is not really in pyp2spec. It's that it has PEP 625 implemented now which standardizes the name of the sdist. Pello has been released too long ago to conform to this PEP - it could help if the sdist was regenerated / new version released. For the time being you can test pyp2spec on any other project that has more recent releases, e.g. pyp2spec itself.
Does that pose a problem in Copr? I could keep the old behavior for the automode. As rpmautospec is gaining popularity in Fedora and we keep building tonnes of its rpms in Copr, it didn't occur to me there could be an issue at your end. |
Shouldn't pyp2spec reach out to PyPI and ask for the sdist filename? |
I see it more as a philosophical question: from practical POV it could (that's what it was doing before). OTOH the idea in my head is that pyp2spec should rely on standard whenever possible, and any identified gaps can be hotfixed and ideally proposed as future upstream standard. The sdist filenames were recently standardized so it felt correct to move to it. |
We are generating %changelog from a generated git-log :) and IMVHO empty %changelog is better than a generated and misleading %changelog like this. But since this is probably not causing any technical issues right now, let's leave it as is (we may track it separately later-on, if needed).
Yeah, this actually broke our beaker tests in two places :-) I can of course adapt the testsuite and let Copr forget about the "old times", but if there are still too many packages released without conforming to PEP 625 (e.g., copr-cli still is #3521), then pyp2spec generator is not the tool of choice for as many users as it used to be. |
Alright.
That makes sense. There's not much cost to keep the old behavior going for some more time (years, probably), so I may just revert it. |
@befeleme do you have ETA for the new pyp2spec release & Fedora 41 build? If not, shall we just move to F41 builders, ignoring the the fact these non-pep-625 compliant packages fail to build? |
My opinion: Yes please, update to Fedora 41, don't wait for pyp2spec. If this problem breaks users, at least we'll know about them if they speak up. In the meantime, we know that the old Fedora version on builders already breaks existing users who spoke up (yours truly). |
This makes the runtest.sh at least shorter (but still the longest-running test-case). Adapt the test-cases to post-F39 state. Relates: fedora-copr#3517 Relates: fedora-copr#3521 Relates: fedora-copr#3523
This makes the runtest.sh at least shorter (but still the longest-running test-case). Adapt the test-cases to post-F39 state. Relates: fedora-copr#3517 Relates: fedora-copr#3521 Relates: fedora-copr#3523
This makes the runtest.sh at least shorter (but still the longest-running test-case). Adapt the test-cases to post-F39 state. Relates: fedora-copr#3517 Relates: fedora-copr#3521 Relates: fedora-copr#3523
Seconding Miro: move to F41, I'll ship pyp2spec till the end of this week. |
This makes the runtest.sh at least shorter (but still the longest-running test-case). Adapt the test-cases to post-F39 state. Relates: fedora-copr#3517 Relates: fedora-copr#3521 Relates: fedora-copr#3523
Updated in production. Thank you @befeleme |
After upgrading the builders to Fedora 41 where's the newer pyp2spec utility:
https://download.copr-dev.fedorainfracloud.org/results/@copr/TEST1732047865954994293-Pyp2spec/srpm-builds/02920033/builder-live.log.gz
When I try locally, I see:
The text was updated successfully, but these errors were encountered: