Description of problem: Greetings! I'm trying to build a Bodhi beta scratch build[0] on Rawhide today, and the build fails due to not being able to install pungi due to a missing dependency: DEBUG util.py:490: BUILDSTDERR: Error: DEBUG util.py:490: BUILDSTDERR: Problem: package pungi-4.1.32-3.fc30.noarch requires python3-pungi = 4.1.32-3.fc30, but none of the providers can be installed DEBUG util.py:490: BUILDSTDERR: - conflicting requests DEBUG util.py:490: BUILDSTDERR: - nothing provides python3.7dist(enum34) needed by python3-pungi-4.1.32-3.fc30.noarch Version-Release number of selected component (if applicable): pungi-4.1.32-3.fc30 Additional info: I tried to install Pungi in a Rawhide container and it succeeded, but it only used pungi-4.1.31-3, so I expect the issue happened since that version and the issue hasn't propagated to the mirror I used yet. [0] https://koji.fedoraproject.org/koji/taskinfo?taskID=31960017
I removed the explicit Requires on that package, but it seems the dependency generator puts it back do to what is in setup.py. I'll try to fix it. It should only be happening in Rawhide.
Yeah, I've only noticed it on Rawhide. Thanks Lubomír!
https://pagure.io/pungi/blob/master/f/setup.py this has: install_requires = [ "enum34", ... The dependency generator reads that and makes it a dependency. A correct fix is not to apply this dependency on Python 3: diff --git a/setup.py b/setup.py index 7bffecf..ab4da26 100755 --- a/setup.py +++ b/setup.py @@ -57,7 +57,6 @@ setup( ], test_suite = "tests", install_requires = [ - "enum34", "jsonschema", "kobo", "lockfile", @@ -67,6 +66,11 @@ setup( 'dogpile.cache', 'dict.sorted', ], + extras_require={ + ':python_version=="2.7"': [ + 'enum34' + ] + }, tests_require = [ "mock", "nose", Will test a submit an upstream PR.
[Stažené]$ rpm -qp --requires python3-pungi-4.1.32-3.fc30.noarch.rpm python(abi) = 3.7 python3.7dist(dict.sorted) python3.7dist(dogpile.cache) python3.7dist(jsonschema) python3.7dist(kobo) python3.7dist(lockfile) python3.7dist(lxml) python3.7dist(productmd) python3.7dist(six) rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsXz) <= 5.2-1 $ rpm -qp --requires python2-pungi-4.1.32-3.fc30.noarch.rpm python(abi) = 2.7 python2.7dist(dict.sorted) python2.7dist(dogpile.cache) python2.7dist(enum34) <------ HERE python2.7dist(jsonschema) python2.7dist(kobo) python2.7dist(lockfile) python2.7dist(lxml) python2.7dist(productmd) python2.7dist(six) rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsXz) <= 5.2-1
https://pagure.io/pungi/pull-request/1113
I made a new build with the patch provided by Miro. Installing the package in Rawhide container works for me now.