Bug 1487845 - extras >= 1.0.0 is required
Summary: extras >= 1.0.0 is required
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-grafyaml
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Paul Belanger
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1487847
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-02 14:41 UTC by Jan Beran
Modified: 2017-09-04 07:21 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-09-04 07:21:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jan Beran 2017-09-02 14:41:39 UTC
Description of problem:
mock fails on RPM build errors because extras version is 0.0.3 used but there is required version >= 1.0.0.

Version-Release number of selected component (if applicable):
python-grafyaml-0.0.5-6

How reproducible:
Run mock on python-grafyaml-0.0.5-6

Steps to Reproduce:
1. rpmbuild -bs python-grafyaml.spec
2. mock -r fedora-rawhide-x86_64 rebuild python-grafyaml-0.0.5-6.fc26.src.rpm
3.

Actual results:
...
+ cd /builddir/build/BUILD
+ cd grafyaml-0.0.5
+ /usr/bin/python2 setup.py testr
Traceback (most recent call last):
  File "setup.py", line 29, in <module>
    pbr=True)
  File "/usr/lib64/python2.7/distutils/core.py", line 137, in setup
    ok = dist.parse_command_line()
  File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 405, in parse_command_line
    result = _Distribution.parse_command_line(self)
  File "/usr/lib64/python2.7/distutils/dist.py", line 467, in parse_command_line
    args = self._parse_command_opts(parser, args)
  File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 725, in _parse_command_opts
    nargs = _Distribution._parse_command_opts(self, parser, args)
  File "/usr/lib64/python2.7/distutils/dist.py", line 523, in _parse_command_opts
    cmd_class = self.get_command_class(command)
  File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 544, in get_command_class
    ep.require(installer=self.fetch_build_egg)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2327, in require
    items = working_set.resolve(reqs, env, installer, extras=self.extras)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 862, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (extras 0.0.3 (/usr/lib/python2.7/site-packages), Requirement.parse('extras>=1.0.0'), set(['testtools']))
error: Bad exit status from /var/tmp/rpm-tmp.9MWT8v (%check)
    Bad exit status from /var/tmp/rpm-tmp.9MWT8v (%check)


RPM build errors:
ERROR: Exception(python-grafyaml-0.0.5-6.fc26.src.rpm) Config(fedora-rawhide-x86_64) 0 minutes 58 seconds
INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result
ERROR: Command failed: 
 # /usr/bin/systemd-nspawn -q -M 4c8042daf4704474a91c02b513a4c6b1 -D /var/lib/mock/fedora-rawhide-x86_64/root -a --private-network --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007" --setenv=PS1=<mock-chroot> \s-\v\$  --setenv=LANG=en_US.utf8 -u mockbuild bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-grafyaml.spec


Expected results:


Additional info:
Temporary solution: If the testing part is skipped in the spec, then the mock build is finished successfully.
Final solution: python-extras 1.0.0 has already been released [1], so the current version of 0.0.3 can be upgraded to 1.0.0 in Fedora.

[1] https://github.com/testing-cabal/extras


Note You need to log in before you can comment on or make changes to this bug.