Re: Apprise RPM Packaging Assistance Request for %pyproject_* Migration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Chris-san

I just tried building apprise-1.9.4 on Fedora Rawhide and EL10 with
mock, and the RPM build succeeded after a few adjustments.

Key points:
- Make sure all build/test dependencies are listed in BuildRequires
(including pytest plugins and YAML, etc).
- Double-check %files so it only includes files that actually exist
(e.g., README.rst, docs).
- If tests fail due to missing dependencies, you can temporarily skip them with:
  %global _pytest_addopts --deselect tests/
  in the spec file.

With these changes, the RPMs built cleanly. Let me know if you want
more details.

Best regards,
Akiyoshi Kurita


2025年8月17日(日) 1:52 Chris <lead2gold@xxxxxxxxx>:
>
> Hi all,
>
> I'm having a weird error bundling my Python project (worked fine before).  I did a massive refactoring of it to try to drop reference of setup.py and migrate to pyproject.toml and I feel it was a pretty good success. I wanted to modernize the platform and her to the %pyproject_* structure now but I'm unable to rebuild my rpms:
> ```
> # The following works perfect:
> git clone git@xxxxxxxxxx:caronc/apprise.git
> cd apprise
> docker compose run --rm rpmbuild.el9 bash build-rpm.sh
> docker compose run --rm rpmbuild.f42 bash build-rpm.sh
>
> # Observe RPMs that are built fine:
> find dist -type f
>
> # dist/apprise-1.9.4.tar.gz
> # dist/rpm/python-apprise-1.9.4-1.fc42.src.rpm
> # dist/rpm/python-apprise-1.9.4-1.el9.src.rpm
> # dist/rpm/noarch/apprise-1.9.4-1.fc42.noarch.rpm
> # dist/rpm/noarch/python3-apprise-1.9.4-1.el9.noarch.rpm
> # dist/rpm/noarch/apprise-1.9.4-1.el9.noarch.rpm
> # dist/rpm/noarch/python3-apprise-1.9.4-1.fc42.noarch.rpm
> ```
>
> # HOWEVER with koji rawhide... not so much (and purpose of this email)
> See: https://koji.fedoraproject.org/koji/taskinfo?taskID=135693691
>
> Any advice would be most appreciated; Once this works, I can gracefully close https://bugzilla.redhat.com/show_bug.cgi?id=2377453.
>
> Even a manual process works great (should there be concern about what is in my scripts)
> ```
> docker-compose run --rm rpmbuild.f42 bash
> APPRISE_DIR=$(pwd)
> DIST_DIR=$APPRISE_DIR/dist
> spectool -g $APPRISE_DIR/packaging/redhat/python-apprise.spec
> mv apprise-1.9.4.tar.gz dist/
> rpmbuild --define "_topdir $APPRISE_DIR" \
>          --define "_sourcedir $APPRISE_DIR/SOURCES" \
>          --define "_specdir $APPRISE_DIR/packaging/redhat" \
>          --define "_srcrpmdir $APPRISE_DIR/SRPMS" \
>          --define "_rpmdir $DIST_DIR" \
>          -ba "$APPRISE_DIR/packaging/redhat/python-apprise.spec"
> ```
> Quick link to my repository if that helps too: https://github.com/caronc/apprise
>
> I have a hunch it will just turn out to be something obvious that my brain spent to much time overlooking. Turning to you all for help 🙏
>
> Thank you in advance!
>
> Chris
> --
> _______________________________________________
> devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
> Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
-- 
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux