New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove run-time dependency on pbr #311
Comments
Pbr makes no changes to non pbr using packages, and is declared as a
dependency... Check the pkg-info metadata file. What is the actual bug you
have experienced? What symptoms do you have?
|
Unfortunately not true :-)
|
The entrypoint in question: http://git.openstack.org/cgit/openstack-dev/pbr/tree/setup.cfg#n38 Just grep for |
I grabbed a random non-pbr package from pypi:
installed pbr:
Ran setup,py sdist:
Unpacked the sdist:
I see no sign of interactions with pbr. The mechanism to activate setuptools plugins (which pbr is) is that you must pass in a keyword argument to trigger them. If you can put together a way to reproduce your example of pbr altering setup of non-pbr-using packages, please file a bug on that at https://bugs.launchpad.net/pbr - we'll take that very seriously. However there doesn't seem to be a bug here, with respect to Mock. If there is one, please reopen this (or comment on it and I'll reopen if github doesn't let you). Thanks. |
It's not clear to me why mock depends on pbr. In principle it makes no sense for mock to depend on a built-time library. This is why I made this bug report. What's going on here? |
Here's some output with a package you're more familiar with (the master of pip):
Not sure what's going on in that @rbtcollins this is not about a "bug" in the traditional sense. I'm questioning here the decision to depend on pbr as it makes no sense to me and it's frankly painful to deal with. |
pbr offers both runtime and build-time facilities. Characterising it as build-time-only would be incorrect. We use pbr's runtime support to abstract away the details of determining the version string and tuple regardless of whether the code is running from an installed copy, or from a git tree. IF you've experienced a bug/defect/incorrect behaviour, I'll be happy to figure out how to fix that. Merely using a robust and mature library is not one of those things. |
(The pbr.json thing belongs on the pbr bugtracker) |
I have filed https://bugs.launchpad.net/pbr/+bug/1483067 for you |
Thanks |
Currently
pbr
is imported here https://github.com/testing-cabal/mock/blob/master/mock/mock.py#L69 but it's not specified as an install-time dependency.This package should not need pbr - I try to avoid to install pbr as it monkeypatches setuptools and changes sdist output, even for packages that don't use pbr.
The text was updated successfully, but these errors were encountered: