PBR

setup.py with pbr attempts to do git operations in tarball

Bug #1374677 reported by Adam Young
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
PBR
Incomplete
Medium
Unassigned

Bug Description

While building out of git tree, for example in an rpm spec file:

%{__python} setup.py build

will error out with
error in setup command: Error parsing /home/ayoung/rpmbuild/BUILD/keystone-2014.2.3b/setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?

This is true even if the tarball was created with sdist.

The correct logic should be: if the source is not in a git repository and the PKG-INFO has been created, use the existing value.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

Adam, which version of pbr do you have?

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :
Changed in pbr:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Robert Collins (lifeless) wrote :

So this should only happen if the following is true:
 - its an exported tree (no git history)
 - no egg info is present (which sdist injects for us)

The blog post suggests Adam reached the same conclusion, so I'm not sure that this is a bug: without access to either git history, or explicit version metadata, pbr can't do its job as defined, and an error is appropriate.

Changed in pbr:
status: Confirmed → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.