[openstack-dev] [Horizon][stable] Horizon kilo gate fails due to testrepository dependency

Robert Collins robertc at robertcollins.net
Mon Jan 4 23:26:24 UTC 2016


On 5 January 2016 at 12:04, Robert Collins <robertc at robertcollins.net> wrote:
...
> Indeed - https://bitbucket.org/pypa/setuptools/commits/fb35fcade302fa828d34e6aff952ec2398f2c877?at=get_command_list
> - the failing bit AFAICT is indeed new code :/.


Ok, so I've paged this all in. Here's whats up, and some thoughts on fixing it.

Old pbr does indeed have a bug where 'setup.py test' will error with
that unguarded import of what isn't meant to be a dependency.

The reason this started failing is that a bugfix to setuptools - so
that the existing pbr code that wraps commands can wrap commands only
added by setuptools plugins like 'wheel' was merged and included in a
setuptools release.

This causes the pbr testr command to be loaded, which fails in old pbr.

The right answer is a back port of the import guard to pbr < 1.0.0 and
a point release - 0.11.1.

IMO that is :)

I see that a workaround has been committed - installing testrepository
- but I'd hate for folk to cargo cult the idea that pbr could have a
runtime dependency on test-only tools like that.

-Rob


-- 
Robert Collins <rbtcollins at hpe.com>
Distinguished Technologist
HP Converged Cloud



More information about the OpenStack-dev mailing list