https://bugzilla.redhat.com/show_bug.cgi?id=2058411 --- Comment #5 from Jonny Heggheim <hegjon@xxxxxxxxx> --- I am running into unknown issue when running the build with -t flag for %pyproject_buildrequires. I am able to get it working when removing the -t flag and explicit adding dependency on pytest. ___________________________________ summary ____________________________________ py310: commands succeeded congratulations :) Handling .[test] from tox --print-deps-only: py310 Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/packaging/requirements.py", line 102, in __init__ req = REQUIREMENT.parseString(requirement_string) File "/usr/lib/python3.10/site-packages/pyparsing.py", line 1955, in parseString raise exc File "/usr/lib/python3.10/site-packages/pyparsing.py", line 3250, in parseImpl raise ParseException(instring, loc, self.errmsg, self) pyparsing.ParseException: Expected W:(abcd...), found '.' (at char 0), (line:1, col:1) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/rpm/redhat/pyproject_buildrequires.py", line 111, in add requirement = Requirement(requirement_str) File "/usr/lib/python3.10/site-packages/packaging/requirements.py", line 104, in __init__ raise InvalidRequirement( packaging.requirements.InvalidRequirement: Parse error at "'.[test]'": Expected W:(abcd...) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/rpm/redhat/pyproject_buildrequires.py", line 428, in main generate_requires( File "/usr/lib/rpm/redhat/pyproject_buildrequires.py", line 358, in generate_requires generate_tox_requirements(toxenv, requirements) File "/usr/lib/rpm/redhat/pyproject_buildrequires.py", line 313, in generate_tox_requirements requirements.extend(packages, File "/usr/lib/rpm/redhat/pyproject_buildrequires.py", line 184, in extend self.add(req_str, **kwargs) File "/usr/lib/rpm/redhat/pyproject_buildrequires.py", line 117, in add raise ValueError(message) ValueError: Requirement '.[test]' from tox --print-deps-only: py310 is invalid. RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.4IS6s3 (%generate_buildrequires) Bad exit status from /var/tmp/rpm-tmp.4IS6s3 (%generate_buildrequires) Finish: rpmbuild python-tcolorpy-0.1.1-1.fc35.src.rpm Finish: build phase for python-tcolorpy-0.1.1-1.fc35.src.rpm ERROR: Exception(/home/jonny/rpmbuild/SRPMS/python-tcolorpy-0.1.1-1.fc35.src.rpm) Config(fedora-rawhide-x86_64) 0 minutes 35 seconds INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result ERROR: Command failed: # ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --target x86_64 --nodeps /builddir/build/SPECS/python-tcolorpy.spec'] -- You are receiving this mail because: You are always notified about changes to this product and component You are on the CC list for the bug. https://bugzilla.redhat.com/show_bug.cgi?id=2058411 _______________________________________________ package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to package-review-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/package-review@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure