On Sun, 22 Aug 2021 at 06:06, Mattia Verga <mattia.verga(a)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.fedorapr...
But maybe you try removing the pin? Flask 2 did break things, but it
may not have broken your package.
--
Elliott