On Sun, 22 Aug 2021 at 06:06, Mattia Verga <mattia.ve...@protonmail.com> wrote: > > Hello folks, > I'm trying to migrate graphql-server spec file to the newer Python > guidelines, but I'm hitting some walls. > > - Building the package locally went fine, while on Koji [¹] I get: > error: line 39: Unknown tag: %pyproject_extras_subpkg -n > python3-graphql-server flask webob aiohttp >
The extras macro expands to %package, %description, and %files; you have put it in between a %package and %description, which will surely confuse rpm somewhat. > - The example spec file in the guidelines says to use the %tox macro, but I > cannot test it locally, because I get: > tox: error: unrecognized arguments: --current-env > You need to ensure that tox is installed as well, if it isn't listed in upstream's requirements to get pulled in by %pyproject_buildrequires. > - graphql-server has a [flask] extra, but in beta4 it requires Flask<1, while > in Fedora we have Flask>1... should I remove the extra by obsoleting it? How > to properly do so for an extra, considering that all previous Provides were > generated automatically? > I asked a similar question earlier: https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/EBTRMFHUEYW4TT5B6S5GGXP4YAWHJE3R/ But maybe you try removing the pin? Flask 2 did break things, but it may not have broken your package. > Thanks in advance for the help. > Mattia > > [1] https://koji.fedoraproject.org/koji/taskinfo?taskID=74321415 -- Elliott _______________________________________________ python-devel mailing list -- python-devel@lists.fedoraproject.org To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org 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/python-devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure